You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Mark DeLanoy <md...@niku.com> on 2001/08/07 23:51:37 UTC

Trying to find server-config.xml

I'm running orion server 1.5.2 on Windows NT 4.0 SP6 and during the server
startup I get an exception.  It looks as though Axis is NOT adding a
backslash to the path.  For portability across j2ee vendor reasons we test
to see if there's a backslash and if not we add it prior to appending the
any relative paths.  Here's some sample code of a possible fix.

        ServletContext servletContext = getServletContext();
        // save servlet real path
        realPath = servletContext.getRealPath( "/" );
        if( !realPath.endsWith( "/" ) && !realPath.endsWith( "\\" ) )
        {
          realPath += "/";
        }

        // After the realPath you could add the WEB-INF\server-config.xml

With this fix you'd be able to run on Orionserver (also the new Oracle 9i),
IPlanet, Websphere, BEA and JRUN as we're running on all of those.  Could
someone make this fix as I don't have access to CVS.   Thanks, MD

java.io.FileNotFoundException:
D:\niku\union\src\webrootWEB-INF\server-config.xml (The system cannot find
the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at org.apache.axis.AxisEngine.saveConfiguration(AxisEngine.java:245)
        at org.apache.axis.utils.Admin.processEngineConfig(Admin.java:194)
        at org.apache.axis.AxisEngine.readConfiguration(AxisEngine.java:231)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:191)
        at org.apache.axis.AxisEngine.<init>(AxisEngine.java:139)
        at org.apache.axis.server.AxisServer.<init>(AxisServer.java:93)
        at
org.apache.axis.server.AxisServer.getSingleton(AxisServer.java:108)
        at
org.apache.axis.transport.http.AdminServlet.init(AdminServlet.java:81)
        at javax.servlet.GenericServlet.init(GenericServlet.java:44)
        at com.evermind._ah._axe(Unknown Source)
        at com.evermind._ah._fpd(Unknown Source)
        at com.evermind._ah._bae(Unknown Source)
        at com.evermind._ah._bie(Unknown Source)
        at com.evermind._ah.<init>(Unknown Source)
        at com.evermind._ck._czc(Unknown Source)
        at com.evermind._ae._czc(Unknown Source)
        at com.evermind._ab._crc(Unknown Source)
        at com.evermind._ab._at(Unknown Source)
        at com.evermind._ae._an(Unknown Source)
        at com.evermind._ae._at(Unknown Source)
        at com.evermind.server.ApplicationServer._wh(Unknown Source)
        at com.evermind.server.ApplicationServer._at(Unknown Source)
        at com.evermind._in.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at com.evermind._if.run(Unknown Source)
Orion/1.5.2 initialized