Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/03/2013, 01:40
Avatar de andresleonardo10
andresleonardo10
 
Fecha de Ingreso: marzo-2013
Ubicación: Bahia Blanca
Mensajes: 1
Antigüedad: 11 años, 8 meses
Puntos: 0
Error al correr struts2 en eclipse

desarrollo en :Eclipse Indigo, tomcat 7, Struts version 2.3.8
He visto que en este foro hay soluciones pero ninguna soluciona mi problema.
al correrlo:
mar 02, 2013 4:03:04 AM org.apache.catalina.core.AprLifecycleListener init
INFO: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Archivos de programa\Java\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\ WINDOWS\system32;C:\WINDOWS;C:/Archivos de programa/Java/jre7/bin/client;C:/Archivos de programa/Java/jre7/bin;C:/Archivos de programa/Java/jre7/lib/i386;C:\Archivos de programa\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW S\System32\Wbem;E:\Mis documentos\Downloads\eclipse-jee-juno-SR2-win32\eclipse;;.
mar 02, 2013 4:03:05 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
SEVERE: Dispatcher initialization failed
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.inject(ContainerImpl.java:301)
at com.opensymphony.xwork2.inject.ContainerImpl$Const ructorInjector.construct(ContainerImpl.java:438)
at com.opensymphony.xwork2.inject.ContainerBuilder$5. create(ContainerBuilder.java:207)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Sc ope.java:51)
at com.opensymphony.xwork2.inject.ContainerBuilder$3. create(ContainerBuilder.java:93)
at com.opensymphony.xwork2.inject.ContainerBuilder$7. call(ContainerBuilder.java:487)
at com.opensymphony.xwork2.inject.ContainerBuilder$7. call(ContainerBuilder.java:484)
at com.opensymphony.xwork2.inject.ContainerImpl.callI nContext(ContainerImpl.java:584)
at com.opensymphony.xwork2.inject.ContainerBuilder.cr eate(ContainerBuilder.java:484)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.createBootstrapContainer(DefaultConfigurati on.java:305)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reloadContainer(DefaultConfiguration.java:2 10)
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:67)
at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:429)
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:471)
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:273)
at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:254)
at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:372)
at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:98)
at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:4562)
at org.apache.catalina.core.StandardContext$2.call(St andardContext.java:5240)
at org.apache.catalina.core.StandardContext$2.call(St andardContext.java:5235)
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: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.inject(ContainerImpl.java:299)
... 27 more


mar 02, 2013 4:03:06 AM org.apache.catalina.core.StandardContext filterStart
SEVERE: Excepción arrancando filtro struts2
java.lang.reflect.InvocationTargetException - Class: com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector
File: ContainerImpl.java
Method: inject
Line: 301 - com/opensymphony/xwork2/inject/ContainerImpl.java:301:-1
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:483)
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:273)
at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:254)
at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:372)
at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:98)
at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:4562)
at org.apache.catalina.core.StandardContext$2.call(St andardContext.java:5240)
at org.apache.catalina.core.StandardContext$2.call(St andardContext.java:5235)
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: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.inject(ContainerImpl.java:301)
at com.opensymphony.xwork2.inject.ContainerImpl$Const ructorInjector.construct(ContainerImpl.java:438)
at com.opensymphony.xwork2.inject.ContainerBuilder$5. create(ContainerBuilder.java:207)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Sc ope.java:51)
at com.opensymphony.xwork2.inject.ContainerBuilder$3. create(ContainerBuilder.java:93)
at com.opensymphony.xwork2.inject.ContainerBuilder$7. call(ContainerBuilder.java:487)
at com.opensymphony.xwork2.inject.ContainerBuilder$7. call(ContainerBuilder.java:484)
at com.opensymphony.xwork2.inject.ContainerImpl.callI nContext(ContainerImpl.java:584)
at com.opensymphony.xwork2.inject.ContainerBuilder.cr eate(ContainerBuilder.java:484)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.createBootstrapContainer(DefaultConfigurati on.java:305)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reloadContainer(DefaultConfiguration.java:2 10)
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:67)
at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:429)
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:471)
... 14 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.inject(ContainerImpl.java:299)
... 27 more
Caused by: java.lang.ExceptionInInitializerError
at com.opensymphony.xwork2.ognl.OgnlValueStackFactory .setContainer(OgnlValueStackFactory.java:84)
... 32 more


mar 02, 2013 4:03:06 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
mar 02, 2013 4:03:06 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Falló en arranque del Contexto [/StrutsHelloWorld] debido a errores previos
mar 02, 2013 4:03:07 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
mar 02, 2013 4:03:07 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
mar 02, 2013 4:03:07 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1498 ms
el web.xml es:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>Struts2 Application</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrep areAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>Login.jsp</welcome-file>
</welcome-file-list>

</web-app>
el struts.xml es:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
<constant name="struts.enable.DynamicMethodInvocation"
value="false" />
<constant name="struts.devMode" value="false" />
<constant name="struts.custom.i18n.resources"
value="ApplicationResources" />

<package name="default" extends="struts-default" namespace="/">
<action name="login"
class="net.viralpatel.struts2.LoginAction">
<result name="success">Welcome.jsp</result>
<result name="error">Login.jsp</result>
</action>
</package>
</struts>
estoy utilizando las librerias:
  • commons-ip-2.0.1.jar
  • commons-lang3-3.1.jar
  • commons-logging-1.1.1.jar
  • freemarker-2.3.19.jar
  • ognl-3.0.6.jar
  • struts-core-2.3.8.jar
  • xwork-core-2.3.8.jar

Muchas gracias!