FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

First BPEL Process

 
Post new topic   Reply to topic    NetBeans Forums -> SOA Users
View previous topic :: View next topic  
Author Message
joeo



Joined: 07 Oct 2008
Posts: 4
Location: Sterling, Va

PostPosted: Mon Jun 29, 2009 9:38 pm    Post subject: First BPEL Process Reply with quote

I'm trying to write a simple BPEL process that picks up a file from a directory, calls a web service with the file's data (string), and then puts the result from the web service call onto a JMS queue within Glassfish.

I have the composite application deployed, and it picks up the file, calls the service, gets the response, but when it tries to put the response onto the JMS queue I get an error.
I've tried using MQ, and
javax.jms.QueueConnectionFactory within Glassfish.

When I use mq://localhost:7676, I get:
JMSBC-E0747: Failed to process the message exchange with ID 134370596308648-38721-134656034558480059 and exchange pattern http://www.w3.org/2004/08/wsdl/in-only due to error: null
java.lang.NullPointerException


When I try to use a destination resource within Glassfish with jndi://
I get:
Caused by: javax.jms.JMSException: JMSJCA-E034: Could not create session javax.jms.QueueSession: javax.resource.ResourceException: JMSJCA-E073: Could not allocate connection: java.lang.ClassCastException: com.sun.messaging.Queue cannot be cast to javax.jms.QueueConnectionFactory

Any tips, pointers, books, links *anything* - would be helpful!

Thank you!

Joe
Back to top
View user's profile Send private message Visit poster's website
joeo



Joined: 07 Oct 2008
Posts: 4
Location: Sterling, Va

PostPosted: Wed Jul 01, 2009 8:50 pm    Post subject: Reply with quote

I have a composite application that works fine under windows, but when I deploy it to Linux, I get the error that it
"Could not find JNDI object by name"
in reference to a JMS connection factory defined in Glassfish. The same code works fine under windows.

I can connect the the MQ now using
mq://localhost:7676 user admin, password admin on the Linux and windows machine. When I try to use a connection pool (jndi://, com.sun.jndi.fscontext.RefFSContextFactory etc.), however, it works on Windows's Glassfish , but not on Linux's Glassfish.

Specifically:
<port name="jmsSendWSDLPort" binding="tns:jmsSendWSDLBinding">
<jms:address connectionURL="jndi://" providerURL="file:///tmp" initialContextFactory="com.sun.jndi.fscontext.RefFSContextFactory" connectionFactoryName="connFactory" username="guest" password="guest"/>
</port>

Get's the error that it cannot find the jndi name connFactory.
This same XML deploys to windows without issue (just changing the profiderURL to file:///C:/Temp instead).

Any ideas?
Thanks!

Joe
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> SOA Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB