Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Web project doesn't run on Eclipse's Tomcat(Eclipse and Tomcat)
Web project doesn't run on Eclipse's Tomcat [message #1211747] Tue, 26 November 2013 15:59 Go to next message
Unai Trecet is currently offline Unai TrecetFriend
Messages: 3
Registered: November 2013
Junior Member
Hi!
I have a J2EE web project, using Struts and Hibernate. It worked out perfectly on my development enviroment until few days ago (I really don't know what happened, I didn't touch anything..), when it stopped running on Eclipse's tomcat server. I'm using Eclipse Java EE kepler, JRE 6 and Tomcat 5.5.36. The project runs fine on an external Tomcat 5.5.36 but when I run it on Eclipse I get:

404 - The requested resource is not available.

The Console trace is:

26-nov-2013 13:43:12 org.apache.catalina.core.AprLifecycleListener init
   INFO: The APR based Apache Tomcat Native library which allows optimal performance in       production environments was not found on the java.library.path: C:\Program    Files\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;......
   26-nov-2013 13:43:14 org.apache.coyote.http11.Http11BaseProtocol init
   INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
   26-nov-2013 13:43:14 org.apache.catalina.startup.Catalina load
   INFO: Initialization processed in 4942 ms
   26-nov-2013 13:43:14 org.apache.catalina.core.StandardService start
   INFO: Arrancando servicio Catalina
   26-nov-2013 13:43:14 org.apache.catalina.core.StandardEngine start
   INFO: Starting Servlet Engine: Apache Tomcat/5.5.36
   26-nov-2013 13:43:14 org.apache.catalina.core.StandardHost start
   INFO: Desactivada la validación XML
   26-nov-2013 13:43:16 org.apache.catalina.core.StandardContext start
   GRAVE: Error filterStart
   26-nov-2013 13:43:16 org.apache.catalina.core.StandardContext start
   GRAVE: Falló en arranque del Contexto [/phnemos_ph] debido a errores previos
   26-nov-2013 13:43:17 org.apache.coyote.http11.Http11BaseProtocol start


The error is:

startup failed due to previous errors

But I can't trace it further because Tomcat's localhost log is empty, it exists but empty.

This is my web.xml:

<jsp-config>
  <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <trim-directive-whitespaces>true</trim-directive-whitespaces>
  </jsp-property-group>
</jsp-config>


<display-name>PH Web Application</display-name>

<!-- Action Servlet Configuration -->
<servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>com.tsystems.web.common.MyFrontController</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>2</param-value>
    </init-param>
    <init-param>
        <param-name>detail</param-name>
        <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
</servlet>




<!-- Action Servlet Mapping -->
<servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
</servlet-mapping>




<!-- The Welcome File List -->
<welcome-file-list>
    <welcome-file>paginas/index.jsp</welcome-file>
</welcome-file-list>

<!-- Struts Tag Library Descriptor -->
<taglib>
    <taglib-uri>struts-app</taglib-uri>
    <taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib>

<taglib>
    <taglib-uri>struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>

<taglib>
    <taglib-uri>struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>

<taglib>
    <taglib-uri>struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>

<taglib>
    <taglib-uri>struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
    <taglib-uri>struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>

<!-- Declaraci�n de filtros-->

  <filter>
    <filter-name>Filtro de Seguridad</filter-name>
    <filter-class>com.tsystems.web.common.FiltroSeguridad</filter-class>
  </filter>

<!--   Mapeo de filtros.Asociamos el filtro al jsp Menu.jsp-->

  <filter-mapping>
    <filter-name>Filtro de Seguridad</filter-name>
    <url-pattern>*.do</url-pattern> 
  </filter-mapping>

    <filter-mapping>
    <filter-name>Filtro de Seguridad</filter-name>
    <url-pattern>*.jsp</url-pattern> 
  </filter-mapping> 

<!--  
 <security-constraint>
    <web-resource-collection>
    <web-resource-name>Paginas de gestion de preferencias de usuario</web-resource-name>
    <url-pattern>/*</url-pattern>
    <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>OPER_CPH</role-name>
    </auth-constraint>
  </security-constraint>

    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
      <form-login-page>/paginas/login/login2.jsp</form-login-page>
      <form-error-page>/paginas/login/login2.jsp</form-error-page>
    </form-login-config>
  </login-config>

  <security-role>
    <description>Operador</description>
    <role-name>OPER_CPH</role-name>
  </security-role>
-->

<listener>
    <listener-class>com.tsystems.contextListener.ContextListener</listener-class>
</listener>

</web-app>


Please, any little help would be great because I'm stuck since several days. Thank you!!
Re: Web project doesn't run on Eclipse's Tomcat [message #1213520 is a reply to message #1211747] Wed, 27 November 2013 09:19 Go to previous messageGo to next message
Tanmoy Roy is currently offline Tanmoy RoyFriend
Messages: 41
Registered: September 2013
Member
Hi Unai,

Is this a Dynamic Web Project of type Stardust? Your web.xml does not look like a Stardust one. This forum belongs to Eclipse Process Manager(Stardust).

Btw, the error seems to be related to filter 'GRAVE: Error filterStart'.
Please check filter-class "com.tsystems.web.common.FiltroSeguridad" or try to enable log level to debug.

Regards,
Tanmoy Roy
Re: Web project doesn't run on Eclipse's Tomcat [message #1213583 is a reply to message #1213520] Wed, 27 November 2013 09:51 Go to previous messageGo to next message
Unai Trecet is currently offline Unai TrecetFriend
Messages: 3
Registered: November 2013
Junior Member
Hi Tanmoy,

Sorry, is a Dynamic Web Project...
Actually I'm having problems with localhost Tomcat log, when I run the project, Eclipse doesn't create it. How can I enable the correct log level to debug it please?
Thank you.
icon14.gif  Re: Web project doesn't run on Eclipse's Tomcat [message #1216366 is a reply to message #1213583] Thu, 28 November 2013 12:47 Go to previous message
Unai Trecet is currently offline Unai TrecetFriend
Messages: 3
Registered: November 2013
Junior Member
SOLVED!! This was the solution:

You have to set the runtime for your web project to the Tomcat installation you are using; you can do it in the "Targeted runtimes" section of the project configuration.

In this way you will allow Eclipse to add Tomcat's Java EE Web Profile jars to the build path.

Remember that the HttpServlet class isn't in a JRE, but at least in an Enterprise Web Profile (e.g. a servlet container runtime /lib folder).

Thank you!!

[Updated on: Thu, 28 November 2013 12:51]

Report message to a moderator

Previous Topic:Getting ClassCastException while deploying a model
Next Topic:findUsers - Webservice API
Goto Forum:
  


Current Time: Sat Apr 20 03:01:15 GMT 2024

Powered by FUDForum. Page generated in 0.02882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top