I have made the java ee 6 enterprise app here at: -
http://netbeans.org/kb/docs/javaee/javaee-entapp-ejb.html
I could not deploy it on glassfish v3 .
In netbeans it gave me the error: -
============================================================================================================
Initializing...
deploy?path=D:\Documents and Settings\Administrator\My Documents\NetBeansProjects\NewsApp\dist\gfdeploy\NewsApp&name=NewsApp&force=true failed on GlassFish v3
D:\Documents and Settings\Administrator\My Documents\NetBeansProjects\NewsApp\nbproject\build-impl.xml:268: The module has not been deployed.
BUILD FAILED (total time: 3 seconds)
============================================================================================================
which points me to the build.xml file at the line nbdeploy: -
============================================================================================================
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
============================================================================================================
The output at glassfish server shows: -
============================================================================================================
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: ejb.NewsEntity actually got transformed
INFO: Portable JNDI names for EJB NewsEntityFacade : [java:global/NewsApp/NewsApp-ejb/NewsEntityFacade!ejb.NewsEntityFacade, java:global/NewsApp/NewsApp-ejb/NewsEntityFacade]
INFO: JMS Service Connection URL is :mq://localhost:7676/
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting: DIRECT
INFO: MQJMSRA_RA1101: SJSMQ JMSRA Started:DIRECT
INFO: endpoint.determine.destinationtype
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: EclipseLink, version: Eclipse Persistence Services - 2.0.0.v20091127-r5931
INFO: file:/D:/Documents and Settings/Administrator/My Documents/NetBeansProjects/NewsApp/dist/gfdeploy/NewsApp/NewsApp-ejb_jar/_NewsApp-ejbPU login successful
WARNING: Got SQLException executing statement "CREATE TABLE NEWSENTITY (ID BIGINT NOT NULL, BODY VARCHAR(255), TITLE VARCHAR(255), PRIMARY KEY (ID))": java.sql.SQLException: Table/View 'NEWSENTITY' already exists in Schema 'APP'.
WARNING: Got SQLException executing statement "CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(15), PRIMARY KEY (SEQ_NAME))": java.sql.SQLException: Table/View 'SEQUENCE' already exists in Schema 'APP'.
WARNING: Got SQLException executing statement "INSERT INTO SEQUENCE(SEQ_NAME, SEQ_COUNT) values ('SEQ_GEN', 0)": java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'SQL100322024708060' defined on 'SEQUENCE'.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Portable JNDI names for EJB SessionManagerBean : [java:global/NewsApp/NewsApp-war/SessionManagerBean!ejb.SessionManagerBean, java:global/NewsApp/NewsApp-war/SessionManagerBean]
INFO: nullID: /D:/Documents and Settings/Administrator/My Documents/NetBeansProjects/NewsApp/dist/gfdeploy/NewsApp/NewsApp-ejb_jar/ CLASSES: [class ejb.NewMessage, class ejb.NewsEntity, class ejb.NewsEntityFacade]
ID: /D:/Documents and Settings/Administrator/My Documents/NetBeansProjects/NewsApp/dist/gfdeploy/NewsApp/NewsApp-war_war/ CLASSES: [class ejb.SessionManagerBean, class web.ListNews, class web.PostMessage]
ID: /D:/Documents and Settings/Administrator/My Documents/NetBeansProjects/NewsApp/dist/gfdeploy/NewsApp/NewsApp-ejb_jar/ CLASSES: [class ejb.NewMessage, class ejb.NewsEntity, class ejb.NewsEntityFacade]
SEVERE: Exception while loading the app
org.glassfish.deployment.common.DeploymentException: Message Driven Beans can't be Managed Beans
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:169)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.weld.DefinitionException: Message Driven Beans can't be Managed Beans
at org.jboss.weld.bean.SessionBean.checkEJBTypeAllowed(SessionBean.java:313)
at org.jboss.weld.bean.SessionBean.initialize(SessionBean.java:122)
at org.jboss.weld.bootstrap.AbstractBeanDeployer.deploy(AbstractBeanDeployer.java:111)
at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:151)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:367)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:167)
... 30 more
============================================================================================================
I think i should issue an ticket...
Any help
Thanks
Pradyut
[Message sent by forum member 'pradyut']
http://forums.java.net/jive/thread.jspa?messageID=393029