[Persistence, JBoss/CMP, Hibernate, Database] - ManagedConnectionFactory is null
by jimmycallaghan
I've seen this error happen before due to a hot-deploy of a -ds.xml file but I'm now getting this error without a hot-deploy. If I restart the server, everything will be OK for a couple of days, and then we get problems again.
My datasource is configured in a file outside of the EAR and the contents are:
<no-tx-datasource>
| <jndi-name>messagingplatform_prod_DS</jndi-name>
| <connection-url>jdbc:mysql:/the_ip_of_the_server:3306/database_name</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>myusername</user-name>
| <password>mypassword</password>
| <max-pool-size>40</max-pool-size>
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
| <check-valid-connection-sql>select 'x'</check-valid-connection-sql>
|
| </no-tx-datasource>
Can anyone think of any reasons why this error might just start happening?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055149#4055149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055149
18Â years, 10Â months
[JBoss Seam] - SeamExtendedManagedPersistencePhaseListener ?
by lcoetzee
Hi,
I am tracking Seam's CVS. Some changes done very recently (over the weekend or Friday 15/06/2007) is creating some weird things.
I see that there is no more SeamExtendedManagedPersistencePhaseListener. I have taken that out from my faces-config.xml. I assume that the normal SeamPhaseListener will do al of these things automatically. However, since I have taken it out I get the following exception:
12:37:09,956 ERROR [SeamPhaseListener] uncaught exception
| java.lang.NullPointerException
| at org.jboss.seam.persistence.HibernatePersistenceProvider.getVersion(HibernatePersistenceProvider.java:62)
| at org.jboss.seam.contexts.PassivatedEntity.createPassivatedEntity(PassivatedEntity.java:129)
| at org.jboss.seam.contexts.EntityBeanList.clearDirty(EntityBeanList.java:57)
| at org.jboss.seam.contexts.Lifecycle.isAttributeDirty(Lifecycle.java:576)
| at org.jboss.seam.contexts.ServerConversationContext.flush(ServerConversationContext.java:242)
| at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:478)
| at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:341)
| at org.jboss.seam.jsf.SeamPhaseListener.afterRender(SeamPhaseListener.java:513)
| at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:230)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:183)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:64)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:62)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:127)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:853)
| at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
| at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1513)
| at java.lang.Thread.run(Thread.java:619)
|
Looking at the Seam example I see that they use
@PersistenceContext(type=EXTENDED)
| private EntityManager em;
|
while I use
| @In(create = true, value = "napEntityManager")
| private EntityManager em;
|
Is the above part of my problem ?
Regards
Louis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055148#4055148
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055148
18Â years, 10Â months
[JBoss jBPM] - Newbie in jBPM deployment and integration
by jbosslim
I've read the forum and done the example in JbpmGettingStarted. I've created processes and successfully deployed to the jbpm-console.
My problem is, I've an existing web app that runs on JBossAS 4.0.4GA. I wanted to change my current workflow engine to jBPM.
Q1: What config file, jar or lib (From jBpm) that I need to copy into my current existing JBossAS folder?
Q2: The auto-generated form in the editor produce .xhtml only. When i rename it to .jsp, during runtime, it hits errors. Can i use JSP?
Q3: In each task, we add variables, how can we get the value of the variables on backend?
Q4: How do we call the backend classes?
Q5: (Stupid Ques.) Is jbpm-console.war, an example or it's a console for jbpm to configure the process?
I've done a lot of reading and research, but i still couldn't get the way to integrate into my existing jbossAS. I'm a newbie in Jboss area, just have some experience in configuring the jbossAS, no others.
Please help.. thank you very much.. Your help is very much appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055140#4055140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055140
18Â years, 10Â months
[Installation, Configuration & Deployment] - Deploy without building archives
by Schludi
Hello,
i am trying to deploy an application without building an archive.
When I copy a packed WAR-archive to the deploy-directory, the hot deployment service is creating a directory tmp/deploy.
I've deployed a running archive to the deploy directory and copied the created TMP-Directory from tmp/deploy to /deploy. That leads to a new deployment of the application under the speciefied directory name.
Now I've stopped JBoss and deleted the WAR-archive from /deploy directory and renamed the copied tmp* Directory to the url under which the application should be riched. After that i got a hot-deployment error like this:
13:09:22,453 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Packages waiting for a deployer ---
| org.jboss.deployment.DeploymentInfo@cb04e04 { url=file:/C:/server/jboss-4.0.5.GA/server/default/deploy/container/META-INF/MANIFEST.MF }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/C:/server/jboss-4.0.5.GA/server/default/deploy/container/META-INF/MANIFEST.MF
| altDD: null
| lastDeployed: 1182078562109
| lastModified: 1182078562109
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@96d3d134 { url=file:/C:/server/jboss-4.0.5.GA/server/default/deploy/container/WEB-INF/classes/containerliste/Container.class }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/C:/server/jboss-4.0.5.GA/server/default/deploy/container/WEB-INF/classes/containerliste/Container.class
| altDD: null
| lastDeployed: 1182078562125
| lastModified: 1182078562109
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@a679cd84 { url=file:/C:/server/jboss-4.0.5.GA/server/default/deploy/container/WEB-INF/classes/containerliste/ContainerBean.class }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/C:/server/jboss-4.0.5.GA/server/default/deploy/container/WEB-INF/classes/containerliste/ContainerBean.class
| altDD: null
| lastDeployed: 1182078562125
| lastModified: 1182078562125
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@79515915 { url=file:/C:/server/jboss-4.0.5.GA/server/default/deploy/container/WEB-INF/classes/containerliste/ContainerSize.class }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/C:/server/jboss-4.0.5.GA/server/default/deploy/container/WEB-INF/classes/containerliste/ContainerSize.class
| altDD: null
| lastDeployed: 1182078562125
| lastModified: 1182078562125
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@37f5c112 { ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055139#4055139
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055139
18Â years, 10Â months