[EJB3 Development] - java.lang.NullPointerException in EJB3 from JSP page
by Moazzam Munir
Moazzam Munir [https://community.jboss.org/people/mmunir] created the discussion
"java.lang.NullPointerException in EJB3 from JSP page"
To view the discussion, visit: https://community.jboss.org/message/649905#649905
--------------------------------------------------------------
I am developing my first EJB 3 application using JBOSS 7 as application server in Eclipse. The session bean is deployed successfully on the server but when i try to access it from the JSP page, then i get the java.lang.NullPointerException exception.
Following is my code:
*Local Interface*:
package my.first;
import javax.ejb.Local;
@Local
public interface CalculatorRemote {
public float add(float x, float y);
public float subtract(float x, float y);
public float multiply(float x, float y);
public float division(float x, float y);
}
*Session bean*:
package my.first;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
@Stateless(name = "CalculatorRemote")
public class CalculatorBean implements CalculatorRemote {
public float add(float x, float y) {
return x + y;
}
public float subtract(float x, float y) {
return x - y;
}
public float multiply(float x, float y) {
return x * y;
}
public float division(float x, float y) {
return x / y;
}
}
*JSP Page:*
<%!
private CalculatorRemote calculator = null;
float result=0;
public void jspInit() {
try {
InitialContext ic = new InitialContext();
calculator = (CalculatorRemote) ic
.lookup("CalculatorRemote/Local");
System.out.println("Loaded Calculator Bean");
//CalculatorBean
} catch (Exception ex) {
System.out.println("Error:"+
ex.getMessage());
}
}
public void jspDestroy() {
calculator = null;
}
%>
*Server Log File:*
17:17:20,552 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings for session bean named CalculatorRemote in deployment unit deployment "EJBsession.jar" are as follows:
java:global/EJBsession/CalculatorRemote!my.first.CalculatorBean
java:app/EJBsession/CalculatorRemote!my.first.CalculatorBean
java:module/CalculatorRemote!my.first.CalculatorBean
java:global/EJBsession/CalculatorRemote!my.first.CalculatorRemote
java:app/EJBsession/CalculatorRemote!my.first.CalculatorRemote
java:module/CalculatorRemote!my.first.CalculatorRemote
......
......
......
17:23:44,105 ERROR [stderr] (http--127.0.0.1-8080-1) java.lang.NullPointerException
17:23:44,105 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.jsp.test_jsp._jspService(test_jsp.java:102)
17:23:44,105 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
17:23:44,105 ERROR [stderr] (http--127.0.0.1-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
......
......
......
Please help?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649905#649905]
Start a new discussion in EJB3 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[JBoss AS 7 Development] - Re: Remote EJB Client Security (Jboss7.1)
by rathm1
rathm1 [https://community.jboss.org/people/rathm1] created the discussion
"Re: Remote EJB Client Security (Jboss7.1)"
To view the discussion, visit: https://community.jboss.org/message/720385#720385
--------------------------------------------------------------
Thanks for the help!
The winning combination was...
jboss-ejb-client.properties
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port=4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER
Client Application Code:
final Properties jndiProperties = new Properties();
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, org.jboss.naming.remote.client.InitialContextFactory.class.getName());
jndiProperties.put(Context.PROVIDER_URL, "remote://localhost:4447");
jndiProperties.put("jboss.naming.client.ejb.context", true);
jndiProperties.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
jndiProperties.put(Context.SECURITY_PRINCIPAL, username);
jndiProperties.put(Context.SECURITY_CREDENTIALS, password);
Context context = new InitialContext(jndiProperties);
String lookUp = appName + "/" + moduleName + "/" + beanName + "!" + interfaceClassName;
TestEJB facade = (TestEJB)context.lookup(lookUp);
boolean connectionSuccessful = facade.canConnect();
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/720385#720385]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[jBPM Development] - jbpm 5.1 not working properly
by Seshadri Jagannathan
Seshadri Jagannathan [https://community.jboss.org/people/seshadri.j] created the discussion
"jbpm 5.1 not working properly"
To view the discussion, visit: https://community.jboss.org/message/717688#717688
--------------------------------------------------------------
Hi
I installed jbpm 5.1.. however when i open the jbpm-console, the processes are not getting loading. the following error is showing up. pls help
URL: ' http://localhost:8080/gwt-console-server/rs/process/definitions http://localhost:8080/gwt-console-server/rs/process/definitions'
Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction'
Exception: 'class com.google.gwt.http.client.RequestException'
HTTP 500:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:185)
org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)
org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)
org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:153)
org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)
org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)
org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.reflect.InvocationTargetException
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:153)
org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)
org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)
org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.ClassCastException: [Ljava.lang.Object;
org.drools.marshalling.impl.OutputMarshaller.writePropagationContexts(OutputMarshaller.java:716)
org.drools.marshalling.impl.OutputMarshaller.writeFactHandles(OutputMarshaller.java:280)
org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:107)
org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:136)
org.drools.persistence.SessionMarshallingHelper.getSnapshot(SessionMarshallingHelper.java:72)
org.drools.persistence.info.SessionInfo.update(SessionInfo.java:81)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:23)
org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:80)
org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:49)
org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:48)
org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)
org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)
org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)
org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)
org.drools.persistence.jpa.JpaPersistenceContext.persist(JpaPersistenceContext.java:17)
org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:125)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:153)
org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)
org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)
org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Best Regards,
Sesh
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717688#717688]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[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
[jBPM Development] - Re: (JBPM5.1) How can I modify the page of jbpm-console
by Adam Bach
Adam Bach [https://community.jboss.org/people/heathcliff] created the discussion
"Re: (JBPM5.1) How can I modify the page of jbpm-console"
To view the discussion, visit: https://community.jboss.org/message/647478#647478
--------------------------------------------------------------
Hi,
with krisv help I got to know what packages i needed to get to change jbpm console. I have downloaded gwt-console project sources and I tryed to compile them with command You wrote here:
mvn clean install -Dconsole.profile=jbpm
and then I got error:
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.bpm:gwt-console-servermodule:2.4.0-SNAPSHOT (C:\Download\bpmc-bpm-console-2.2.7.Final-32
-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml) has 2 errors
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\war\pom.xm
l of C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml does not exist
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\integratio
n\pom.xml of C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml does not exist
[ERROR]
[ERROR] The project org.jboss.bpm:gwt-console-gui:2.4.0-SNAPSHOT (C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01
\bpmc-bpm-console-b7fff01\gui\pom.xml) has 1 error
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\gui\war\pom.xml o
f C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\gui\pom.xml does not exist
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
It seems that sources are missing 3 pom.xml files, the root pom is wrong or IDK:(
Please help
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647478#647478]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months