[JBoss AS 7 Development] - Fail to deploy Ejb3 in action sample project to Jboss AS 7
by David Zhu
David Zhu [https://community.jboss.org/people/davidgrubby] created the discussion
"Fail to deploy Ejb3 in action sample project to Jboss AS 7"
To view the discussion, visit: https://community.jboss.org/message/649130#649130
--------------------------------------------------------------
Hi dear all,
I was trying to deploy actionbazaar (the sample project of EJB3 in action ) to Jboss AS 7 with maven plugin as below,
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.0.0.Final</version>
<configuration>
<hostname>localhost</hostname>
<port>9999</port>
<filename>${project.build.finalName}.war</filename>
</configuration>
</plugin>
But always unexpectedly got the error message and deployment failure information as below,
+23:25:39,999 INFO [org.jboss.as.server.deployment] (pool-1-thread-7) Content added at location C:\jboss-as-7.0.1.Final\standalone\data\content\1b\b2322bea86b36d161746ef6c1e8af9da251805\content+
+23:25:40,001 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "chapter6.war"+
+23:25:40,486 DEBUG [org.jboss.as.ejb3.deployment.processors.StartupAnnotationProcessor] (MSC service thread 1-2) SystemInitializer bean has been marked for init-on-startup (a.k.a @Startup)+
+23:25:40,486 DEBUG [org.jboss.as.ejb3.deployment.processors.StartupAnnotationProcessor] (MSC service thread 1-2) FeaturedItemBean bean has been marked for init-on-startup (a.k.a @Startup)+
+23:25:40,488 DEBUG [org.jboss.web] (MSC service thread 1-2) Resolved order: [ prettyfaces-jsf2-3.3.0.jar primefaces-2.2.1.jar commons-io-2.0.1.jar shrinkwrap-api-1.0.0-alpha-12.jar arquillian-impl-base-1.0.0.Alpha3.jar arquillian-spi-1.0.0.Alpha4.jar arquillian-api-1.0.0.Alpha5.jar shrinkwrap-descriptors-api-0.1.6.jar ]+
+23:25:40,489 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.jpa.persistence.PersistenceDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"+
+23:25:40,490 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"+
+23:25:40,490 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=persistence.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"+
+23:25:40,491 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.ee.application.ApplicationDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"+
+23:25:40,492 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"+
+23:25:40,492 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=application.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"+
+23:25:40,493 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.servlet.web.WebAppDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"+
+23:25:40,493 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"+
+23:25:40,494 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=web.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"+
+23:25:40,494 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.cdi.beans.BeansDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"+
+23:25:40,498 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"+
+23:25:40,499 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=beans.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"+
+23:25:40,500 DEBUG [org.jboss.weld] (MSC service thread 1-2) Found beans.xml: "/C:/jboss-as-7.0.1.Final/bin/content/chapter6.war/WEB-INF/beans.xml"+
+23:25:40,502 INFO [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for actionbazaar+
+23:25:40,503 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."chapter6.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."chapter6.war".PARSE: Failed to process phase PARSE of deployment "chapter6.war"+
+ at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)+
+ at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)+
+ at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)+
+ at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_27]+
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_27]+
+ at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]+
+Caused by: java.lang.IllegalArgumentException: Class level annotations must provide a name.+
+ at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processClass(JPAAnnotationParseProcessor.java:233)+
+ at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processPersistenceAnnotations(JPAAnnotationParseProcessor.java:127)+
+ at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.deploy(JPAAnnotationParseProcessor.java:90)+
+ at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)+
+ ... 5 more+
+23:25:40,508 INFO [org.jboss.as.server.controller] (pool-1-thread-7) Deployment of "chapter6.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"chapter6.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"chapter6.war\".PARSE: Failed to process phase PARSE of deployment \"chapter6.war\""}}+
+23:25:40,923 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment chapter6.war in 426ms+
I am pretty new in learning EJB3 and Jboss platform, any helps would be highly appreciated!
thanks in advance!
David
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649130#649130]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[JBoss AS 7 Development] - Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default"
by Daniel Jipa
Daniel Jipa [https://community.jboss.org/people/danjee] created the discussion
"Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default""
To view the discussion, visit: https://community.jboss.org/message/729537#729537
--------------------------------------------------------------
I've placed a stack trace in my login module and I see that JBossCachedAuthenticationManager,authenticate is getting called but also my login module is called.
Here is the stack trace:
09:35:04,848 ERROR [stderr] (http--0.0.0.0-8089-2) java.lang.Throwable: Trace for login module calls
09:35:04,848 ERROR [stderr] (http--0.0.0.0-8089-2) at com.asf.security.server.jaas.AsfBaseLoginModule.login(AsfBaseLoginModule.java:115)
09:35:04,849 ERROR [stderr] (http--0.0.0.0-8089-2) at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
09:35:04,849 ERROR [stderr] (http--0.0.0.0-8089-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2) at java.lang.reflect.Method.invoke(Method.java:597)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2) at java.security.AccessController.doPrivileged(Native Method)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
09:35:04,852 ERROR [stderr] (http--0.0.0.0-8089-2) at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
09:35:04,852 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:449)
09:35:04,853 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:383)
09:35:04,853 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:361)
09:35:04,854 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:160)
09:35:04,854 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:354)
09:35:04,855 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.security.service.SimpleSecurityManager.push(SimpleSecurityManager.java:292)
09:35:04,855 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:49)
09:35:04,856 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:45)
09:35:04,856 ERROR [stderr] (http--0.0.0.0-8089-2) at java.security.AccessController.doPrivileged(Native Method)
09:35:04,856 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:74)
09:35:04,857 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,857 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42)
09:35:04,858 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,858 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
09:35:04,859 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,859 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,861 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
09:35:04,861 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
09:35:04,862 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
09:35:04,862 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,862 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
09:35:04,863 ERROR [stderr] (http--0.0.0.0-8089-2) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
09:35:04,863 ERROR [stderr] (http--0.0.0.0-8089-2) at com.asf.kollecto.server.ejb.persistence.PersistenceControllerLocal$$$view11.get(Unknown Source)
09:35:04,864 ERROR [stderr] (http--0.0.0.0-8089-2) at com.asf.capone.web.CaponeVaadinApplication$1.buttonClick(CaponeVaadinApplication.java:48)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/729537#729537]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months