• Domingo 22 de Diciembre de 2024, 15:06

Autor Tema:  Levantar Tomcat - Struts  (Leído 1293 veces)

johek

  • Nuevo Miembro
  • *
  • Mensajes: 1
    • Ver Perfil
Levantar Tomcat - Struts
« en: Sábado 18 de Julio de 2009, 17:26 »
0
Hola estoy empezando a hacer una app web en linux y cuando me levanta el tomcat usando el eclipse me tira estos logs:

Jul 18, 2009 12:06:35 PM 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: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/../lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib
Jul 18, 2009 12:06:35 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 18, 2009 12:06:35 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 818 ms
Jul 18, 2009 12:06:35 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 18, 2009 12:06:35 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
[DevLoader] Starting DevLoader
Jul 18, 2009 12:06:35 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
[DevLoader] projectdir=/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/classes/
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/resources.jar
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/rt.jar
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/jsse.jar
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/jce.jar
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/charsets.jar
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/sunpkcs11.jar
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/dnsns.jar
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/localedata.jar
[DevLoader] added file:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/sunjce_provider.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-beanutils-1.8.0.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-chain-1.2.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-collections-3.0.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-digester-1.8.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-discovery-0.2.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-fileupload-1.1.1.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-io-1.1.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-logging-1.0.4.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-validator-1.3.1.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/jstl-1.0.2.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/mysql-connector-java-5.0.3-bin.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/oro-2.0.8.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/standard-1.0.6.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-core-1.3.10.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-el-1.3.10.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-extras-1.3.10.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-faces-1.3.10.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-legacy-1.1.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-scripting-1.3.10.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-taglib-1.3.10.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-tiles-1.3.10.jar
[DevLoader] added file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/jasper-runtime.jar
[DevLoader] JSPCompiler Classpath = /home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/classes:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/sunjce_provider.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-beanutils-1.8.0.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-chain-1.2.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-collections-3.0.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-digester-1.8.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-discovery-0.2.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-fileupload-1.1.1.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-io-1.1.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-logging-1.0.4.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-validator-1.3.1.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/jstl-1.0.2.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/mysql-connector-java-5.0.3-bin.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/oro-2.0.8.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/standard-1.0.6.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-core-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-el-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-extras-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-faces-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-legacy-1.1.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-scripting-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-taglib-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-tiles-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/jasper-runtime.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/classes/:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/Junit%204.5.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-beanutils-1.8.0.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-chain-1.2.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-collections-3.0.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-digester-1.8.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-discovery-0.2.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-fileupload-1.1.1.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-io-1.1.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-logging-1.0.4.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/commons-validator-1.3.1.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/jasper-runtime.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/jsp-api.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/jstl-1.0.2.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/mysql-connector-java-5.0.3-bin.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/oro-2.0.8.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/standard-1.0.6.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-core-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-el-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-extras-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-faces-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-legacy-1.1.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-scripting-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-taglib-1.3.10.jar:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-tiles-1.3.10.jar:/home/joel/apache-tomcat-6.0.18/lib/:/home/joel/apache-tomcat-6.0.18/lib/jasper-jdt.jar:/home/joel/apache-tomcat-6.0.18/lib/tomcat-coyote.jar:/home/joel/apache-tomcat-6.0.18/lib/tomcat-i18n-es.jar:/home/joel/apache-tomcat-6.0.18/lib/catalina-ant.jar:/home/joel/apache-tomcat-6.0.18/lib/jasper.jar:/home/joel/apache-tomcat-6.0.18/lib/el-api.jar:/home/joel/apache-tomcat-6.0.18/lib/tomcat-dbcp.jar:/home/joel/apache-tomcat-6.0.18/lib/jsp-api.jar:/home/joel/apache-tomcat-6.0.18/lib/tomcat-i18n-fr.jar:/home/joel/apache-tomcat-6.0.18/lib/jasper-el.jar:/home/joel/apache-tomcat-6.0.18/lib/servlet-api.jar:/home/joel/apache-tomcat-6.0.18/lib/tomcat-i18n-ja.jar:/home/joel/apache-tomcat-6.0.18/lib/annotations-api.jar:/home/joel/apache-tomcat-6.0.18/lib/catalina.jar:/home/joel/apache-tomcat-6.0.18/lib/catalina-ha.jar:/home/joel/apache-tomcat-6.0.18/lib/catalina-tribes.jar:/home/joel/apache-tomcat-6.0.18/lib/DevLoader.jar:/home/joel/apache-tomcat-6.0.18/bin/bootstrap.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/lib/tools.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/sunjce_provider.jar:
Jul 18, 2009 12:06:37 PM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from jar:file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
Jul 18, 2009 12:06:37 PM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from jar:file:/home/joel/eclipseProyects/SchoolUtility/SchoolUtility/webapp/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
Jul 18, 2009 12:06:37 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/config/validator-rules.xml'
Jul 18, 2009 12:06:37 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/config/validation.xml'
Jul 18, 2009 12:06:37 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/joel/eclipseProyects/SchoolUtility/TPFinal/webapp/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jul 18, 2009 12:06:38 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Jul 18, 2009 12:06:38 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
Jul 18, 2009 12:06:38 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 18, 2009 12:06:38 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 18, 2009 12:06:38 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 18, 2009 12:06:38 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 18, 2009 12:06:38 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/87  config=null
Jul 18, 2009 12:06:38 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3148 ms



Luego, entro a la pagina del tomcat por url y cuando le doy clic al link de mi app me tira el siguiente error:

Jul 18, 2009 12:08:53 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
Jul 18, 2009 12:08:53 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Jul 18, 2009 12:08:53 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Jul 18, 2009 12:08:57 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 22 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

Stacktrace:
   at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
   at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
   at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
   at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   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:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)


Tienen idea porque puede estar pasando este error ?    
Les paso algunos datos uso DevLoader.
Los jar  servlet-api-jar  y jsp-api.jar  los tengo agregados como external y no los seleccione en las opciones del DevLoader.

Saludos y gracias de antemano

arielb

  • Moderador
  • ******
  • Mensajes: 771
  • Nacionalidad: pa
    • Ver Perfil
    • http://coder-pa.blogspot.com
Re: Levantar Tomcat - Struts
« Respuesta #1 en: Viernes 24 de Julio de 2009, 23:42 »
0
agrega las librerías en la carpeta lib del tomcat
"Porque de tal manera amó Dios al mundo que dio a su hijo unigénito para que todo aquél que en él crea no se pierda mas tenga vida eterna"
Juan 3:16

http://coder-pa.blogspot.com