Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to build unified client application which could able to understand multiple web services  RSS feed

 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I wanted to build unified client application which could able to understand multiple web services (Service provider) for the various category

All the request from our client app should be a web services and should talk with My server, which in turn talk with third party server

Server[Service Provider] refers to Business logic server/
Client [Consumer] refers to JSP/ PHP/ASP/HTML


Thanks in advance

 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where exactly are you stuck?
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am struck in servlet code if i will run my jsp its showing HTTP Status 404 actually i dnt know exatly that servlet code is correct or not
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A 404 means that the servlet isn;t even being found. See the ServletsFaq for a list of things to work through.
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for understand i created 4 servlet pages

1. jobsearch-> inside jobsearch i am triying to call carrerbuilder

2. i created carrer page( i called 3rd party)

3. i created database


now this all i will connect to client(jsp/html)

please help me
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
revathi kurum wrote:I am struck in servlet code if i will run my jsp its showing HTTP Status 404 actually i dnt know exatly that servlet code is correct or not

Does it compile without errors? Look for your server log files (it's very important to know where your server log files are). Are there error messages there?
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please can you let me know about this problem
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
revathi kurum wrote:please can you let me know about this problem

Like Bear said, your servlets are not even being found. Did you check out the servlets FAQ like he suggested?

1) Copy paste here your 4 servlet names along with their package names
2) Copy paste here your web.xml (Please don't forget to UseCodeTags)
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actuallu i created webservice

name as Jobdetails.java
above one i will run means its give WSDL

by using WSDL i created webservice-client

there my servlet 1 st one

Jobserach.java


Carrer.java


Jobuserinsert.java


Jobdetails.java


now i want to create jsp/html page without any coding please help me

Thanks
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Did you check out the servlets FAQ like he suggested? ...Copy paste here your web.xml (Please don't forget to UseCodeTags)

Since you can't be bothered to help us help you (no web.xml, unformatted code) I do not think I can be bothered to help you. You also chose not to answer if you checked out the link. Overall I get the feeling (I can be wrong) that you expect someone to solve your problem without you taking any trouble.
Please read (at least this time) => ShowSomeEffort
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry

web.xml


<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
<servlet-name>Carrer</servlet-name>
<servlet-class>Job.Carrer</servlet-class>
</servlet>
<servlet>
<servlet-name>Jobdetails</servlet-name>
<servlet-class>Job.Jobdetails</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Carrer</servlet-name>
<url-pattern>/Carrer</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Jobdetails</servlet-name>
<url-pattern>/Jobdetails</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

Thanks
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you find those log files? Do they say your application deployed successfully? What context path do they say your application is deployed at?
Developing without checking your log files is like shooting in the dark.
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry i can understand thanks for you reply
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
like that it is showing

Dec 24, 2013 9:39:57 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 24, 2013 9:39:57 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Dec 24, 2013 3:13:49 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet Carrer as unavailable
Dec 24, 2013 3:13:49 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
context: /Event_Client
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1fee6fc
Job.Carrer
java.lang.ClassNotFoundException: Job.Carrer
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Dec 24, 2013 3:13:49 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet Carrer
java.lang.ClassNotFoundException: Job.Carrer
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Dec 24, 2013 3:17:20 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet Carrer is currently unavailable
Dec 24, 2013 3:17:39 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet Carrer is currently unavailable
Dec 24, 2013 3:18:38 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet Carrer is currently unavailable
Dec 24, 2013 3:21:23 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet Carrer is currently unavailable
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The log file is telling you that the class Job.Carrer was not found under your war file's /WEB-INF/classes/. It needs to be there for the servlet to deploy successfully.
Also read and apply standard naming conventions :http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!