users@jax-rpc.java.net

JWSDP 1.5 -> JWSDP 1.6

From: Baker, Brad \(Contr\) <"Baker,>
Date: Thu, 7 Jul 2005 09:42:41 -0700

Hi All,
It seems I take one step back for every one forward.

I am getting some strange errors when I moved to 1.6:

[#|2005-07-07T09:02:14.078-0700|SEVERE|sun-appserver-pe8.1_02|javax.ente
rprise.system.tools.deployment|_ThreadID=12;|"DPL8011: autodeployment
failure while deploying the application : Error loading deployment
descriptors for HDWS_dcgs_test_server Line 20 Column 15 -- Element type
"context-root" must be declared.
"|#]

Here is my web.xml:
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

<web-app>
    <display-name>RAIWebService</display-name>
    <description>This is a test stub that will mimic the DCGS meta data
catalog Web service.</description>
    <context-root>HDWS_dcgs_test_server</context-root>
</web-app>

I thought well I don't really need the <context-root> so I tried:
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

<web-app>
    <display-name>RAIWebService</display-name>
    <description>This is a test stub that will mimic the DCGS meta data
catalog Web service.</description>
</web-app>

But when I try to "Cook the War" I get:
 [wsdeploy] error: java.lang.NullPointerException
 [wsdeploy] java.lang.NullPointerException
 [wsdeploy] at
com.sun.xml.rpc.tools.wsdeploy.DeployTool.defineServletsAndListeners(Dep
loyTool.java:447)
 [wsdeploy] at
com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:258)
 [wsdeploy] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
 [wsdeploy] at
com.sun.xml.rpc.tools.ant.Wsdeploy.execute(Wsdeploy.java:423)
 [wsdeploy] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [wsdeploy] at org.apache.tools.ant.Task.perform(Task.java:364)
 [wsdeploy] at org.apache.tools.ant.Target.execute(Target.java:341)
 [wsdeploy] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [wsdeploy] at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 [wsdeploy] at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 [wsdeploy] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAnt
Runner.java:383)
 [wsdeploy] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAn
tRunner.java:136)
 [wsdeploy] Command invoked: -o
C:\h\WebServices\bin\HDWS_dcgs_test_server.war
C:\h\WebServices\temp\ws-raw.war -classpath
C:\Sun\jwsdp-1.6\jaxrpc\lib\jaxrpc-api.jar;C:\Sun\jwsdp-1.6\jaxrpc\lib\j
axrpc-spi.jar;C:\Sun\jwsdp-1.6\jaxrpc\lib\jaxrpc-impl.jar;C:\h\WebServic
es\lib\j2ee.jar;C:\Sun\jwsdp-1.6\saaj\lib\saaj-impl.jar;C:\Sun\jwsdp-1.6
\saaj\lib\saaj-api.jar

Any thought on were/how I am to use <context-root> with 1.6?

Thanks,
Brad