Mr_Arthur 16 de out. de 2010
guava está na pasta mandatory do vraptor… Logo deve ser obrigatório.
Mr_Arthur 16 de out. de 2010
Põe o stacktrace aê de qualquer forma…
garcia-jj 16 de out. de 2010
Esse projeto possui dependencias internas no vraptor.
O ideal é você passar o stacktrace com o erro, e principalmente informar se há alguma lib que você colocou direto no jboss. Você está usando a versão 6.M5?
Abraços
Lucas_Cavalcanti 16 de out. de 2010
vc tá com o google-collect-XX.jar no classpath?
tenta tirar ele ao invés do guava (o guava incorporou o google-collect)
yorgan 16 de out. de 2010
Isso mesmo, estou usando a versão M5.
Segue o stacktrace:
10 : 32 : 15 , 307 ERROR [ org . jboss . kernel . plugins . dependency . AbstractKernelController ] Error installing to PostClassLoader : name = vfs : ///Users/daniel/Documents/Desenvolvimento/workspaces/scorecenter/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0.0.M5/deploy/app_vraptor_ear.ear state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///Users/daniel/Documents/Desenvolvimento/workspaces/scorecenter/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0.0.M5/deploy/app_vraptor_ear.ear/app_vraptor_web.war/
at org . jboss . deployers . spi . DeploymentException . rethrowAsDeploymentException ( DeploymentException . java : 49 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . deployers . plugins . deployers . DeployerWrapper . deploy ( DeployerWrapper . java : 185 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . deployers . plugins . deployers . DeployersImpl . doDeploy ( DeployersImpl . java : 1832 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . deployers . plugins . deployers . DeployersImpl . doInstallParentFirst ( DeployersImpl . java : 1550 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . deployers . plugins . deployers . DeployersImpl . doInstallParentFirst ( DeployersImpl . java : 1603 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . deployers . plugins . deployers . DeployersImpl . install ( DeployersImpl . java : 1491 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . dependency . plugins . AbstractControllerContext . install ( AbstractControllerContext . java : 379 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . install ( AbstractController . java : 2044 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . incrementState ( AbstractController . java : 1083 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . executeOrIncrementStateDirectly ( AbstractController . java : 1322 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . resolveContexts ( AbstractController . java : 1246 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . resolveContexts ( AbstractController . java : 1139 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . change ( AbstractController . java : 939 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . change ( AbstractController . java : 654 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . deployers . plugins . deployers . DeployersImpl . change ( DeployersImpl . java : 1983 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . deployers . plugins . deployers . DeployersImpl . process ( DeployersImpl . java : 1076 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . deployers . plugins . main . MainDeployerImpl . process ( MainDeployerImpl . java : 679 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . system . server . profileservice . deployers . MainDeployerPlugin . process ( MainDeployerPlugin . java : 106 ) [ : 6.0.0.20100911 - M5 ]
at org . jboss . profileservice . dependency . ProfileControllerContext$DelegateDeployer . process ( ProfileControllerContext . java : 130 ) [ : 0.1.0 . Alpha1 ]
at org . jboss . profileservice . dependency . ProfileDeployAction . deploy ( ProfileDeployAction . java : 148 ) [ : 0.1.0 . Alpha1 ]
at org . jboss . profileservice . dependency . ProfileDeployAction . installActionInternal ( ProfileDeployAction . java : 94 ) [ : 0.1.0 . Alpha1 ]
at org . jboss . kernel . plugins . dependency . InstallsAwareAction . installAction ( InstallsAwareAction . java : 54 ) [ jboss - kernel . jar : 2.2.0 . Alpha10 ]
at org . jboss . kernel . plugins . dependency . InstallsAwareAction . installAction ( InstallsAwareAction . java : 42 ) [ jboss - kernel . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . action . SimpleControllerContextAction . simpleInstallAction ( SimpleControllerContextAction . java : 62 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . action . AccessControllerContextAction . install ( AccessControllerContextAction . java : 71 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractControllerContextActions . install ( AbstractControllerContextActions . java : 51 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractControllerContext . install ( AbstractControllerContext . java : 379 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . install ( AbstractController . java : 2044 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . incrementState ( AbstractController . java : 1083 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . executeOrIncrementStateDirectly ( AbstractController . java : 1322 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . resolveContexts ( AbstractController . java : 1246 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . resolveContexts ( AbstractController . java : 1139 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . change ( AbstractController . java : 939 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . dependency . plugins . AbstractController . change ( AbstractController . java : 654 ) [ jboss - dependency . jar : 2.2.0 . Alpha10 ]
at org . jboss . profileservice . dependency . ProfileServiceController . activate ( ProfileServiceController . java : 188 ) [ : 0.1.0 . Alpha1 ]
at org . jboss . profileservice . AbstractProfileService . activateProfile ( AbstractProfileService . java : 170 ) [ : 0.1.0 . Alpha1 ]
at org . jboss . system . tools . ProfileServiceToolsFacade . addURI ( ProfileServiceToolsFacade . java : 217 ) [ : 6.0.0.20100911 - M5 ]
at org . jboss . system . tools . LegacyDeploymentScannerAdapter . addURL ( LegacyDeploymentScannerAdapter . java : 131 ) [ : 6.0.0.20100911 - M5 ]
at org . jboss . system . tools . DeploymentScanner . addURL ( DeploymentScanner . java : 91 ) [ : 6.0.0.20100911 - M5 ]
at org . jboss . system . tools . DeploymentScanner . addURL ( DeploymentScanner . java : 83 ) [ : 6.0.0.20100911 - M5 ]
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method ) [ : 1.6.0 _15 ]
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 39 ) [ : 1.6.0 _15 ]
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 25 ) [ : 1.6.0 _15 ]
at java . lang . reflect . Method . invoke ( Method . java : 597 ) [ : 1.6.0 _15 ]
at org . jboss . mx . interceptor . ReflectedDispatcher . invoke ( ReflectedDispatcher . java : 157 ) [ : 6.0.0 . Beta5 ]
at org . jboss . mx . server . Invocation . dispatch ( Invocation . java : 96 ) [ : 6.0.0 . Beta5 ]
at org . jboss . mx . server . Invocation . invoke ( Invocation . java : 88 ) [ : 6.0.0 . Beta5 ]
at org . jboss . mx . server . AbstractMBeanInvoker . invoke ( AbstractMBeanInvoker . java : 271 ) [ : 6.0.0 . Beta5 ]
at org . jboss . mx . server . MBeanServerImpl . invoke ( MBeanServerImpl . java : 670 ) [ : 6.0.0 . Beta5 ]
at org . jboss . system . server . jmx . MBeanServerWrapper . invoke ( MBeanServerWrapper . java : 138 ) [ : 6.0.0.20100911 - M5 ( Build SVNTag : JBoss_6 .0.0.20100911 - M5 date : 20100922 )]
at javax . management . remote . rmi . RMIConnectionImpl . doOperation ( RMIConnectionImpl . java : 1426 ) [ : 1.6.0 _15 ]
at javax . management . remote . rmi . RMIConnectionImpl . access$200 ( RMIConnectionImpl . java : 72 ) [ : 1.6.0 _15 ]
at javax . management . remote . rmi . RMIConnectionImpl$PrivilegedOperation . run ( RMIConnectionImpl . java : 1264 ) [ : 1.6.0 _15 ]
at javax . management . remote . rmi . RMIConnectionImpl . doPrivilegedOperation ( RMIConnectionImpl . java : 1359 ) [ : 1.6.0 _15 ]
at javax . management . remote . rmi . RMIConnectionImpl . invoke ( RMIConnectionImpl . java : 788 ) [ : 1.6.0 _15 ]
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method ) [ : 1.6.0 _15 ]
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 39 ) [ : 1.6.0 _15 ]
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 25 ) [ : 1.6.0 _15 ]
at java . lang . reflect . Method . invoke ( Method . java : 597 ) [ : 1.6.0 _15 ]
at sun . rmi . server . UnicastServerRef . dispatch ( UnicastServerRef . java : 305 ) [ : 1.6.0 _15 ]
at sun . rmi . transport . Transport$1 . run ( Transport . java : 159 ) [ : 1.6.0 _15 ]
at java . security . AccessController . doPrivileged ( Native Method ) [ : 1.6.0 _15 ]
at sun . rmi . transport . Transport . serviceCall ( Transport . java : 155 ) [ : 1.6.0 _15 ]
at sun . rmi . transport . tcp . TCPTransport . handleMessages ( TCPTransport . java : 535 ) [ : 1.6.0 _15 ]
at sun . rmi . transport . tcp . TCPTransport$ConnectionHandler . run0 ( TCPTransport . java : 790 ) [ : 1.6.0 _15 ]
at sun . rmi . transport . tcp . TCPTransport$ConnectionHandler . run ( TCPTransport . java : 649 ) [ : 1.6.0 _15 ]
at java . util . concurrent . ThreadPoolExecutor$Worker . runTask ( ThreadPoolExecutor . java : 886 ) [ : 1.6.0 _15 ]
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( ThreadPoolExecutor . java : 908 ) [ : 1.6.0 _15 ]
at java . lang . Thread . run ( Thread . java : 637 ) [ : 1.6.0 _15 ]
Caused by : java . lang . Error : Error visiting "/Users/daniel/Documents/Desenvolvimento/workspaces/scorecenter/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0.0.M5/deploy/app_vraptor_ear.ear/app_vraptor_web.war/WEB-INF/lib/guava-r07.jar/com/google/common/collect/StandardTable$ColumnMap.class"
at org . jboss . classloading . plugins . vfs . VFSResourceVisitor . visit ( VFSResourceVisitor . java : 268 ) [ jboss - classloading - vfs . jar : 2.2.0 . Alpha8 ]
at org . jboss . vfs . VirtualFile . visit ( VirtualFile . java : 407 ) [ jboss - vfs . jar : 3.0.0 . CR5 ]
at org . jboss . vfs . VirtualFile . visit ( VirtualFile . java : 409 ) [ jboss - vfs . jar : 3.0.0 . CR5 ]
at org . jboss . vfs . VirtualFile . visit ( VirtualFile . java : 409 ) [ jboss - vfs . jar : 3.0.0 . CR5 ]
at org . jboss . vfs . VirtualFile . visit ( VirtualFile . java : 409 ) [ jboss - vfs . jar : 3.0.0 . CR5 ]
at org . jboss . vfs . VirtualFile . visit ( VirtualFile . java : 409 ) [ jboss - vfs . jar : 3.0.0 . CR5 ]
at org . jboss . vfs . VirtualFile . visit ( VirtualFile . java : 395 ) [ jboss - vfs . jar : 3.0.0 . CR5 ]
at org . jboss . classloading . plugins . vfs . VFSResourceVisitor . visit ( VFSResourceVisitor . java : 102 ) [ jboss - classloading - vfs . jar : 2.2.0 . Alpha8 ]
at org . jboss . deployers . vfs . plugins . classloader . VFSDeploymentClassLoaderPolicyModule . visit ( VFSDeploymentClassLoaderPolicyModule . java : 181 ) [ : 2.2.0 . Alpha7 ]
at org . jboss . scanning . plugins . DeploymentUnitScanner . scan ( DeploymentUnitScanner . java : 111 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . scanning . spi . helpers . UrlScanner . scan ( UrlScanner . java : 96 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . scanning . deployers . ScanningDeployer . deploy ( ScanningDeployer . java : 90 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . deployers . plugins . deployers . DeployerWrapper . deploy ( DeployerWrapper . java : 179 ) [ : 2.2.0 . Alpha7 ]
... 67 more
Caused by : java . lang . RuntimeException : Error visiting resource : VFSResourceContext @ com / google / common / collect / StandardTable$ColumnMap . class / BaseClassLoader @682 b3448 { vfs : ///Users/daniel/Documents/Desenvolvimento/workspaces/scorecenter/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0.0.M5/deploy/app_vraptor_ear.ear/app_vraptor_web.war/}, visitor: org.jboss.scanning.annotations.plugins.GenericAnnotationVisitor@70cdbfae
at org . jboss . scanning . plugins . visitor . IgnoreSetErrorHandler . handleError ( IgnoreSetErrorHandler . java : 56 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . scanning . plugins . visitor . ReflectResourceVisitor . visit ( ReflectResourceVisitor . java : 91 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . scanning . annotations . plugins . AnnotationsScanningPlugin . visit ( AnnotationsScanningPlugin . java : 89 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . scanning . spi . helpers . ScanningPluginWrapper . visit ( ScanningPluginWrapper . java : 112 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . classloading . plugins . visitor . FederatedResourceVisitor . visit ( FederatedResourceVisitor . java : 101 ) [ jboss - classloading . jar : 2.2.0 . Alpha8 ]
at org . jboss . classloading . plugins . vfs . VFSResourceVisitor . visit ( VFSResourceVisitor . java : 264 ) [ jboss - classloading - vfs . jar : 2.2.0 . Alpha8 ]
... 79 more
Caused by : java . lang . reflect . GenericSignatureFormatError
at sun . reflect . generics . parser . SignatureParser . error ( SignatureParser . java : 103 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . parser . SignatureParser . parseSimpleClassTypeSignature ( SignatureParser . java : 262 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . parser . SignatureParser . parseClassTypeSignatureSuffix ( SignatureParser . java : 270 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . parser . SignatureParser . parseClassTypeSignature ( SignatureParser . java : 244 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . parser . SignatureParser . parseFieldTypeSignature ( SignatureParser . java : 228 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . parser . SignatureParser . parseTypeSignature ( SignatureParser . java : 359 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . parser . SignatureParser . parseTypeSig ( SignatureParser . java : 157 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . repository . FieldRepository . parse ( FieldRepository . java : 34 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . repository . FieldRepository . parse ( FieldRepository . java : 24 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . repository . AbstractRepository . < init > ( AbstractRepository . java : 56 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . repository . FieldRepository . < init > ( FieldRepository . java : 30 ) [ : 1.6.0 _15 ]
at sun . reflect . generics . repository . FieldRepository . make ( FieldRepository . java : 48 ) [ : 1.6.0 _15 ]
at java . lang . reflect . Field . getGenericInfo ( Field . java : 85 ) [ : 1.6.0 _15 ]
at java . lang . reflect . Field . getGenericType ( Field . java : 223 ) [ : 1.6.0 _15 ]
at org . jboss . reflect . plugins . introspection . IntrospectionTypeInfoFactoryImpl$1 . run ( IntrospectionTypeInfoFactoryImpl . java : 202 ) [ jboss - reflect . jar : 2.2.0 . Alpha9 ]
at org . jboss . reflect . plugins . introspection . IntrospectionTypeInfoFactoryImpl$1 . run ( IntrospectionTypeInfoFactoryImpl . java : 190 ) [ jboss - reflect . jar : 2.2.0 . Alpha9 ]
at java . security . AccessController . doPrivileged ( Native Method ) [ : 1.6.0 _15 ]
at org . jboss . reflect . plugins . introspection . IntrospectionTypeInfoFactoryImpl . getFields ( IntrospectionTypeInfoFactoryImpl . java : 189 ) [ jboss - reflect . jar : 2.2.0 . Alpha9 ]
at org . jboss . reflect . plugins . ClassInfoImpl . getDeclaredFields ( ClassInfoImpl . java : 432 ) [ jboss - reflect . jar : 2.2.0 . Alpha9 ]
at org . jboss . scanning . plugins . visitor . ClassHierarchyResourceVisitor . handleClass ( ClassHierarchyResourceVisitor . java : 81 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . scanning . plugins . visitor . ReflectResourceVisitor . doVisit ( ReflectResourceVisitor . java : 108 ) [ : 1.0.0 . Alpha6 ]
at org . jboss . scanning . plugins . visitor . ReflectResourceVisitor . visit ( ReflectResourceVisitor . java : 86 ) [ : 1.0.0 . Alpha6 ]
... 83 more
No JBoss eu só add o jar do Postgres. E não estou utilizando o google-collect.
[]'s
Daniel
garcia-jj 16 de out. de 2010
Hmm, isso é um bug do JBoss mesmo. Fiz uma rápida pesquisa nos fóruns do JBoss e achei um link do bug e outro do fórum
com soluções alternativas.
http://community.jboss.org/message/553800#553800
https://jira.jboss.org/browse/JBAS-8361
Pelo teste que fiz na minha máquina isso rola apenas no JBoss 6, não no 5, e tanto com o google-collect quanto com o
guava. Creio que o motivo disso seja porque na versão 6.x o JBoss implementa CDI via Weld, e o Weld depende do guava.
A solução (temporária creio eu) é colocar isso no arquivo WEB-INF/jboss-scanning.xml:
<scanning xmlns="urn:jboss:scanning:1.0">
<path name="WEB-INF/classes">
</path>
<path name="WEB-INF/lib/guava-r07.jar">
<exclude name="com.google.common.collect" />
</path>
</scanning>