The build.xml file that is generated by WSDL2Java expects an environmental variable called exactly that (pointing to the root of your axis installation). Try adding this, and see if it works.

 

 

Brennan Spies

Sr. Programmer Analyst

Shared Application Services

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Thursday, October 19, 2006 12:10 PM
To: axis-user@ws.apache.org
Subject: simpleaxis2server.bat: System can not find the given axis2.xml

 


I have downloaded the latest nightly standard binary dist, I get this error running simpleaxis2server.bat:

C:\axis2\axis2-1.1-SNAPSHOT\bin>simpleaxis2server.bat
Using AXIS2_HOME:   C:\axis2\axis2-1.1-SNAPSHOT
Using JAVA_HOME:    C:\jdk1.6.0
[SimpleAxisServer] Starting
[SimpleAxisServer] Using the Axis2 RepositoryC:\axis2\axis2-1.1-SNAPSHOT\bin\$AX
IS2_HOME\repository
[SimpleAxisServer] Using the Axis2 Configuration FileC:\axis2\axis2-1.1-SNAPSHOT
\bin\$AXIS2_HOME\conf\axis2.xml
Oct 19, 2006 2:50:51 PM org.apache.axis2.transport.SimpleAxis2Server main
SEVERE: Error starting SimpleAxisServer
org.apache.axis2.AxisFault: System can not find the given axis2.xml $AXIS2_HOME\
conf\axis2.xml
        at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfigurati
on(FileSystemConfigurator.java:111)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:61)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContextFromFileSystem(ConfigurationContextFactory.java:180)
        at org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.j
ava:78)
[SimpleAxisServer] Shutting down


The axis2.xml file is where it should be, but the "$AXIS2_HOME" in the following lines look suspicious to me:

[SimpleAxisServer] Using the Axis2 RepositoryC:\axis2\axis2-1.1-SNAPSHOT\bin\$AX
IS2_HOME\repository
[SimpleAxisServer] Using the Axis2 Configuration FileC:\axis2\axis2-1.1-SNAPSHOT
\bin\$AXIS2_HOME\conf\axis2.xml

Adam

Reply via email to