Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WebServices using WTP
WebServices using WTP [message #170781] Wed, 07 June 2006 17:32 Go to next message
Eclipse User
Originally posted by: sudheer09.yahoo.com

I'm using JBoss v4.0 test server inside WTP v1.0.2 and getting the
following error when running webservice client.

exception: The AXIS engine could not find a target service to invoke!
targetService is AreaServiceSOAP

And also seeing this in the WTP console:

15:33:55,992 INFO [EARDeployer] Started J2EE application:
file:/C:/jboss-4.0.3SP1/server/default/deploy/AreaProjEAR.ea r
15:34:22,129 ERROR [EngineConfigurationFactoryServlet] Unable to find
config file. Creating new servlet engine config file:
/WEB-INF/server-config.wsdd


Any help is greatly appreciated
Re: WebServices using WTP [message #170872 is a reply to message #170781] Thu, 08 June 2006 12:32 Go to previous messageGo to next message
Chris Brealey is currently offline Chris Brealey
Messages: 104
Registered: July 2009
Senior Member
This is a dead-ringer for WTP bug 140994 [1] which we have not had a
chance to dig into much yet. Axis is clearly up and listening on the
right port. The messages in the console is normal the first time the Axis
servlet wakes up in a Web module, though with JBoss there could be more
to the message "Creating new servlet engine config file:
/WEB-INF/server-config.wsdd", perhaps indicating that the server-config
metadata isn't been managed correctly at all.

Once we get thru WTP 1.5 shutdown we will try to have a proper look.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=140994

Thanks - CB.

Sud wrote:

> I'm using JBoss v4.0 test server inside WTP v1.0.2 and getting the
> following error when running webservice client.
>
> exception: The AXIS engine could not find a target service to invoke!
> targetService is AreaServiceSOAP
>
> And also seeing this in the WTP console:
>
> 15:33:55,992 INFO [EARDeployer] Started J2EE application:
> file:/C:/jboss-4.0.3SP1/server/default/deploy/AreaProjEAR.ea r
> 15:34:22,129 ERROR [EngineConfigurationFactoryServlet] Unable to find
> config file. Creating new servlet engine config file:
> /WEB-INF/server-config.wsdd
>
> Any help is greatly appreciated
Re: WebServices using WTP [message #170889 is a reply to message #170872] Thu, 08 June 2006 15:36 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010605000906000003030008
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I'm not all that up on web services and the development support in WTP,
but I believe this problem may relate to bug/enhancement 119964 [1].
The wizard generates the server-config.wsdd file by deploying the
service to a copy of the services webapp running on a Tomcat server. It
then copies the resulting file back from the server to the project. It
only works with a Tomcat servers. It doesn't work with JBoss because
the wizard doesn't know how to find the generated server-config.wsdd file.

However, you should be able to accomplish the same thing with the Axis
Admin Client and an Ant script. I have such an Ant script but haven't
had much time to finalize it with respect to how best to invoke it and
what features it should support. There are a number of different
choices and you are welcome to put it to use in some manner that suits
your environment.

It its current state, you need to create an External Tools Ant Build
configuration for the script and in the Properties tab, add a new
property named "project.loc" which is derived from the Eclipse variable
"project_loc", i.e. value is "${project_loc}". Also, tweak the internal
script property "web.content.src", if necessary for your environment.
You can then select the web services project or a resource it contains,
such as this Ant script if it is in the project, and execute the script
via the External Tools menu. It will generate a server-config.wsdd file
that includes all deploy.xml files discovered under WEB-INF/*Services
folders in the project. I think this is fairly equivalent to what you
would get out of the web services wizard. HTH.

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=119964


Chris Brealey wrote:
> This is a dead-ringer for WTP bug 140994 [1] which we have not had a
> chance to dig into much yet. Axis is clearly up and listening on the
> right port. The messages in the console is normal the first time the Axis
> servlet wakes up in a Web module, though with JBoss there could be more
> to the message "Creating new servlet engine config file:
> /WEB-INF/server-config.wsdd", perhaps indicating that the server-config
> metadata isn't been managed correctly at all.
>
> Once we get thru WTP 1.5 shutdown we will try to have a proper look.
>
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=140994
>
> Thanks - CB.
>
> Sud wrote:
>
>> I'm using JBoss v4.0 test server inside WTP v1.0.2 and getting the
>> following error when running webservice client.
>>
>> exception: The AXIS engine could not find a target service to invoke!
>> targetService is AreaServiceSOAP
>>
>> And also seeing this in the WTP console:
>>
>> 15:33:55,992 INFO [EARDeployer] Started J2EE application:
>> file:/C:/jboss-4.0.3SP1/server/default/deploy/AreaProjEAR.ea r
>> 15:34:22,129 ERROR [EngineConfigurationFactoryServlet] Unable to find
>> config file. Creating new servlet engine config file:
>> /WEB-INF/server-config.wsdd
>>
>> Any help is greatly appreciated
>


--------------010605000906000003030008
Content-Type: text/xml;
name="wsdd-config-build.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="wsdd-config-build.xml"

<project name="wsdd-config-build" default="generate">
<!-- Adjust this property as needed -->
<property name="web.content.src" value="WebContent"/>

<path id="axis.classpath">
<pathelement location="${project.loc}/build/classes"/>
<fileset dir="${project.loc}/WebContent/WEB-INF/lib" id="id">
<include name="*.jar"/>
</fileset>
<!-- Add activation.jar and mail.jar if needed -->
</path>

<target name="check.wsdd">
<property name="wsdd.file" location="deploy.wsdd"/>
<available property="wsdd.exists" file="${wsdd.file}"/>
</target>

<target name="process.wsdd" if="wsdd.exists">
<java classname="org.apache.axis.utils.Admin" fork="true"
dir="${project.loc}/WebContent/WEB-INF">
<arg value="server" />
<arg value="${wsdd.file}" />
<classpath refid="axis.classpath"/>
</java>
</target>

<target name="do.wsdd" depends="check.wsdd,process.wsdd"/>

<target name="generate">
<subant genericantfile="${ant.file}" target="do.wsdd">
<dirset dir="." includes="${web.content.src}/WEB-INF/*Service/**/"/>
</subant>
</target>
</project>
--------------010605000906000003030008--
Previous Topic:Sending Complex Objects Using SOAP
Next Topic:Problems using publishing...
Goto Forum:
  


Current Time: Wed Apr 16 09:48:22 EDT 2014

Powered by FUDForum. Page generated in 0.02462 seconds