Run job from war file on webserver

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?

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.
Highlighted
Five Stars xvz
Five Stars

Re: Run job from war file on webserver

Yes , it works perfect in studio.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download