Error creating a WAR using wsdeploy tool

V

Viv

Iam trying to create a WAR to deploy on Tomcat 5.5 using wsdeploy tool
of jwsdp-1.6. The command is

wsdeploy.bat -verbose -o dist/myWStest.war build/my
WEB-INF.war

Iam getting a ClassNotFoundException. Below is the snippet of same

error: RmiModeler error: java.lang.ClassNotFoundException:
server$wstest
info: removed temporary directory:
D:\DOCUME~1\ASHISHP\LOCALS~1\Temp\jaxrpc-depl
oy-45d931
error: java.lang.NullPointerException
java.lang.NullPointerException
at
com.sun.xml.rpc.tools.wsdeploy.DeployTool.defineServletsAndListeners(
DeployTool.java:447)
at
com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:258)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
........
......

I've copied all of the jars from the
following directories into <TOMCAT_HOME>/shared/lib:

<JWSDP_HOME>/jaxrpc/lib
<JWSDP_HOME>/saaj/lib
<JWSDP_HOME>/jaxp/lib/endorsed
<JWSDP_HOME>/jwsdp-shared/lib

What could be the problem ?
Thanks
 
H

HalcyonWild

Viv said:
I've copied all of the jars from the
following directories into <TOMCAT_HOME>/shared/lib:

<JWSDP_HOME>/jaxrpc/lib
<JWSDP_HOME>/saaj/lib
<JWSDP_HOME>/jaxp/lib/endorsed
<JWSDP_HOME>/jwsdp-shared/lib


Vivi,

Check your environment variables,

Also try copying them to $tomcat_home/common/lib
 
V

Viv

Just for future reference to others I would like to post this that this
was occuring bcoz package hierarchy under WEB-INF\classes is wrong.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top