Foros del Web » Programación para mayores de 30 ;) » Java »

Eclipse Java EE IDE for Web Developers + Tomcat 7

Estas en el tema de Eclipse Java EE IDE for Web Developers + Tomcat 7 en el foro de Java en Foros del Web. Hola, usando Tomcat+Eclipse, al crear un Dinamic Web Proyect, todo bien, creas un archivo jsp, <h1>Hola mundo</h1>, le das running, te lo muestra perfecto, pero ...
  #1 (permalink)  
Antiguo 15/11/2012, 02:17
 
Fecha de Ingreso: noviembre-2012
Mensajes: 4
Antigüedad: 7 años
Puntos: 1
Eclipse Java EE IDE for Web Developers + Tomcat 7

Hola, usando Tomcat+Eclipse, al crear un Dinamic Web Proyect, todo bien, creas un archivo jsp, <h1>Hola mundo</h1>, le das running, te lo muestra perfecto, pero cuando quize integrar librerias struts, me mando el siguiente error, q al parecer conecta a medias, pues sale:

Estado HTTP 404 - /
--------------------------------------------------------------------------------
type Informe de estado
mensaje /
descripción El recurso requerido no está disponible.

--------------------------------------------------------------------------------
Apache Tomcat/7.0.30

Y en consola lo siguiente, ayudar pliss.

nov 15, 2012 1:51:56 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.1.24
nov 15, 2012 1:51:56 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.1.24
nov 15, 2012 1:51:56 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.1.24
nov 15, 2012 1:51:56 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.1.24
nov 15, 2012 1:51:56 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:joaquin1' did not find a matching property.
nov 15, 2012 1:51:56 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.1.24
nov 15, 2012 1:51:56 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8088"]
nov 15, 2012 1:51:57 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8007"]
nov 15, 2012 1:51:57 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2052 ms
nov 15, 2012 1:51:57 AM org.apache.catalina.core.StandardService startInternal
INFO: Arrancando servicio Catalina
nov 15, 2012 1:51:57 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
nov 15, 2012 1:52:07 AM org.apache.myfaces.ee6.MyFacesContainerInitializer onStartup
INFO: Added FacesServlet with mappings=[/faces/*, *.jsf, *.faces]
nov 15, 2012 1:52:07 AM org.apache.myfaces.config.DefaultFacesConfiguratio nProvider getStandardFacesConfig
INFO: Reading standard config META-INF/standard-faces-config.xml
nov 15, 2012 1:52:08 AM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
SEVERE: An error occured while initializing MyFaces: null
java.lang.NullPointerException
at org.apache.tomee.myfaces.TomEEAnnotationProvider.g etAnnotatedClasses(TomEEAnnotationProvider.java:41 )
at org.apache.myfaces.config.annotation.AnnotationCon figurator.createFacesConfig(AnnotationConfigurator .java:90)
at org.apache.myfaces.config.DefaultFacesConfiguratio nProvider.getAnnotationsFacesConfig(DefaultFacesCo nfigurationProvider.java:152)
at org.apache.myfaces.config.DefaultFacesConfiguratio nMerger.getFacesConfigData(DefaultFacesConfigurati onMerger.java:91)
at org.apache.myfaces.config.FacesConfigurator.config ure(FacesConfigurator.java:416)
at org.apache.myfaces.webapp.AbstractFacesInitializer .buildConfiguration(AbstractFacesInitializer.java: 370)
at org.apache.myfaces.webapp.Jsp21FacesInitializer.in itContainerIntegration(Jsp21FacesInitializer.java: 73)
at org.apache.myfaces.webapp.AbstractFacesInitializer .initFaces(AbstractFacesInitializer.java:143)
at org.apache.myfaces.webapp.StartupServletContextLis tener.contextInitialized(StartupServletContextList ener.java:119)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unkn own Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)

nov 15, 2012 1:52:28 AM org.apache.myfaces.ee6.MyFacesContainerInitializer onStartup
INFO: Added FacesServlet with mappings=[/faces/*, *.jsf, *.faces]
nov 15, 2012 1:52:28 AM org.apache.myfaces.config.DefaultFacesConfiguratio nProvider getStandardFacesConfig
INFO: Reading standard config META-INF/standard-faces-config.xml
nov 15, 2012 1:52:28 AM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
SEVERE: An error occured while initializing MyFaces: null
java.lang.NullPointerException
at org.apache.tomee.myfaces.TomEEAnnotationProvider.g etAnnotatedClasses(TomEEAnnotationProvider.java:41 )
at org.apache.myfaces.config.annotation.AnnotationCon figurator.createFacesConfig(AnnotationConfigurator .java:90)
at org.apache.myfaces.config.DefaultFacesConfiguratio nProvider.getAnnotationsFacesConfig(DefaultFacesCo nfigurationProvider.java:152)
at org.apache.myfaces.config.DefaultFacesConfiguratio nMerger.getFacesConfigData(DefaultFacesConfigurati onMerger.java:91)
at org.apache.myfaces.config.FacesConfigurator.config ure(FacesConfigurator.java:416)
at org.apache.myfaces.webapp.AbstractFacesInitializer .buildConfiguration(AbstractFacesInitializer.java: 370)
at org.apache.myfaces.webapp.Jsp21FacesInitializer.in itContainerIntegration(Jsp21FacesInitializer.java: 73)
at org.apache.myfaces.webapp.AbstractFacesInitializer .initFaces(AbstractFacesInitializer.java:143)
at org.apache.myfaces.webapp.StartupServletContextLis tener.contextInitialized(StartupServletContextList ener.java:119)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unkn own Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)

nov 15, 2012 1:52:30 AM com.opensymphony.xwork2.util.logging.commons.Commo nsLogger info
INFO: Parsing configuration file [struts-default.xml]
nov 15, 2012 1:52:31 AM com.opensymphony.xwork2.util.logging.commons.Commo nsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
nov 15, 2012 1:52:31 AM com.opensymphony.xwork2.util.logging.commons.Commo nsLogger error
SEVERE: Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/H:/xampplite/tomcat/webapps/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/joaquin1/WEB-INF/lib/struts2-gxp-plugin-2.3.4.1.jar!/struts-plugin.xml:8:162
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:390)
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:437)
at org.apache.struts2.dispatcher.ng.InitOperations.in itDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrep areAndExecuteFilter.init(StrutsPrepareAndExecuteFi lter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.i nitFilter(ApplicationFilterConfig.java:277)
at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:4650)
at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5306)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unkn own Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedO bjectContainer class:org.apache.struts2.views.gxp.inject.Injected ObjectContainer - bean - jar:file:/H:/xampplite/tomcat/webapps/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/joaquin1/WEB-INF/lib/struts2-gxp-plugin-2.3.4.1.jar!/struts-plugin.xml:8:162
  #2 (permalink)  
Antiguo 15/11/2012, 02:18
 
Fecha de Ingreso: noviembre-2012
Mensajes: 4
Antigüedad: 7 años
Puntos: 1
Respuesta: Eclipse Java EE IDE for Web Developers + Tomcat 7

at com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.register(XmlConfigurationProvider. java:243)
at org.apache.struts2.config.StrutsXmlConfigurationPr ovider.register(StrutsXmlConfigurationProvider.jav a:102)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reloadContainer(DefaultConfiguration.java:2 10)
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:66)
... 18 more
Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObject Container
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1559)
at com.opensymphony.xwork2.util.ClassLoaderUtil.loadC lass(ClassLoaderUtil.java:152)
at com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.register(XmlConfigurationProvider. java:214)
... 21 more
nov 15, 2012 1:52:31 AM org.apache.catalina.core.StandardContext filterStart
SEVERE: Excepción arrancando filtro struts2
Unable to load configuration. - bean - jar:file:/H:/xampplite/tomcat/webapps/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/joaquin1/WEB-INF/lib/struts2-gxp-plugin-2.3.4.1.jar!/struts-plugin.xml:8:162
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:450)
at org.apache.struts2.dispatcher.ng.InitOperations.in itDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrep areAndExecuteFilter.init(StrutsPrepareAndExecuteFi lter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.i nitFilter(ApplicationFilterConfig.java:277)
at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:4650)
at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5306)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unkn own Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Unable to load configuration. - bean - jar:file:/H:/xampplite/tomcat/webapps/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/joaquin1/WEB-INF/lib/struts2-gxp-plugin-2.3.4.1.jar!/struts-plugin.xml:8:162
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:390)
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:437)
... 16 more
Caused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedO bjectContainer class:org.apache.struts2.views.gxp.inject.Injected ObjectContainer - bean - jar:file:/H:/xampplite/tomcat/webapps/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/joaquin1/WEB-INF/lib/struts2-gxp-plugin-2.3.4.1.jar!/struts-plugin.xml:8:162
at com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.register(XmlConfigurationProvider. java:243)
at org.apache.struts2.config.StrutsXmlConfigurationPr ovider.register(StrutsXmlConfigurationProvider.jav a:102)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reloadContainer(DefaultConfiguration.java:2 10)
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:66)
... 18 more
Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObject Container
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1559)
at com.opensymphony.xwork2.util.ClassLoaderUtil.loadC lass(ClassLoaderUtil.java:152)
at com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.register(XmlConfigurationProvider. java:214)
... 21 more

nov 15, 2012 1:52:31 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
nov 15, 2012 1:52:31 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Falló en arranque del Contexto [/joaquin] debido a errores previos
nov 15, 2012 1:52:32 AM org.apache.catalina.core.StandardContext listenerStop
SEVERE: Excepción enviando evento de contexto destruído a instancia de escuchador de clase org.apache.myfaces.webapp.StartupServletContextLis tener
java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletCont extListener</listener-class>
</listener>

at javax.faces.FactoryFinder._getFactory(FactoryFinde r.java:286)
at javax.faces.FactoryFinder.getFactory(FactoryFinder .java:206)
at org.apache.myfaces.context.servlet.FacesContextImp lBase.getApplication(FacesContextImplBase.java:159 )
at org.apache.myfaces.webapp.AbstractFacesInitializer ._dispatchApplicationEvent(AbstractFacesInitialize r.java:285)
at org.apache.myfaces.webapp.AbstractFacesInitializer .destroyFaces(AbstractFacesInitializer.java:320)
at org.apache.myfaces.webapp.StartupServletContextLis tener.contextDestroyed(StartupServletContextListen er.java:161)
at org.apache.catalina.core.StandardContext.listenerS top(StandardContext.java:4831)
at org.apache.catalina.core.StandardContext.stopInter nal(StandardContext.java:5478)
at org.apache.catalina.util.LifecycleBase.stop(Lifecy cleBase.java:232)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:160)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unkn own Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)

nov 15, 2012 1:52:32 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8088"]
nov 15, 2012 1:52:32 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8007"]
nov 15, 2012 1:52:32 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 35554 ms
  #3 (permalink)  
Antiguo 15/11/2012, 02:46
 
Fecha de Ingreso: noviembre-2012
Mensajes: 4
Antigüedad: 7 años
Puntos: 1
Respuesta: Eclipse Java EE IDE for Web Developers + Tomcat 7

En lib, integre todo el framework de struts, será que algunos no deberian ir?
  #4 (permalink)  
Antiguo 15/11/2012, 03:05
 
Fecha de Ingreso: noviembre-2012
Mensajes: 4
Antigüedad: 7 años
Puntos: 1
Respuesta: Eclipse Java EE IDE for Web Developers + Tomcat 7

Encontre el error, si gustan eliminen el tema, sorry

Etiquetas: developers, eclipse, ide, jar, jsp, tomcat
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta

SíEste tema le ha gustado a 1 personas




La zona horaria es GMT -6. Ahora son las 17:38.