Flavio_machine 28 de fev. de 2012
Extende sua classe de ActionSupport, porém acho que essa exception não é por isso, acho que ta faltando jar.
Flavio_machine 28 de fev. de 2012
commons-lang-2.X.X.jar
asm-x.x.jar
asm-commons-x.x.jar
Tenta colocar esses aqui
jorhudson 28 de fev. de 2012
hummm, irei fazer isso e postar o resultado…
Eu só não entendi uma coisa, é pelo .xml que ele chama a @Action para ser executado ?
Flavio_machine 28 de fev. de 2012
Como vc ta usando annotations ele usa as annotations para saber qual action será executada.
drsmachado 28 de fev. de 2012
Flavio machine:
commons-lang-2.X.X.jar
asm-x.x.jar
asm-commons-x.x.jar
Tenta colocar esses aqui
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
Está realmente faltando o jar commons-lang.
Não é preciso extender de ActionSupport, a não ser que você queira utilizar algum recurso desta classe (como validator ou o SUCCESS/ERROR).
Outra coisa, que versão dos jars está utilizando (tome struts-core como base)?
A configuração das annotations muda de jar para jar (2.1.x para 2.3, por exemplo), podendo varias de apenas annotations para alguns XML.
jorhudson 28 de fev. de 2012
Galera, adicionei as libs… só que agora mudou os erros, também herdei do ActionSuport…
28 / 02 / 2012 11 : 52 : 57 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 ; C :/ Program Files / Java / jre6 / bin / client ; C :/ Program Files / Java / jre6 / bin ; C :/ Program Files / Java / jre6 / lib / i386 ; C : \ Program Files \ Common Files \ Microsoft Shared \ Windows Live ; C : \ Windows \ system32 ; C : \ Windows ; C : \ Windows \ System32 \ Wbem ; C : \ Windows \ System32 \ WindowsPowerShell \ v1 .0 ; C : \ Program Files \ Intel \ DMIX ; C : \ Program Files \ Windows Live \ Shared ; C : \ Users \ jhudson \ Desktop \ eclipse ;;.
28 / 02 / 2012 11 : 52 : 57 org . apache . tomcat . util . digester . SetPropertiesRule begin
AVISO : [ SetPropertiesRule ]{ Server / Service / Engine / Host / Context } Setting property ‘ source ’ to ‘ org . eclipse . jst . jee . server : fj21 - tarefas ’ did not find a matching property .
28 / 02 / 2012 11 : 52 : 57 org . apache . coyote . http11 . Http11Protocol init
INFO : Initializing Coyote HTTP / 1.1 on http -8081
28 / 02 / 2012 11 : 52 : 57 org . apache . catalina . startup . Catalina load
INFO : Initialization processed in 386 ms
28 / 02 / 2012 11 : 52 : 57 org . apache . catalina . core . StandardService start
INFO : Starting service Catalina
28 / 02 / 2012 11 : 52 : 57 org . apache . catalina . core . StandardEngine start
INFO : Starting Servlet Engine : Apache Tomcat / 6.0.33
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Parsing configuration file [ struts - default . xml ]
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Parsing configuration file [ struts - plugin . xml ]
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Unable to locate configuration files of the name struts . xml , skipping
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Parsing configuration file [ struts . xml ]
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for class com . opensymphony . xwork2 . ObjectFactory
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for class com . opensymphony . xwork2 . conversion . impl . XWorkConverter
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . TextProvider
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . ActionProxyFactory
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . conversion . ObjectTypeDeterminer
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface org . apache . struts2 . dispatcher . mapper . ActionMapper
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( jakarta ) for interface org . apache . struts2 . dispatcher . multipart . MultiPartRequest
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for class org . apache . struts2 . views . freemarker . FreemarkerManager
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface org . apache . struts2 . components . UrlRenderer
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . validator . ActionValidatorManager
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . util . ValueStackFactory
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . util . reflection . ReflectionProvider
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . util . reflection . ReflectionContextFactory
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . util . PatternMatcher
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface org . apache . struts2 . dispatcher . StaticContentLoader
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger info
INFO : Choosing bean ( struts ) for interface com . opensymphony . xwork2 . UnknownHandlerManager
28 / 02 / 2012 11 : 52 : 58 com . opensymphony . xwork2 . util . logging . commons . CommonsLogger error
GRAVE : Dispatcher initialization failed
java . lang . RuntimeException : java . lang . reflect . InvocationTargetException
at com . opensymphony . xwork2 . inject . ContainerImpl$MethodInjector . inject ( ContainerImpl . java : 295 )
at com . opensymphony . xwork2 . inject . ContainerImpl$ConstructorInjector . construct ( ContainerImpl . java : 431 )
at com . opensymphony . xwork2 . inject . ContainerBuilder$5 . create ( ContainerBuilder . java : 207 )
at com . opensymphony . xwork2 . inject . Scope$2$1 . create ( Scope . 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 . callInContext ( ContainerImpl . java : 574 )
at com . opensymphony . xwork2 . inject . ContainerBuilder . create ( ContainerBuilder . java : 484 )
at com . opensymphony . xwork2 . config . impl . DefaultConfiguration . createBootstrapContainer ( DefaultConfiguration . java : 252 )
at com . opensymphony . xwork2 . config . impl . DefaultConfiguration . reloadContainer ( DefaultConfiguration . java : 193 )
at com . opensymphony . xwork2 . config . ConfigurationManager . getConfiguration ( ConfigurationManager . java : 66 )
at org . apache . struts2 . dispatcher . Dispatcher . init_PreloadConfiguration ( Dispatcher . java : 390 )
at org . apache . struts2 . dispatcher . Dispatcher . init ( Dispatcher . java : 436 )
at org . apache . struts2 . dispatcher . ng . InitOperations . initDispatcher ( InitOperations . java : 69 )
at org . apache . struts2 . dispatcher . ng . filter . StrutsPrepareAndExecuteFilter . init ( StrutsPrepareAndExecuteFilter . java : 51 )
at org . apache . catalina . core . ApplicationFilterConfig . getFilter ( ApplicationFilterConfig . java : 295 )
at org . apache . catalina . core . ApplicationFilterConfig . setFilterDef ( ApplicationFilterConfig . java : 422 )
at org . apache . catalina . core . ApplicationFilterConfig .( ApplicationFilterConfig . java : 115 )
at org . apache . catalina . core . StandardContext . filterStart ( StandardContext . java : 4072 )
at org . apache . catalina . core . StandardContext . start ( StandardContext . java : 4726 )
at org . apache . catalina . core . ContainerBase . start ( ContainerBase . java : 1057 )
at org . apache . catalina . core . StandardHost . start ( StandardHost . java : 840 )
at org . apache . catalina . core . ContainerBase . start ( ContainerBase . java : 1057 )
at org . apache . catalina . core . StandardEngine . start ( StandardEngine . java : 463 )
at org . apache . catalina . core . StandardService . start ( StandardService . java : 525 )
at org . apache . catalina . core . StandardServer . start ( StandardServer . java : 754 )
at org . apache . catalina . startup . Catalina . start ( Catalina . java : 595 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( Unknown Source )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( Unknown Source )
at java . lang . reflect . Method . invoke ( Unknown Source )
at org . apache . catalina . startup . Bootstrap . start ( Bootstrap . java : 289 )
at org . apache . catalina . startup . Bootstrap . main ( Bootstrap . java : 414 )
Caused by : java . lang . reflect . InvocationTargetException
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( Unknown Source )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( Unknown Source )
at java . lang . reflect . Method . invoke ( Unknown Source )
at com . opensymphony . xwork2 . inject . ContainerImpl$MethodInjector . inject ( ContainerImpl . java : 293 )
… 33 more
Caused by : java . lang . ExceptionInInitializerError
at com . opensymphony . xwork2 . ognl . OgnlValueStackFactory . setContainer ( OgnlValueStackFactory . java : 85 )
… 38 more
Caused by : java . lang . IllegalArgumentException : Javassist library is missing in classpath ! Please add missed dependency !
at ognl . OgnlRuntime .( OgnlRuntime . java : 168 )
… 39 more
Caused by : java . lang . ClassNotFoundException : javassist . ClassPool
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1680 )
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1526 )
at java . lang . Class . forName0 ( Native Method )
at java . lang . Class . forName ( Unknown Source )
at ognl . OgnlRuntime .( OgnlRuntime . java : 165 )
… 39 more
28 / 02 / 2012 11 : 52 : 58 org . apache . catalina . core . StandardContext filterStart
GRAVE : Exception starting filter struts2
java . lang . reflect . InvocationTargetException - Class : com . opensymphony . xwork2 . inject . ContainerImpl$MethodInjector
File : ContainerImpl . java
Method : inject
Line : 295 - com / opensymphony / xwork2 / inject / ContainerImpl . java : 295 : -1
at org . apache . struts2 . dispatcher . Dispatcher . init ( Dispatcher . java : 449 )
at org . apache . struts2 . dispatcher . ng . InitOperations . initDispatcher ( InitOperations . java : 69 )
at org . apache . struts2 . dispatcher . ng . filter . StrutsPrepareAndExecuteFilter . init ( StrutsPrepareAndExecuteFilter . java : 51 )
at org . apache . catalina . core . ApplicationFilterConfig . getFilter ( ApplicationFilterConfig . java : 295 )
at org . apache . catalina . core . ApplicationFilterConfig . setFilterDef ( ApplicationFilterConfig . java : 422 )
at org . apache . catalina . core . ApplicationFilterConfig .( ApplicationFilterConfig . java : 115 )
at org . apache . catalina . core . StandardContext . filterStart ( StandardContext . java : 4072 )
at org . apache . catalina . core . StandardContext . start ( StandardContext . java : 4726 )
at org . apache . catalina . core . ContainerBase . start ( ContainerBase . java : 1057 )
at org . apache . catalina . core . StandardHost . start ( StandardHost . java : 840 )
at org . apache . catalina . core . ContainerBase . start ( ContainerBase . java : 1057 )
at org . apache . catalina . core . StandardEngine . start ( StandardEngine . java : 463 )
at org . apache . catalina . core . StandardService . start ( StandardService . java : 525 )
at org . apache . catalina . core . StandardServer . start ( StandardServer . java : 754 )
at org . apache . catalina . startup . Catalina . start ( Catalina . java : 595 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( Unknown Source )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( Unknown Source )
at java . lang . reflect . Method . invoke ( Unknown Source )
at org . apache . catalina . startup . Bootstrap . start ( Bootstrap . java : 289 )
at org . apache . catalina . startup . Bootstrap . main ( Bootstrap . java : 414 )
Caused by : java . lang . RuntimeException : java . lang . reflect . InvocationTargetException
at com . opensymphony . xwork2 . inject . ContainerImpl$MethodInjector . inject ( ContainerImpl . java : 295 )
at com . opensymphony . xwork2 . inject . ContainerImpl$ConstructorInjector . construct ( ContainerImpl . java : 431 )
at com . opensymphony . xwork2 . inject . ContainerBuilder$5 . create ( ContainerBuilder . java : 207 )
at com . opensymphony . xwork2 . inject . Scope$2$1 . create ( Scope . 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 . callInContext ( ContainerImpl . java : 574 )
at com . opensymphony . xwork2 . inject . ContainerBuilder . create ( ContainerBuilder . java : 484 )
at com . opensymphony . xwork2 . config . impl . DefaultConfiguration . createBootstrapContainer ( DefaultConfiguration . java : 252 )
at com . opensymphony . xwork2 . config . impl . DefaultConfiguration . reloadContainer ( DefaultConfiguration . java : 193 )
at com . opensymphony . xwork2 . config . ConfigurationManager . getConfiguration ( ConfigurationManager . java : 66 )
at org . apache . struts2 . dispatcher . Dispatcher . init_PreloadConfiguration ( Dispatcher . java : 390 )
at org . apache . struts2 . dispatcher . Dispatcher . init ( Dispatcher . java : 436 )
… 20 more
Caused by : java . lang . reflect . InvocationTargetException
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( Unknown Source )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( Unknown Source )
at java . lang . reflect . Method . invoke ( Unknown Source )
at com . opensymphony . xwork2 . inject . ContainerImpl$MethodInjector . inject ( ContainerImpl . java : 293 )
… 33 more
Caused by : java . lang . ExceptionInInitializerError
at com . opensymphony . xwork2 . ognl . OgnlValueStackFactory . setContainer ( OgnlValueStackFactory . java : 85 )
… 38 more
Caused by : java . lang . IllegalArgumentException : Javassist library is missing in classpath ! Please add missed dependency !
at ognl . OgnlRuntime .( OgnlRuntime . java : 168 )
… 39 more
Caused by : java . lang . ClassNotFoundException : javassist . ClassPool
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1680 )
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1526 )
at java . lang . Class . forName0 ( Native Method )
at java . lang . Class . forName ( Unknown Source )
at ognl . OgnlRuntime .( OgnlRuntime . java : 165 )
… 39 more
28 / 02 / 2012 11 : 52 : 58 org . apache . catalina . core . StandardContext start
GRAVE : Error filterStart
28 / 02 / 2012 11 : 52 : 58 org . apache . catalina . core . StandardContext start
GRAVE : Context [ / fj21 - tarefas ] startup failed due to previous errors
28 / 02 / 2012 11 : 52 : 58 org . apache . catalina . loader . WebappClassLoader clearThreadLocalMap
GRAVE : The web application [ / fj21 - tarefas ] created a ThreadLocal with key of type [ com . opensymphony . xwork2 . inject . ContainerImpl$10 ] ( value [ com . opensymphony . xwork2 . inject . ContainerImpl$10 @193f6e2 ]) and a value of type [ java . lang . Object []] ( value [[ Ljava . lang . Object ; @1358f 03 ]) but failed to remove it when the web application was stopped . This is very likely to create a memory leak .
28 / 02 / 2012 11 : 52 : 58 org . apache . coyote . http11 . Http11Protocol start
INFO : Starting Coyote HTTP / 1.1 on http -8081
28 / 02 / 2012 11 : 52 : 58 org . apache . jk . common . ChannelSocket init
INFO : JK : ajp13 listening on / 0.0.0.0 : 8010
28 / 02 / 2012 11 : 52 : 58 org . apache . jk . server . JkMain start
INFO : Jk running ID = 0 time = 0 / 16 config = null
28 / 02 / 2012 11 : 52 : 58 org . apache . catalina . startup . Catalina start
INFO : Server startup in 915 ms
drsmachado 28 de fev. de 2012
Caused by : java . lang . IllegalArgumentException : Javassist library is missing in classpath ! Please add missed dependency !
at ognl . OgnlRuntime .< clinit >( OgnlRuntime . java : 16
... 39 more
Caused by : java . lang . ClassNotFoundException : javassist . ClassPool
Agora falta o javassist
jorhudson 28 de fev. de 2012
Obrigado a todos, está funcionando … :lol:
Vlw Pessoal…