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 Steve Loughran <st...@iseran.com> on 2002/09/12 01:59:04 UTC

what if there is no engine config file?

I've been bringing up a webapp that used axis beta 3 against the RC
candidate, and am getting this little message whenever I run the
adminclient:

org.apache.axis.ConfigurationException: java.lang.Exception: No engine
configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
        at
org.apache.axis.ConfigurationException.<init>(ConfigurationException.
java:89)
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
er.java:206)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:188)


Because there is no config, I cant ever create a config by running the admin
client. Which is the whole point of running the admin client.

-steve


Re: what if there is no engine config file?

Posted by Richard Sitze <rs...@us.ibm.com>.
Steve,

I introduced that (incorrect) behavior when I was reworking the 
factories... thought I corrected that 2 weeks ago, I'll take another look.
<ras>

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




"Steve Loughran" <st...@iseran.com>
09/11/2002 06:59 PM
Please respond to axis-dev
 
        To:     "axis-dev" <ax...@xml.apache.org>
        cc: 
        Subject:        what if there is no engine config file?

 


I've been bringing up a webapp that used axis beta 3 against the RC
candidate, and am getting this little message whenever I run the
adminclient:

org.apache.axis.ConfigurationException: java.lang.Exception: No engine
configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
        at
org.apache.axis.ConfigurationException.<init>(ConfigurationException.
java:89)
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
er.java:206)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:188)


Because there is no config, I cant ever create a config by running the 
admin
client. Which is the whole point of running the admin client.

-steve




Re: what if there is no engine config file?

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Steve Loughran" <st...@iseran.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 1:41 PM
Subject: Re: what if there is no engine config file?


>
> ----- Original Message -----
> From: "Richard Sitze" <rs...@us.ibm.com>
> To: <ax...@xml.apache.org>
> Sent: Thursday, September 12, 2002 12:57 PM
> Subject: Re: what if there is no engine config file?
>
>
> > OK... step back richard.  I don't think that last fix is going to work
for
> > you.  Steve, is this happening on the 'client' or 'server' side of AXIS?
> > I've been assuming server, but I'm having my doubts.
>
> server side when I run admin client; the server is bailing.
>
> > It doesn't appear
> > (to me) that the servlet ever let you create a server-side wsdd file..
> > <ras>
>
> Well, it is after your last change. Now it looks like something else is
> going awry, but that may be due to xml parsers in the WAR and so is my
> problem, not yours. (though I may add some xml parser info to
happyaxis.jsp)

All is now well, and we have more helpful stuff in the happyaxis page. Here
is the extra info from tomcat4.1

      Servlet version 2.3
      XML Parser org.apache.crimson.jaxp.SAXParserImpl



The latter surprises me; running on java1.4 I'd have expected Xerces. But oh
no, Tomcat4.1's default XML parser is crimson. I wonder what else that
effects


Re: what if there is no engine config file?

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Richard Sitze" <rs...@us.ibm.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 12:57 PM
Subject: Re: what if there is no engine config file?


> OK... step back richard.  I don't think that last fix is going to work for
> you.  Steve, is this happening on the 'client' or 'server' side of AXIS?
> I've been assuming server, but I'm having my doubts.

server side when I run admin client; the server is bailing.

> It doesn't appear
> (to me) that the servlet ever let you create a server-side wsdd file..
> <ras>

Well, it is after your last change. Now it looks like something else is
going awry, but that may be due to xml parsers in the WAR and so is my
problem, not yours. (though I may add some xml parser info to happyaxis.jsp)



Re: what if there is no engine config file?

Posted by Richard Sitze <rs...@us.ibm.com>.
GOT IT.  Fix coming right up.
<ras>

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




Richard Sitze/Austin/IBM@IBMUS
09/12/2002 02:57 PM
Please respond to axis-dev
 
        To:     axis-dev@xml.apache.org
        cc: 
        Subject:        Re: what if there is no engine config file?

 


OK... step back richard.  I don't think that last fix is going to work for 

you.  Steve, is this happening on the 'client' or 'server' side of AXIS? 
I've been assuming server, but I'm having my doubts.  It doesn't appear 
(to me) that the servlet ever let you create a server-side wsdd file..
<ras>

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




"Steve Loughran" <st...@iseran.com>
09/11/2002 06:59 PM
Please respond to axis-dev
 
        To:     "axis-dev" <ax...@xml.apache.org>
        cc: 
        Subject:        what if there is no engine config file?

 


I've been bringing up a webapp that used axis beta 3 against the RC
candidate, and am getting this little message whenever I run the
adminclient:

org.apache.axis.ConfigurationException: java.lang.Exception: No engine
configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
        at
org.apache.axis.ConfigurationException.<init>(ConfigurationException.
java:89)
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
er.java:206)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:188)


Because there is no config, I cant ever create a config by running the 
admin
client. Which is the whole point of running the admin client.

-steve






Re: what if there is no engine config file?

Posted by Richard Sitze <rs...@us.ibm.com>.
OK... step back richard.  I don't think that last fix is going to work for 
you.  Steve, is this happening on the 'client' or 'server' side of AXIS? 
I've been assuming server, but I'm having my doubts.  It doesn't appear 
(to me) that the servlet ever let you create a server-side wsdd file..
<ras>

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




"Steve Loughran" <st...@iseran.com>
09/11/2002 06:59 PM
Please respond to axis-dev
 
        To:     "axis-dev" <ax...@xml.apache.org>
        cc: 
        Subject:        what if there is no engine config file?

 


I've been bringing up a webapp that used axis beta 3 against the RC
candidate, and am getting this little message whenever I run the
adminclient:

org.apache.axis.ConfigurationException: java.lang.Exception: No engine
configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
        at
org.apache.axis.ConfigurationException.<init>(ConfigurationException.
java:89)
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
er.java:206)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:188)


Because there is no config, I cant ever create a config by running the 
admin
client. Which is the whole point of running the admin client.

-steve




Re: what if there is no engine config file?

Posted by Richard Sitze <rs...@us.ibm.com>.
Just checked a change in... very very strange (to me).

I don't have a 'test' environment for this, so I'm depending upon you and 
another user to help me isolate this.  From the clues I'm seeing, it 
appears to be related to the following code sequence (I've cut error 
checking for brevity, and adjusted for clarity of this example):

    URL url = servletContext.getResource("/WEB-INF/server-config.wsdd");
    String fileName = url.getFile().toString()
    FileProvider config = new FileProvider(fileName);

>From what I'm hearing, it may be that fileName is "server-config.wsdd" OR 
"<basePath>/server-config.wsdd", rather than (something like) 
"<basePath/webappPath>/WEB-INF/server-config.wsdd".   Does this trigger 
any thoughts for you?

Anyway, I've eliminated the code above, and replaced with code from 3 
weeks ago... would you mind giving it a quick try?
<ras>


*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




"Steve Loughran" <st...@iseran.com>
09/12/2002 01:50 PM
Please respond to axis-dev
 
        To:     <ax...@xml.apache.org>
        cc: 
        Subject:        Re: what if there is no engine config file?

 



----- Original Message -----
From: "Richard Sitze" <rs...@us.ibm.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 9:54 AM
Subject: Re: what if there is no engine config file?


> Historically, WHERE did it create the file?  In the current directory
> (whatever that may be), or ?

I think it created the server-config.wsdd file where it could be read in
again, like in WEB-INF. Now for some extra wierdness there is no such file
in my Axis webapp running, yet it all works.

I'm using tomcat 4.1; that may be the cause and it is simply bug id #12509
surfacing.

Will try w/Jboss instead.






Re: what if there is no engine config file?

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Richard Sitze" <rs...@us.ibm.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 9:54 AM
Subject: Re: what if there is no engine config file?


> Historically, WHERE did it create the file?  In the current directory
> (whatever that may be), or ?

I think it created the server-config.wsdd file where it could be read in
again, like in WEB-INF. Now for some extra wierdness there is no such file
in my Axis webapp running, yet it all works.

I'm using tomcat 4.1; that may be the cause and it is simply bug id #12509
surfacing.

Will try w/Jboss instead.




Re: what if there is no engine config file?

Posted by Richard Sitze <rs...@us.ibm.com>.
Historically, WHERE did it create the file?  In the current directory 
(whatever that may be), or ?

<ras>

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




"Steve Loughran" <st...@iseran.com>
09/12/2002 11:49 AM
Please respond to axis-dev
 
        To:     <ax...@xml.apache.org>
        cc: 
        Subject:        Re: what if there is no engine config file?

 



----- Original Message -----
From: "Richard Sitze" <rs...@us.ibm.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 7:35 AM
Subject: Re: what if there is no engine config file?


> Steve,
>
> the file looks correct.  Are you using a recent AXIS build?
> <ras>

yes, but I probably dont have a config file, because axis.jar is in 
another
WAR file.

historically axis would just create one as it went along, now it bails out
early



> *******************************************
> Richard A. Sitze
> IBM WebSphere WebServices Development
>
>
>
>
> "Steve Loughran" <st...@iseran.com>
> 09/11/2002 06:59 PM
> Please respond to axis-dev
>
>         To:     "axis-dev" <ax...@xml.apache.org>
>         cc:
>         Subject:        what if there is no engine config file?
>
>
>
>
> I've been bringing up a webapp that used axis beta 3 against the RC
> candidate, and am getting this little message whenever I run the
> adminclient:
>
> org.apache.axis.ConfigurationException: java.lang.Exception: No engine
> configuration file - aborting!
> java.lang.Exception: No engine configuration file - aborting!
> java.lang.Exception: No engine configuration file - aborting!
>         at
> org.apache.axis.ConfigurationException.<init>(ConfigurationException.
> java:89)
>         at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
> er.java:206)
>         at org.apache.axis.AxisEngine.init(AxisEngine.java:188)
>
>
> Because there is no config, I cant ever create a config by running the
> admin
> client. Which is the whole point of running the admin client.
>
> -steve
>
>
>
>




Re: what if there is no engine config file?

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Richard Sitze" <rs...@us.ibm.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 7:35 AM
Subject: Re: what if there is no engine config file?


> Steve,
>
> the file looks correct.  Are you using a recent AXIS build?
> <ras>

yes, but I probably dont have a config file, because axis.jar is in another
WAR file.

historically axis would just create one as it went along, now it bails out
early



> *******************************************
> Richard A. Sitze
> IBM WebSphere WebServices Development
>
>
>
>
> "Steve Loughran" <st...@iseran.com>
> 09/11/2002 06:59 PM
> Please respond to axis-dev
>
>         To:     "axis-dev" <ax...@xml.apache.org>
>         cc:
>         Subject:        what if there is no engine config file?
>
>
>
>
> I've been bringing up a webapp that used axis beta 3 against the RC
> candidate, and am getting this little message whenever I run the
> adminclient:
>
> org.apache.axis.ConfigurationException: java.lang.Exception: No engine
> configuration file - aborting!
> java.lang.Exception: No engine configuration file - aborting!
> java.lang.Exception: No engine configuration file - aborting!
>         at
> org.apache.axis.ConfigurationException.<init>(ConfigurationException.
> java:89)
>         at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
> er.java:206)
>         at org.apache.axis.AxisEngine.init(AxisEngine.java:188)
>
>
> Because there is no config, I cant ever create a config by running the
> admin
> client. Which is the whole point of running the admin client.
>
> -steve
>
>
>
>


Re: what if there is no engine config file?

Posted by Richard Sitze <rs...@us.ibm.com>.
Steve,

the file looks correct.  Are you using a recent AXIS build?
<ras>

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




"Steve Loughran" <st...@iseran.com>
09/11/2002 06:59 PM
Please respond to axis-dev
 
        To:     "axis-dev" <ax...@xml.apache.org>
        cc: 
        Subject:        what if there is no engine config file?

 


I've been bringing up a webapp that used axis beta 3 against the RC
candidate, and am getting this little message whenever I run the
adminclient:

org.apache.axis.ConfigurationException: java.lang.Exception: No engine
configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
java.lang.Exception: No engine configuration file - aborting!
        at
org.apache.axis.ConfigurationException.<init>(ConfigurationException.
java:89)
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
er.java:206)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:188)


Because there is no config, I cant ever create a config by running the 
admin
client. Which is the whole point of running the admin client.

-steve