Menu

#2059 Error: No engine configuration file - aborting!

v4.0
closed-invalid
None
5
2004-11-11
2004-10-01
sevk
No

-----------------------
JBOSS/AXIS BUG???
-----------------------

Problem: Web service client will not run at all.

Error message: org.apache.axis.ConfigurationException:
org.apache.axis.ConfigurationException: No engine
configuration file - aborting! ...

I'm Running: JBoss 4.0.0, running on Win XP Pro SP2.
JDK 1.4.2. I'm also using the generated classes from
WSDL2Java.

Diagnosis: JBoss is apparently not finding the config file
axis-client-config.xml, and crashes.
C:\jboss-4.0.0\server\standard\deploy\jboss-
ws4ee.sar\META-INF\axis-client-config.xml ???
Possible naming problem. Seems to want a .wsdd

-----------------------
A QUICK AND DIRTY FIX
-----------------------

1. get the config file. I just used the config file from
the WSDL2Java plugin from myspotter.com.

If you have the eclipse plugin, axis.jar is at:
<eclipsehome>\plugins\com.myspotter.wsdl2java_1.1.0
\axis.jar

...or you can also download Axis1.1 and look
in /lib/axis.jar

a. Find and rename axis.jar to axis.zip
b. navigate to org/apache/axis/client/
c. you should find a file called client-config.wsdd.
copy this to desktop
d. rename axis.zip back to axis.jar

2. JBoss apparently calls this by two names...
a. copy file client-config.wsdd
b. rename copy to axis-client-config.wsdd

3. the file to update is at:
<jbosshome>\server\standard\deploy\jboss-
ws4ee.sar\axis-ws4ee.jar
a. rename axis-ws4ee.jar to axis-ws4ee.zip
b. navigate to org/apache/axis/client/
c. copy BOTH files here (axis-client-config.wsdd,
client-config.wsdd)
d. rename axis-ws4ee.zip back to axis-ws4ee.jar

4. restarting server should fix the problem.
(I use the standard server: <jbosshome>/bin/run.bat -c
standard)

Note: there is a similar file at <jbosshome>\client\axis-
ws4ee.jar, but this seems to work as is.

-ks

Discussion

  • Thomas Diesler

    Thomas Diesler - 2004-10-03
    • assigned_to: nobody --> tdiesler
     
  • Thomas Diesler

    Thomas Diesler - 2004-10-04
    • status: open --> closed
     
  • Thomas Diesler

    Thomas Diesler - 2004-10-04

    Logged In: YES
    user_id=423364

    The axis-client-config.xml lives in $JBOSS_HOME/client/jboss-
    ws4ee-client.xml which must be on your classpath.

    Your fix is nonsense cause it replaces the jboss axis
    implementation with axis-1.1, which is by not J2EE compatible.

     
  • sevk

    sevk - 2004-10-07
    • status: closed --> open
     
  • sevk

    sevk - 2004-10-07

    Logged In: YES
    user_id=1131661

    Yes, this is just a hack, not a solution. I've actually tried
    adding the file to the classpath, but that does not work. I
    just can't get the JBoss xml config file to work with the
    generated wsdl2java code.

    Of course, the downside to this hack is J2EE compliance, and
    it might cause other problems down the road (although I have
    not had any *yet*). The plus side: the web services work.

    It is possible the problem is in wsdl2java plugin or Axis. The
    generated code might rely on the real axis.jar, not the JBoss
    version. I'm still investigating this. Although, it is suspicious
    that this works better in older versions of JBoss than newer:

    ---------------
    Testing different platforms, I've found that:

    JBoss 3.2.5 - Worked on first launch, but NullPointerException
    if redeployed (which could be a classloader issue.)

    JBoss 4.0.0 DR3 - Worked without any problems

    JBoss 4.0.0 RC1 - Error: No engine configuration file -
    aborting!

    JBoss 4.0.0 - Error: No engine configuration file - aborting!

    ---------------

    If you like, I can upload a zip file of a project that fails.

     
  • Thomas Diesler

    Thomas Diesler - 2004-10-13

    Logged In: YES
    user_id=423364

    With JBossWS you cannot use wsdl2java. It generates non
    portable client stubs. Use jwsdp-1.4 wscompile to generate
    POJOs as paramteter and return types.

    Don't mix axis.jar & axis-ws4ee.jar.

    Please attach a test that isolates the issue.

     
  • Thomas Diesler

    Thomas Diesler - 2004-11-11
    • status: open --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB