cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raphael F." <>
Subject Re: Easy way for deploying CXF project into webserver with WAR file
Date Mon, 11 May 2009 08:51:40 GMT

The error message is sent by the server. I see it in client terminal,
but it is a classic error message sent by server. See the following
HTML code which is contained by the Response Body message :

<html><head><title>Apache Tomcat/5.5 - Rapport
H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;} {color : black;}HR {color :
#525D76;}--></style> </head><body><h1>Etat HTTP 404 - Servlet
CXFServlet n'est pas disponible.</h1><HR size="1"
noshade="noshade"><p><b>type</b> Rapport d'état</p><p><b>message</b>
<u>Servlet CXFServlet n'est pas
disponible.</u></p><p><b>description</b> <u>La ressource
(Servlet CXFServlet n'est pas disponible.) n'est pas
disponible.</u></p><HR size="1" noshade="noshade"><h3>Apache

Here is the log file of Tomcat Catalina
(/var/lib/tomcat5.5/logs/catalina.2009.05..11.log) :

11 mai 2009 10:08:31 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive ProticPortWeb.war de l'application web
11 mai 2009 10:08:32 org.apache.catalina.loader.WebappClassLoader
INFO: validateJarFile(/var/lib/tomcat5.5/webapps/ProticPortWeb/WEB-INF/lib/geronimo-servlet_2.5_spec-1.2.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class
11 mai 2009 10:08:32 org.apache.catalina.loader.WebappClassLoader
INFO: validateJarFile(/var/lib/tomcat5.5/webapps/ProticPortWeb/WEB-INF/lib/servlet-api-2.5-6.1.6.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class
11 mai 2009 10:14:57 org.apache.catalina.startup.HostConfig checkResources
INFO: Repli (undeploy) de l'application web ayant pour chemin de
contexte /ProticPortWeb
11 mai 2009 10:15:09 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive ProticPortWeb.war de l'application web

The first deployment occurred at 10:08:31, it has verified two jar
relative to servlets which caused some incompatibilities. I have
removed theses two jar from my war and the second deployment didn't
check them. But the error still was present (message body response)
after that, so I don't really see where does the error come from.

@ David Uttley : it seems that our errors are different.

Thanks for all.

2009/5/8 Willem Jiang <>:
> Just a quick question.
> Does the error be thrown from Tomcat or Client?
> Willem
> Raphael F. wrote:
>> Ok I have progressed with the help of Sergey & Daniel.
>> So now, I'm able to launch my webapp on jetty standalone server using
>> jetty-runner jar, as described here :
>> I've modified my web.xml file (look @ this file[1]) in my .war so that
>> CXFServlet be used by the server. The problem I can't have resolve
>> currently is that once my WAR is deployed on Tomcat, when I try to
>> launch my client app (via an executable JAR or via classical maven
>> command) which test the service by connecting to the URL, I get only
>> this error :
>> "Description: Requested resource (CXFServlet servlet is not available)
>> is not available."
>> I have look at forums and mailing lists, but nothing i've seen can help me.
>> Does someone already see this error and knows how to resolve it ?
>> Thanks by advance, Raphaël.
>> [1] My web.xml, little truncated for being more readable :
>> 2009/5/5 Daniel Kulp <>:
>>> Most likely, you'll need to add a folder:
>>> src/main/webapp/WEB-INF
>>> to your maven project and add into it your own web.xml that would contain the
>>> setups and stuff for your CXF servlet, your bean mappings, etc...   That
>>> should allow the resulting war to have the required/proper mapping to make it
>>> directly deployable into tomcat/jetty/etc..
>>> Actually, if you set your "packaging" in maven pom to "war" so "mvn install"
>>> will generate the war, then you can run it directly using the jetty or tomcat
>>> maven plugins.   (mvn jetty:run)      Also, the maven eclipse plugin would
>>> recognize the war packaging and wire it into the eclipse runners and such.
>>> Dan
>>> On Tue May 5 2009 10:26:21 am Raphael F. wrote:
>>>> Hello all,
>>>> I'd like to launch my CXF based application into a web server (Tomcat
>>>> for instance, or any other if needed) just by moving a WAR file into
>>>> webapps directory and deploying with server's manager, so that a user
>>>> of my app can deploy it without Maven or else dev tool. I have
>>>> generated a WAR file from my application which I usually deploy with
>>>> maven command (after having used "mvn install" command) :
>>>> mvn -Pserver
>>>> The "mvn war:war" command has generated a WAR file with all classes
>>>> and libraries used, but it contains a /WEB-INF/web.xml file with
>>>> following :
>>>>     <!DOCTYPE web-app PUBLIC
>>>>      "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>>>      "" >
>>>>     <web-app>
>>>>       <display-name>Archetype Created Web Application</display-name>
>>>>     </web-app>
>>>>     Manifest-Version: 1.0
>>>>     Created-By: Apache Maven
>>>>     Built-By: rflores
>>>>     Build-Jdk: 1.6.0_0
>>>> A /META-INF/application.xml file :
>>>>     <?xml version="1.0" encoding="UTF-8"?>
>>>>     <!DOCTYPE application PUBLIC
>>>>           "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
>>>>           "">
>>>>     <application>
>>>>       <display-name>ProticPortWeb</display-name>
>>>>     </application>
>>>> etc.
>>>> I never have used a WAR file in order to deploy an application on a
>>>> web server so I'm not really well-skilled with this technology, but I
>>>> expect it should provoke some problems with the used of Jetty light
>>>> server (actually implemented in a class like the example
>>>> "restul_http_binding" shows). So I have few questions :
>>>> - If I want to use a HTTP server to easily deploy my app by moving the
>>>> WAR in /webapps's Tomcat like directory, it seems that I have to
>>>> configure the WAR with one ore several XML files (what file,
>>>> MANIFEST.MF ? Application.xml ? web.xml ? Each one ?) instead of using
>>>> class like example above (class which I would remove I
>>>> think ?), so that the HTTP server knows the services to deploy, am I
>>>> true ?
>>>> - If I'm wrong, does Jetty server can be launched as this by the other
>>>> web server without removing the class ?
>>>> - A Maven oriented question (I should post it on Maven's user list I
>>>> think) : Maven WAR plugin can generate a WAR file from maven project,
>>>> but deploying files (the ones I have shown above) do not contain
>>>> information about deployment for the server, does Maven can generate
>>>> it from adding information into pom.xml ?
>>>> Does one of you knows an easy way to deploy my app without Maven
>>>> commands ? Thanks.
>>> --
>>> Daniel Kulp

Raphaël F.

L'avenir de nos Libertés Fondamentales passe par la défense de nos
Libertés Numériques !
Promouvoir et défendre le logiciel libre :
Les projets numériques liberticides du gouvernement français et de
l'Europe : en images :
"Ce qu'il y a de scandaleux dans le scandale, c'est qu'on s'y
habitue." Méditez-y...

View raw message