Five Stars xvz
Five Stars

Run job from war file on webserver

Hi,

 

I've created job in TOS for Data Integration. I builded it in war file.

Then I've pute it on webserver (Weblogic).

I try to run it like this: http://myserver/json2xml_0.1/services/json2xml?method=runJob&incomeString={123}

And I have an error:

 

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.apache.axis.ConfigurationException: Could not find class for the service named: a3.json2xml_0_1.json2xml
Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is: 
	java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'a3.json2xml_0_1.json2xml'
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: Could not find class for the service named: a3.json2xml_0_1.json2xml
Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is: 
	java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'a3.json2xml_0_1.json2xml'
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}hostname:esb11.dev.a-3.ru

Could not find class for the service named: a3.json2xml_0_1.json2xml
Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is: 
	java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'a3.json2xml_0_1.json2xml'
	at org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvider.java:432)
	at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:461)
	at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:286)
	at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
	at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
	at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
	at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
	at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:232)
	at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
	at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
	at org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:50)

 

I think that is no class in it. I've checked - there is no class

a3.json2xml_0_1.json2xml

 Why is it so?

  • Data Integration
Tags (1)
4 REPLIES
Moderator

Re: Run job from war file on webserver

Hi,

On which talend build version you got this issue?

As of 6.4.1 product management has deprecated the build job to Axis WebService (WAR) as shown in the following documentation: 

https://help.talend.com/reader/uCysbjfyKZbxWfRj_OAB4w/iWkjCqiEcUwyIA9sshQxLg

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars xvz
Five Stars

Re: Run job from war file on webserver


xdshi wrote:

Hi,

On which talend build version you got this issue?

As of 6.4.1 product management has deprecated the build job to Axis WebService (WAR) as shown in the following documentation: 

https://help.talend.com/reader/uCysbjfyKZbxWfRj_OAB4w/iWkjCqiEcUwyIA9sshQxLg

Best regards

Sabrina


Hi , I'm working in 6.3.1. version.

Maybe I should use Talend ESB ?

Moderator

Re: Run job from war file on webserver

Hello,

What does your job design look like? Your webservice job works perfectly fine in studio?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars xvz
Five Stars

Re: Run job from war file on webserver

Yes , it works perfect in studio.