This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Preethi Krishna

Greenhorn
+ Follow
since May 13, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Preethi Krishna

Hi All,

I have an xml file like

<root>
<a/>
<b/>
<c>
<c1>x</c1>
<c2>y</c2>
</c>
<c>
<c1>t</c1>
<c2>v</c2>
</c>
<c>
<c1>x</c1>
<c2>t</c2>
</c>
<c>
<c1>y</c1>
<c2>c</c2>
</c>
</root>


which has to be chunked into xmlfiles based on c1 values

<root>
<a/>
<b/>
<c>
<c1>x</c1>
<c2>y</c2>
</c>
<c>
<c1>x</c1>
<c2>t</c2>
</c>
</root>

<root>
<a/>
<b/>
<c>
<c1>t</c1>
<c2>v</c2>
</c>
</root>

<root>
<a/>
<b/>
<c>
<c1>y</c1>
<c2>c</c2>
</c>
</root>


I haven't used stax before and know little about xquery/xpath. Can you please give me suggestions on which one to use and some guidance to use? and the input xml can be more than 50mb.

Thanks for your help
Preethi
My main concern is I need to send large xml files so is it ok to send as mime or should I use any other option???

Thanks
Preethi
12 years ago
Hi,

I need to develop a webservice to accept xml files and send string as response. I am using weblogic 10.0. So my thoughts are to use JAX-RPC with rpc literal binding and use mime attachments for xml files. I will create a wsdl and generate java class from wsdl and add the implementation in the java class generated. Please correct me if Iam wrong or let me know if there is any other way to implement the same. I am using webservices for first time. and my sample wsdl is

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://org.com.hc/WebServices/ServiceHandler/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://org.com.hc/WebServices/ServiceHandler/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
name="ServiceHandler"
targetNamespace="http://org.com.hc/WebServices/ServiceHandler/">

<wsdl:message name="Request">
<wsdl:part name="attachment_1" type="xsd:hexBinary"/>
</wsdl:message>
<wsdl:message name="Response">
<wsdl:part name="result" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="ServiceHandler">
<wsdl:operation name="Attachment">
<wsdl:input message="tns:Request"/>
<wsdl:output message="tns:Response"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ServiceHandlerSOAP" type="tns:ServiceHandler">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="Attachment">
<soap:operation soapAction="http://org.com.hc/WebServices/ServiceHandler/Attachment"/>
<wsdl:input>
<mime:multipartRelated>
<mime:part>
<soap:body use="literal"/>
</mime:part>
<mime:part>
<mime:content part="attachment_1" type="text/xml"/>
</mime:part>
</mime:multipartRelated>
</wsdl:input>
<wsdl:output>
<soap:body parts="result" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ServiceHandler">
<wsdl:port binding="tns:ServiceHandlerSOAP" name="ServiceHandlerSOAP">
<soap:address location="http://localhost:7001/Webservice/ServiceHandlerImpl/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Thanks,
Preethi
12 years ago
When I try to deploy my ear file which has webservices in it it deploys but when I try to access my webservice I get

[JAM] Warning: failed to resolve class com.web.webservices.hwebservicehandler.HWebServiceHandlerImpl

but I see the class file in web-inf/classes/ with same package structure.

Any idea why it throws this error?

Thanks in advance,
Preethi
12 years ago
any inputs on why I get this error:

[JAM] Warning: failed to resolve class com.web.webservices.hwebservicehandler.HWebServiceHandlerImpl
12 years ago
The Source_1 object is null.....I tried to test the webservices from weblogic test client and when I pass xml in Source_1 object it prints the soap message with my xml as request object but in my console I get the error I posted before.... I see request which comes has the xml in Source_1 but when I try to read it my webservices method it throws NullPointerException.
12 years ago
In my client I get this error:

2009-12-04 11:35:00.613 WARNING OWS-03005 Unable to connect to URL: http://111.1
.9.21:7001/HWebService/HWebServiceHandlerImpl due to java.security.Privileg
edActionException: javax.xml.soap.SOAPException: Error serializing message: Unab
le to write XML attachment null
09/12/04 11:35:00 java.rmi.RemoteException: ; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.Privil
egedActionException: javax.xml.soap.SOAPException: Error serializing message: Un
able to write XML attachment null
12 years ago
The error stack trace is [JAM] Warning: failed to resolve class com.web.webservices.hwebserviceh
andler.HWebServiceHandlerImpl
<04-Dec-2009 10:04:02 o'clock GMT> <Warning> <netuix> <BEA-423420> <Redirect is
executed in begin or refresh action. Redirect url is /console/console.portal?_nf
pb=true&_pageLabel=WebServiceModuleOverviewPage&WebServiceModuleOverviewPortleth
andle=com.bea.console.handles.ModuleHandle%28%22com.bea%3AName%3DHWebServiceEa
r%2CType%3DAppDeployment%3BHWebServiceHandlerImpl.war%3BHWebService%3Bcom.web
.webservices.hwebservicehandler.HWebServiceHandlerImpl%3BWEBSERVICE%
22%29.>
java.lang.NullPointerException
at com.web.webservices.hwebservicehandler.HWebServiceHandlerI
mpl.storeDocumentXML(Ljavax.xml.transform.Source;)Ljava.lang.String;(Unknown Sou
rce)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[
Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;
I)Ljava.lang.Object;(Unknown Source)
at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassCompo
nent.java:99)
at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(Compo
nentHandler.java:64)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.j
ava:123)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDisp
atcher.java:85)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.j
ava:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java
:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseW
SServlet.java:257)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java
:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3370)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.ac
l.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSub
ject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2117)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2023)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
java.lang.NullPointerException
at com.web.webservices.hwebservicehandler.HWebServiceHandlerI
mpl.storeDocumentXML(Ljavax.xml.transform.Source;)Ljava.lang.String;(Unknown Sou
rce)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[
Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;
I)Ljava.lang.Object;(Unknown Source)
at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassCompo
nent.java:99)
at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(Compo
nentHandler.java:64)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.j
ava:123)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDisp
atcher.java:85)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.j
ava:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java
:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseW
SServlet.java:257)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java
:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3370)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.ac
l.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSub
ject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2117)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2023)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
java.lang.NullPointerException
at com.web.webservices.hwebservicehandler.HWebServiceHandlerI
mpl.storeDocumentXML(Ljavax.xml.transform.Source;)Ljava.lang.String;(Unknown Sou
rce)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[
Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;
I)Ljava.lang.Object;(Unknown Source)
at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassCompo
nent.java:99)
at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(Compo
nentHandler.java:64)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.j
ava:123)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDisp
atcher.java:85)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.j
ava:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java
:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseW
SServlet.java:257)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java
:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3370)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.ac
l.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSub
ject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2117)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2023)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)



But in my ear I have com.web.webservices.hwebserviceh
andler.HWebServiceHandlerImpl in classes directory. Is there anything else that I need to do while creating ear file using weblogic ant task to generate java from wsdl and then build the ear??

Thanks
Preethi

12 years ago
I am new to webservices and this is my first webservice impl... My requirement is to send xml files to weblogic server.

I get this error when I try to call the webservice

403 Forbidden Error: The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

I wrote a wsdl and generated java classes from wsdl and created an ear file and deployed it in weblogic 10.1 I did not get any error during deployment.

My wsdl

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://com.web/webservices/HWebServiceHandler/"
xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
name="HWebServiceHandler"
targetNamespace="http://com.web/webservices/HWebServiceHandler/">
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://java.sun.com/jax-rpc-ri/internal"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://java.sun.com/jax-rpc-ri/internal">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<simpleType name="text_xml">
<restriction base="hexBinary"/>
</simpleType>
</schema>
</wsdl:types>
<wsdl:message name="HWebService_storeDocumentXML">
<wsdl:part name="Source_1" type="ns2:text_xml"/>

</wsdl:message>
<wsdl:message name="HWebService_storeDocumentXMLResponse">
<wsdl:part name="result" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="HWebServiceHandler">
<wsdl:operation name="storeDocumentXML" >
<wsdl:input message="tns:HWebService_storeDocumentXML"/>
<wsdl:output message="tns:HWebService_storeDocumentXMLResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HWebServiceBinding" type="tns:HWebServiceHandler">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<wsdl:operation name="storeDocumentXML">
<soap:operation soapAction="http://com.web/webservices/HWebServiceHandler/storeDocumentXML"/>
<wsdl:input>
<mime:multipartRelated>

<mime:part name="Cas">
<mime:content part="Source_1" type="text/xml"/>
</mime:part>
</mime:multipartRelated>
<soap:body
use="literal"
namespace="http://com.web/webservices/"/>
</wsdl:input>
<wsdl:output>
<soap:body
use="literal"
namespace="http://com.web/webservices/"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HWebServiceHandler">
<wsdl:port name="HWebServicePort" binding="tns:HWebServiceBinding">
<soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
location="http://localhost:7001/HWebService/HWebServiceHandlerImpl"/>
</wsdl:port>

</wsdl:service>
</wsdl:definitions>


Please give me some guidance to resolve this error. Please do suggest me if there are any other alternatives to do the same.

Thanks in advance,

Preethi
12 years ago
Hi I have been trying to get EJB bean and I get the below exception. My code is

Object objref = context.lookup("SubModule");
System.out.println("Objectref-->"+objref);
Class homeclass=getClassFromProperty("SubModule");
System.out.println("home interface--->"+homeclass);
EJBHome home= (EJBHome)javax.rmi.PortableRemoteObject.narrow(objref,homeclass);

I have added oc4jclient.jar in applib and my ejb-jar.xml looks fine.


09/08/06 11:57:42 In Servlet
09/08/06 11:57:42 Objectref-->SubModule EJBHome
09/08/06 11:57:42 Class name:org.rl.submod.SubModuleHome
09/08/06 11:57:42 home interface--->interface org.rl.submod.SubModu
leHome
09/08/06 11:57:42 java.lang.ClassCastException
09/08/06 11:57:42 at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.
narrow(PortableRemoteObject.java:229)
09/08/06 11:57:42 at javax.rmi.PortableRemoteObject.narrow(PortableRemoteO
bject.java:137)
09/08/06 11:57:42 at ir.framework.servicelocator.ServiceLocator.getEJBHome
(ServiceLocator.java:118)
09/08/06 11:57:42 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:763)
09/08/06 11:57:42 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:856)
09/08/06 11:57:42 at com.evermind.server.http.ServletRequestDispatcher.inv
oke(ServletRequestDispatcher.java:713)
09/08/06 11:57:42 at com.evermind.server.http.ServletRequestDispatcher.for
wardInternal(ServletRequestDispatcher.java:370)
09/08/06 11:57:42 at com.evermind.server.http.HttpRequestHandler.doProcess
Request(HttpRequestHandler.java:871)
09/08/06 11:57:42 at com.evermind.server.http.HttpRequestHandler.processRe
quest(HttpRequestHandler.java:453)
09/08/06 11:57:42 at com.evermind.server.http.HttpRequestHandler.serveOneR
equest(HttpRequestHandler.java:221)
09/08/06 11:57:42 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:122)
09/08/06 11:57:42 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:111)
09/08/06 11:57:42 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunna
ble.run(ServerSocketReadHandler.java:260)
09/08/06 11:57:42 at oracle.oc4j.network.ServerSocketAcceptHandler.procCli
entSocket(ServerSocketAcceptHandler.java:234)
09/08/06 11:57:42 at oracle.oc4j.network.ServerSocketAcceptHandler.access$
700(ServerSocketAcceptHandler.java:29)
09/08/06 11:57:42 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptH
andlerHorse.run(ServerSocketAcceptHandler.java:879)
09/08/06 11:57:42 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:298)
09/08/06 11:57:42 at java.lang.Thread.run(Thread.java:595)
09/08/06 11:57:42 Caused by: java.lang.ClassCastException: SubModule_RemoteHo
meProxy_1agn9nm
09/08/06 11:57:42 at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.
narrow(PortableRemoteObject.java:212)
09/08/06 11:57:42 ... 20 more
09/08/06 11:57:42 Done with Servlet


Please help me find the solution!!!
12 years ago
I am trying to deploy my MDB in Weblogic 9.2. My

code is

InitialContext initctx = new InitialContext();
cf = (ConnectionFactory)initctx.lookup("jms/CreateConnectionFactory");
queue = (Queue)cf.lookup("jms/CaseCreateQueue");


EJB-jar.xml is
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1">

<enterprise-beans>
<message-driven>
<display-name>SampleMDB</display-name>
<ejb-name>SampleMessageBean</ejb-name>
<ejb-class>com.ejb.SampleMessageBean</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<resource-ref>
<res-ref-name>jms/CreateConnectionFactory</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/CreateQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
</message-driven>
</enterprise-beans>
</ejb-jar>

<?xml version="1.0" encoding="UTF-8" ?>
<weblogic-ejb-jar
xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920/weblogic-ejb-jar.xsd">

<weblogic-enterprise-bean>
<ejb-name>SampleMessageBean</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>10</max-beans-in-free-pool>
<initial-beans-in-free-pool>0</initial-beans-in-free-pool>
</pool>
<destination-jndi-name>jms/CreateQueue</destination-jndi-name>
<initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
<provider-url>t3://localhost:7001</provider-url>;
<connection-factory-jndi-name>jms/CreateConnectionFactory</connection-factory-jndi-name>
<jms-polling-interval-seconds>20</jms-polling-interval-seconds>
</message-driven-descriptor>
<resource-description>
<res-ref-name>jms/CreateConnectionFactory</res-ref-name>
<jndi-name>t3://localhost:7001/jms/CreateConnectionFactory</jndi-name>;
</resource-description>
<resource-env-description>
<resource-env-ref-name>jms/CreateQueue</resource-env-ref-name>
<resource-link>CaseCreate#CreateQueue</resource-link>
</resource-env-description>
<resource-env-description>
<resource-env-ref-name>jms/CreateConnectionFactory</resource-env-ref-name>
<resource-link>CaseCreate#CreateConnectionFactory</resource-link>
</resource-env-description>

</weblogic-enterprise-bean>


</weblogic-ejb-jar>

weblogic-application.xml
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-application xmlns="http://www.bea.com/ns/weblogic/920" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<module>
<name>CaseCreate</name>
<type>JMS</type>
<path>CreateModule-jms.xml</path>
</module>
</weblogic-application>

When I try to start servicing the request for this application I get the following error
weblogic.utils.assertionError ***ASSERTION FAILED **** [Unknown JMS Destination type]

I did the check the server JNDI tree and I could see jms/CreateConnectionFactory and jms/CreateQueue.
Can anybody please help me with this issue???

Thanks in advance
Preethi