• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

web service deployment on shared hosting tomcat server

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created a web application and created a soap web service for that using eclipse helios ide. I have also created the test client for the web service created usin the ' wsdl ' file created during the creaio of the web service.

I integrate the tomcat 6.0.33 and published the web application to it. When i try to run the wsdl or the jsp test client, it works properly and showing results.

But i wanted to host this app on the shared tomcat hosting server. So, when i uploaded the app to the shared hosting server and try to run the wsdl, it shows page not found and when i try to view test client jsp page, the methods pane shows, the input pane shows but the results page shows the internal server error.

org.apache.jasper.JasperException: /webcraftz_mob_sol6Client/sampleLoginServiceProxy/Result.jsp(10,0) The value attribute of useBean com.webcraftz.LoginServiceProxy class is invalid.

org.apache.jasper.JasperException: /webcraftz_mob_sol6Client/sampleLoginServiceProxy/Result.jsp(10,0) El valor el atributo de clsae useBean com.webcraftz.LoginServiceProxy es inválido.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1272)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1178)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Generator.generate(Generator.java:3426)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:216)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


The shared hosting server is having tomcat 6.0.20

So, is there any other settings required to host the app on the shared hosting server? I am the newcomer in the process of creating web services and consuming them and required a help in this regard.

Thank you
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Have you customized the Tomcat instance on which the web service were deployed successfully in any way?
Certain web service stacks seems to be more happy when installed in the container, i.e. Metro, while others can be enclosed as JAR-files on a per-application basis.
My experience in the latter area is with Apache CXF.

Is the class com.webcraftz.LoginServiceProxy a class that you have implemented?
How is it configured? Using Spring?
Best wishes!
 
swanand pawnaskar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Ivan for your reply on my doubt.

yes. com.webcraftz.LoginServiceProxy is the class i have implemented using eclipse.

In the eclipse ide i have first created a dynamic web project, created methods into it. Then using the eclipse menu i have created a web service and wsdl file.
Using eclipse only i have created a test client wih jsp pages. It is using jax-rpc and axis.

I have downloaded the tomcat server from apache and I have integrated it into my eclipse. I have changed the following things in my local tomcat:

1. port no of my local tomcat server 6.0.33 from 8080 default to 8085.
2. changed server location to use tomcat installation
3. deploy path changed to webapps in the tomcat server installation directory.

Now, the test client is working fine with the ' http://localhost:8085/..... ' path and the wsdl is showing properly in the local tomcat server.

But i want to deploy it on the shared tomcat hosting on hostjava. There i have uploaded the same file structure which is showing properly in the local environment. But it is not showing properly.

I am pretty much a newcomer in the field of web services, so i am not getting where it is going wrong.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Would you consider trying another web service stack?
I have limited experience with Axis and JAX-RPC is quite outdated. Personally, I would give Apache CXF a try, since (as before) I know it can be deployed embedded in a web application.
If you have to continue using Axis, are you seeing any messages in the log when deploying to Hostjava that indicate problems when deploying?
Best wishes!
 
swanand pawnaskar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have deployed the app in my local tomcat server integrated into eclipse for testing. There the app gets published and working fine in the local environment.

On the shared tomcat hosting, I have uploaded the published content folder to the root folder of 'public_html'. It is not showing any log for problems. But i haven't changed anything to my published app in the local tomcat server before uploading.

The classes were all present at proper locations, but it is giving me error in the result.jsp of the test client. The input.jsp and methods.jsp pages showing properly in testclient.jsp page created using eclipse.

The same way the wsdl definition file is not showing and it says resource not found.

So, my doubt is that is there any other setting required while uploading the local content to the remote shared tomcat hosting in the app folder or xml files?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I get the feeling that you try to deploy the WAR file in the wrong location. As I am sure that you are aware of, WAR files are usually deployed to the webapps directory in the Tomcat installation.
The name 'public_html' leads me to suspect that you may have uploaded your WAR file to a web server.
Try contacting the hosting company and ask about where to upload your WAR file!
Best wishes!
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic