Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Error creating a WAR using wsdeploy tool

Thread view: 
Viv - 18 Oct 2005 18:03 GMT
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
HalcyonWild - 18 Oct 2005 19:53 GMT
> I've copied all of the jars from the
> following directories into <TOMCAT_HOME>/shared/lib:
[quoted text clipped - 3 lines]
>   <JWSDP_HOME>/jaxp/lib/endorsed
>   <JWSDP_HOME>/jwsdp-shared/lib

Vivi,

Check your environment variables,

Also try copying them to $tomcat_home/common/lib
Viv - 21 Oct 2005 14:30 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.