• 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

Tomcat 6 web services is not deployed 404 error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm been trying to deployed a simple web service on tomcat, but I have not success and it always return me 404 error.

I used the codes from this example

http://www.mkyong.com/webservices/jax-ws/deploy-jax-ws-web-services-on-tomcat/

But not able to use the war, as I have context info set up in server.xml

So I use the same codes as mkyong, but deploy it with the steps on

how to manually deploy a web service on tomcat 6?

I work on it until there is no more error in the catalina.log, still I got 404 error

When I look at the log, there are some messages like this

Mar 1, 2013 1:56:07 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Mar 1, 2013 1:56:08 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
Mar 1, 2013 1:56:08 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 1, 2013 1:56:09 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 1, 2013 1:56:09 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/65 config=null
Mar 1, 2013 1:56:09 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 25709 ms

So my ws is set up right? But I'm really out of clue why it is still not working, is there any other log I can check or places I need to set up to have the ws running? Is there any port setting I need to do? I try to view it like http://www.xyx.com/HelloWorld/hello, rather than localhost:8080? Is it the problem?

Thank you for your time,

Dolly
 
Ranch Hand
Posts: 75
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

So my ws is set up right?



yes

But I'm really out of clue why it is still not working



well... not much info / expections / details, so not much we can tell...

is there any other log I can check



nope, that's it, catalina.out

Is there any port setting I need to do?
I try to view it like http://www.xyx.com/HelloWorld/hello, rather than localhost:8080? Is it the problem?



could be, what exactly listen on port 80?
as far as I can see:

INFO: Starting Coyote HTTP/1.1 on http-8080



your Coyote is on port 8080, are you behind Apache? mod_jk or mod_proxy?
if so...

INFO: JK: ajp13 listening on /0.0.0.0:8009



your JK is on 8009, so make sure mod_jk config is correct, and mapping is in place for your app, something like:
JkMount /HelloWorld/* workername

 
pie. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic