juarezna 13 de jun. de 2008
Achei estranho que a classe action não possui package… Está no src mesmo? Estaria faltando o método?
andersondamasio 13 de jun. de 2008
aparentemente não está achando a sua action…
Veja se o nome da action é loginAction mesmo.
E também se ela ela está mesmo na raiz do source, caso contrário é o caminho que está errado então.
khichfy 13 de jun. de 2008
amigos, o nome da action é essa mesma… acabei de verificar por desencargo de consciencia
e o nome do pacote esta como “default” como sempre foi …
eu nao consigo ver o erro…
khichfy 13 de jun. de 2008
com relação ao nome do pacote da classe, esqueci de mencionar que uso spring então o caminho ate a classe o spring faz corretamente:
?xml version="1.0" encoding="UTF-8"?>
<beans xmlns= "http://www.springframework.org/schema/beans"
xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop= "http://www.springframework.org/schema/aop"
xsi:schemaLocation= "
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd" >
<bean id= "loginAction"
class= "br.com.julio.hsn.action.LoginAction" scope= "prototype" >
</bean>
.
.
.
khichfy 13 de jun. de 2008
o erro na integra que vejo no console do eclipse ao tentar a acessar a url via browser:
ERROR [ org . apache . struts2 . dispatcher . Dispatcher . serviceAction ( Dispatcher . java : 512 )] : Could not find action or result
There is no Action mapped for namespace / and action name login . - [ unknown location ]
at com . opensymphony . xwork2 . DefaultActionProxy . prepare ( DefaultActionProxy . java : 186 )
at org . apache . struts2 . impl . StrutsActionProxyFactory . createActionProxy ( StrutsActionProxyFactory . java : 41 )
at org . apache . struts2 . dispatcher . Dispatcher . serviceAction ( Dispatcher . java : 494 )
at org . apache . struts2 . dispatcher . FilterDispatcher . doFilter ( FilterDispatcher . java : 419 )
at org . mortbay . jetty . servlet . ServletHandler$CachedChain . doFilter ( ServletHandler . java : 1084 )
at com . opensymphony . module . sitemesh . filter . PageFilter . parsePage ( PageFilter . java : 118 )
at com . opensymphony . module . sitemesh . filter . PageFilter . doFilter ( PageFilter . java : 52 )
at org . mortbay . jetty . servlet . ServletHandler$CachedChain . doFilter ( ServletHandler . java : 1084 )
at org . apache . struts2 . dispatcher . ActionContextCleanUp . doFilter ( ActionContextCleanUp . java : 99 )
at org . mortbay . jetty . servlet . ServletHandler$CachedChain . doFilter ( ServletHandler . java : 1084 )
at br . com . investtools . hsn . LogFilter . doFilter ( LogFilter . java : 56 )
at org . mortbay . jetty . servlet . ServletHandler$CachedChain . doFilter ( ServletHandler . java : 1084 )
at org . acegisecurity . util . FilterChainProxy$VirtualFilterChain . doFilter ( FilterChainProxy . java : 265 )
at org . acegisecurity . intercept . web . FilterSecurityInterceptor . invoke ( FilterSecurityInterceptor . java : 107 )
at org . acegisecurity . intercept . web . FilterSecurityInterceptor . doFilter ( FilterSecurityInterceptor . java : 72 )
at org . acegisecurity . util . FilterChainProxy$VirtualFilterChain . doFilter ( FilterChainProxy . java : 275 )
at org . acegisecurity . ui . ExceptionTranslationFilter . doFilter ( ExceptionTranslationFilter . java : 124 )
at org . acegisecurity . util . FilterChainProxy$VirtualFilterChain . doFilter ( FilterChainProxy . java : 275 )
at org . acegisecurity . providers . anonymous . AnonymousProcessingFilter . doFilter ( AnonymousProcessingFilter . java : 125 )
at org . acegisecurity . util . FilterChainProxy$VirtualFilterChain . doFilter ( FilterChainProxy . java : 275 )
at org . acegisecurity . wrapper . SecurityContextHolderAwareRequestFilter . doFilter ( SecurityContextHolderAwareRequestFilter . java : 81 )
at org . acegisecurity . util . FilterChainProxy$VirtualFilterChain . doFilter ( FilterChainProxy . java : 275 )
at org . acegisecurity . ui . AbstractProcessingFilter . doFilter ( AbstractProcessingFilter . java : 271 )
at org . acegisecurity . util . FilterChainProxy$VirtualFilterChain . doFilter ( FilterChainProxy . java : 275 )
at org . acegisecurity . ui . logout . LogoutFilter . doFilter ( LogoutFilter . java : 110 )
at org . acegisecurity . util . FilterChainProxy$VirtualFilterChain . doFilter ( FilterChainProxy . java : 275 )
at org . acegisecurity . context . HttpSessionContextIntegrationFilter . doFilter ( HttpSessionContextIntegrationFilter . java : 249 )
at org . acegisecurity . util . FilterChainProxy$VirtualFilterChain . doFilter ( FilterChainProxy . java : 275 )
at org . acegisecurity . util . FilterChainProxy . doFilter ( FilterChainProxy . java : 149 )
at org . acegisecurity . util . FilterToBeanProxy . doFilter ( FilterToBeanProxy . java : 98 )
at org . mortbay . jetty . servlet . ServletHandler$CachedChain . doFilter ( ServletHandler . java : 1084 )
at org . springframework . orm . hibernate3 . support . OpenSessionInViewFilter . doFilterInternal ( OpenSessionInViewFilter . java : 198 )
at org . springframework . web . filter . OncePerRequestFilter . doFilter ( OncePerRequestFilter . java : 76 )
at org . mortbay . jetty . servlet . ServletHandler$CachedChain . doFilter ( ServletHandler . java : 1084 )
at org . mortbay . jetty . servlet . ServletHandler . handle ( ServletHandler . java : 360 )
at org . mortbay . jetty . security . SecurityHandler . handle ( SecurityHandler . java : 216 )
at org . mortbay . jetty . servlet . SessionHandler . handle ( SessionHandler . java : 181 )
at org . mortbay . jetty . handler . ContextHandler . handle ( ContextHandler . java : 722 )
at org . mortbay . jetty . webapp . WebAppContext . handle ( WebAppContext . java : 404 )
at org . mortbay . jetty . handler . HandlerWrapper . handle ( HandlerWrapper . java : 139 )
at org . mortbay . jetty . Server . handle ( Server . java : 324 )
at org . mortbay . jetty . HttpConnection . handleRequest ( HttpConnection . java : 505 )
at org . mortbay . jetty . HttpConnection$RequestHandler . headerComplete ( HttpConnection . java : 828 )
at org . mortbay . jetty . HttpParser . parseNext ( HttpParser . java : 514 )
at org . mortbay . jetty . HttpParser . parseAvailable ( HttpParser . java : 211 )
at org . mortbay . jetty . HttpConnection . handle ( HttpConnection . java : 380 )
at org . mortbay . io . nio . SelectChannelEndPoint . run ( SelectChannelEndPoint . java : 395 )
at org . mortbay . thread . BoundedThreadPool$PoolThread . run ( BoundedThreadPool . java : 450 )
khichfy 13 de jun. de 2008
khichfy 13 de jun. de 2008
na verdade o primeiro erro que ocorre na minha compilação antes de explodir a pilha é o seguinte:
ERROR [ com . opensymphony . xwork2 . config . providers . XmlConfigurationProvider . reloadRequiredPackages ( XmlConfigurationProvider . java : 282 )] : Unable to find parent packages admin
2008 - 06 - 13 15 : 53 : 54 , 604 - ERROR [ com . opensymphony . xwork2 . config . providers . XmlConfigurationProvider . reloadRequiredPackages ( XmlConfigurationProvider . java : 282 )] : Unable to find parent packages admin
2008 - 06 - 13 15 : 53 : 54 , 604 - ERROR [ com . opensymphony . xwork2 . config . providers . XmlConfigurationProvider . reloadRequiredPackages ( XmlConfigurationProvider . java : 282 )] : Unable to find parent packages client
tem umas 30 linhas dessa na minha compilação…
alguem tem uma ideia ?
khichfy 13 de jun. de 2008
consegui ver o erro…
tratava-se de uma alteração no pom.xml que alterou as dependencias e com isso o classpath resultando num pacote inexistente…
valeu galera