facebook

[Closed] Pb deploying on Tomcat 6.x

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #271674 Reply

    EpiKgohan
    Member

    no no no, i have just one project, i checked again, and when i comment <services> in services.xml i don’t have any errors :s

    #271675 Reply

    EpiKgohan
    Member

    How do i sent you my project ??

    #271676 Reply

    Riyad Kalla
    Member

    File > Export > Archive, then email to support@genuitec.com ATTN Riyad and I’ll have a look

    #271679 Reply

    EpiKgohan
    Member

    mail sent ^^

    #271681 Reply

    Riyad Kalla
    Member

    Ok got the project and imported it… right off the bat I got a build-path error cause of the missing /work dir, so I removed it from the Source dir listings.

    Then I got an error that the web.xml file is malformed and it is, it should look like this:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <display-name>YakaRouf</display-name>
        <!-- Standard Action Servlet Configuration (with debugging) -->
        <session-config>
            <session-timeout>60</session-timeout>
        </session-config>
        <servlet>
            <servlet-name>XFireServlet</servlet-name>
            <servlet-class>
                org.codehaus.xfire.transport.http.XFireConfigurableServlet
            </servlet-class>
            <load-on-startup>0</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>
                org.apache.struts.action.ActionServlet
            </servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
            <init-param>
                <param-name>debug</param-name>
                <param-value>3</param-value>
            </init-param>
            <init-param>
                <param-name>detail</param-name>
                <param-value>3</param-value>
            </init-param>
            <load-on-startup>0</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>DisplayChart</servlet-name>
            <servlet-class>
                org.jfree.chart.servlet.DisplayChart
            </servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>XFireServlet</servlet-name>
            <url-pattern>/services/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>action</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>DisplayChart</servlet-name>
            <url-pattern>/servlet/DisplayChart</url-pattern>
        </servlet-mapping>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
        <!-- Struts Tag Library Descriptors -->
        <jsp-config>
            <taglib>
                <taglib-uri>/tags/struts-bean</taglib-uri>
                <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>/tags/struts-html</taglib-uri>
                <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>/tags/struts-logic</taglib-uri>
                <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>/tags/struts-nested</taglib-uri>
                <taglib-location>
                    /WEB-INF/struts-nested.tld
                </taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>/tags/struts-tiles</taglib-uri>
                <taglib-location>/WEB-INF/tiles.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>/WEB-INF/rssutils.tld</taglib-uri>
                <taglib-location>/WEB-INF/rssutils.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>smproject.tld</taglib-uri>
                <taglib-location>/WEB-INF/smproject.tld</taglib-location>
            </taglib>
        </jsp-config>
    </web-app>
    

    Please try that web.xml file instead and shut down Tomcat, redeploy your project and restart Tomcat and see if it works. NOTE: You have to wrap your taglibs in jsp-config tags.

    #271682 Reply

    EpiKgohan
    Member

    I still have the error :/

    #271683 Reply

    Riyad Kalla
    Member

    I’m sorry to say it but I think something is wrong with your app server setup. I just deployed your project to Tomcat 6.0.13 and connected to it with:
    http://localhost:8080/YakaRouf/

    and see the login page just fine.

    #271684 Reply

    EpiKgohan
    Member

    yes, but uncomment things in Webservices/services.xml, and you’ll have the error…

    #271685 Reply

    Riyad Kalla
    Member

    After further digging, your build path needs a good-once over. You have a lot of JARs in there that shouldn’t be there, are duplicates of eachother, etc.

    *this* particular problem is due to the fact that you packaged GCJ-XML parsing libraries in your build path. Remove gnujaxp.jar from your build path and erase it from WEB-INF/lib and redeploy, things will work fine then.

    #271686 Reply

    EpiKgohan
    Member

    now i have an other problem :

    
    ......
    ......
    INFO: La servlet XFireServlet est marqué comme indisponible
    18 juin 2007 20:44:58 org.apache.catalina.core.ApplicationContext log
    GRAVE: Error loading WebappClassLoader
      delegate: false
      repositories:
        /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@337838
     org.codehaus.xfire.transport.http.XFireConfigurableServlet
    java.lang.ClassNotFoundException: org.codehaus.xfire.transport.http.XFireConfigurableServlet
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    18 juin 2007 20:44:58 org.apache.catalina.core.StandardContext loadOnStartup
    GRAVE: La servlet /YakaRouf a généré une exception "load()"
    java.lang.ClassNotFoundException: org.codehaus.xfire.transport.http.XFireConfigurableServlet
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    18 juin 2007 20:44:58 org.apache.coyote.http11.Http11Protocol start
    INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
    18 juin 2007 20:44:58 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    18 juin 2007 20:44:58 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/28  config=null
    18 juin 2007 20:44:58 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2483 ms
    

    i cleaned the project, re-added all libs (without gnujaxp.jar) and i have this error again :/

    #271687 Reply

    EpiKgohan
    Member

    I re-cleaned my project and redeployed again, and now it works fine 😀

    Thank you very much for your time and your help.

    #271688 Reply

    Riyad Kalla
    Member

    Glad it’s working now.

Viewing 12 posts - 16 through 27 (of 27 total)
Reply To: [Closed] Pb deploying on Tomcat 6.x

You must be logged in to post in the forum log in