[Installation, Configuration & DEPLOYMENT] - Migration from Jboss5 Beta4 to CR1 - DeploymentException in
by alex-jboss69
I have a web application running on Jboss5 beta4, but when I try to deploy it on Jboss5 CR1, a org.jboss.deployers.spi.DeploymentException is thrown. I couldn't identify any specific reason for the error in the log file, even when setting all the log4j categories to DEBUG.
Any suggestion for what could cause this kind of error ?
Is there a way to get a log with more specific messages ?
2008-07-22 15:25:13,796 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] webContext: /myapp-web
2008-07-22 15:25:13,796 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] warURL: file:/C:/jboss/jboss-5.0.0.CR1/server/default/tmp/deploy/myapp-web34477-exp.war/
2008-07-22 15:25:13,796 DEBUG [org.apache.tomcat.util.modeler.BaseModelMBean] Invoke findAliases
2008-07-22 15:25:13,796 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/myapp-web, vfsUrl=myapp-web.war
2008-07-22 15:25:13,796 DEBUG [org.apache.tomcat.util.modeler.Registry] Managed= jboss.web:j2eeType=WebModule,name=//localhost/myapp-web,J2EEApplication=none,J2EEServer=none
2008-07-22 15:25:13,796 DEBUG [org.apache.tomcat.util.modeler.BaseModelMBean] preRegister StandardContext[null] jboss.web:j2eeType=WebModule,name=//localhost/myapp-web,J2EEApplication=none,J2EEServer=none
2008-07-22 15:25:13,796 DEBUG [org.apache.catalina.core.StandardContext] Setting deployment descriptor public ID to 'null'
2008-07-22 15:25:13,796 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] Using session cookies default setting
2008-07-22 15:25:13,796 DEBUG [org.apache.catalina.core.StandardContext] AddChild jboss.web:type=Host,host=localhost StandardContext[/myapp-web]
2008-07-22 15:25:13,796 DEBUG [org.apache.tomcat.util.modeler.BaseModelMBean] Invoke addChild
2008-07-22 15:25:13,812 DEBUG [org.apache.catalina.startup.ContextConfig] Cannot find message associated with key contextConfig.destroy
2008-07-22 15:25:13,812 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/myapp-web state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss/jboss-5.0.0.CR1/server/default/tmp/deploy/myapp-web34477-exp.war/ deployment failed
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:360)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:139)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:431)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:112)
at org.jboss.web.deployers.WebModule.start(WebModule.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy35.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:271)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:624)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:442)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:88)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:991)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:544)
at java.lang.Thread.run(Thread.java:595)
2008-07-22 15:25:13,812 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.destroy][message=]
2008-07-22 15:25:13,812 DEBUG [org.jboss.management.j2ee.factory.DefaultManagedObjectFactoryMap] Failed to find factory for event: javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.destroy][message=]
2008-07-22 15:25:13,812 DEBUG [org.jboss.system.ServiceCreator] Removing mbean from server: jboss.web.deployment:war=/myapp-web
Any suggestion/comment would be appreciated
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165980#4165980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165980
17 years, 9 months
[EJB 3.0] - Re: JBOSS 5.0 + SQL SERVER 2005 = ClassNotFoundException: co
by PeterJ
What you just now posted has nothing to do with the original problem in your first post. Please focus on the initial problem and do not mention additional problems. You can start a new post about this new problem, and I suggest you do it in the JBossAS5 forum (http://www.jboss.com/index.html?module=bb&op=viewforum&f=287), but only after you have looked through that form for similar posts that might already answer that problem.
Getting back to the original problem. You say that after you make the changes I suggested to *-ds.xml that you are still getting the class not found exception, is that correct?
I do not use SQL Server, but I do use MySQL and PostgreSQL, and 5.0CR1 did not have any problems finding the drivers for those databases. So there must be some simple configuration error you are doing.
Here is what I would do. First I would list the classes in the JDBC driver JAR file using "jar -tf xxx.jar" and verify that the class name is correct.
Next I would determine if the SQLServerDriver class requires other classes (sometimes the problem is with a referenced class, and not the class reported in the class not found exception).
Finally, in the working 4.2.2 version, I would set the -verbose:class JVM option and determine where the SQLServerDriver class is being loaded. I would then add -verbose:class to 5.0CR1.
One of those things usually helps me to pinpoint the issue.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165978#4165978
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165978
17 years, 9 months
[EJB 3.0] - Re: JBOSS 5.0 + SQL SERVER 2005 = ClassNotFoundException: co
by szymanski
Hi, Peter
Yes, I did the changes but no success.
To me, in the group "Bug" is the bugs that are giving exceptions...It problem is make me crazy, because is everything right. With the JBoss 4.2.2 it works very well, but i can't make lookup of anyway, is because it I'm trying to use JBoss 5.0.
With JBoss 4.2.2 I try to make lookup like this:
| context = new InitialContext();
| PermissionDaoImpl pd = (PermissionDaoImpl)context.lookup("Question/PermissionDaoImpl/local");
|
My beautiful error is it:
ClassCastException: Cannot cast $Proxy76 (id=306) to br.org.question.dao.PermissionDaoImpl
import javax.ejb.Local;
| @Local
| public interface PermissionDao {}
@Stateless
| public class PermissionDaoImpl implements PermissionDao {
|
| @PersistenceContext(unitName="questionPU")
| private EntityManager em;
| }
when the JBoss 4.2.2 starts i have it:
| 15:41:58,250 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 15:41:58,250 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=Question.ear,jar=Question-EJB.jar,name=PermissionDaoImpl,service=EJB3 with dependencies:
| 15:41:58,250 INFO [JmxKernelAbstraction] persistence.units:ear=Question.ear,jar=Question-EJB.jar,unitName=questionPU
| 15:41:58,265 INFO [EJBContainer] STARTED EJB: br.org.question.dao.PermissionDaoImpl ejbName: PermissionDaoImpl
but of anyway i can make lookup.
Does anyone has some idea???
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165967#4165967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165967
17 years, 9 months
[JBoss jBPM] - How does jBPM handle persistance
by grin1dan
Hello All...I am looking for a little guidance on determining exactly how jBPM handles persistance. I found a decent excerpt but I wonder if anyone could tell me a little more about what the "JbpmContext" is:
Database and transactions
The basic jBPM workings do not require any persistency, it is an optional step to make process definitions and instances persistent. This is done by surrounding the jBPM operations with the retrieval of a "JbpmContext" and using its methods to persist the entities.
A JbpmContext requires closing, which will close the services managed by the context, among which the "PersistenceService", and upon closing this service, the database transaction will be committed, or rolled back if JbpmContext.setRollbackOnly() was called. (The PersistenceService by default starts a transaction when the database connection is first retrieved).
So it is upon us (of course) to call JbpmContext.setRollbackOnly() in case an exception occurs, where we don't want things to persist.
If we want to do things in the same database transaction as jBPM, we can do this inside the same JbpmContext retrieve/close block, by getting the connection using JbpmContext.getConnection() or the hibernate session using JbpmContext.getSession().
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165964#4165964
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165964
17 years, 9 months
[Persistence, JBoss/CMP, Hibernate, Database] - org.hibernate.HibernateException: Could not find datasource:
by schander10
After copying the oracle-ds.xml in jobss's server/default directory, when I start the server, I get the following in the logs:
ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'
and then later on in the logs I get the exception
Caused by: javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not find datasource: java:/OracleDS
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:85)
at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at org.jboss.seam.Component.callComponentMethod(Component.java:2100)
at org.jboss.seam.Component.callCreateMethod(Component.java:2015)
at org.jboss.seam.Component.newInstance(Component.java:1976)
I checked my JMX console and verified that the Datasource has been setup properly.
Can someone please help in identifying what I am missing? I have all the latest Hibernate and Persistence related jar files in the jboss lib directory.
Thanks
Chander
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165963#4165963
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165963
17 years, 9 months
[JBoss Messaging] - Re: JBM thread leak?
by clebert.suconic@jboss.com
"TheOverlord" wrote : Yes, i'm using the Spring JmsTemplate to send a response in an MDB to a remote clustered queue.
|
| If I move the MDBs into the same clustered servers where the clustered queues reside, I don't get this problem - it only happens when the MDB is running remotely from the clustered queue.
|
| Strange.
|
| From everything I read, it should be safe to use the Spring JmsTemplate for what I'm doing since I'm using it to send a reply and I'm using "java:/JmsXA".
|
| Doesn't the JmsTemplate close sessions?
|
You need to look at the JmsTemplate source code, or ask that question to Spring guys. We focus ourselves on the JBoss Messaging implementation which is already enough workload for us ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165960#4165960
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165960
17 years, 9 months
[Installation, Configuration & DEPLOYMENT] - Is it possible to make JBoss not scan jars from a specific d
by bouba331
Hi,
I have an enterprise application deployed as an EAR archive. In my EAR i have multiple dependencies as jars.
For example:
| - myear.ear
|
| | - mywar.war
| | - dependency.jar
| |
|
|
|
|
| My problem is the following. Inside "dependency.jar" I have a directory which contain JAR files. Those files MUST NOT be loaded by the JBoss deployer.
| Besides I can't switch off deployment scanning. What I want to do is to switch off scanning only for a specified directory.
|
| For example the structure of "dependency.jar" could be:
| myear.ear
|
| | - dependency.jar
| |
| | | - com.mycompany
| | |
| | | | - aclass.class
| | | | - aclass.class
| | | |
| | | - not_scanned_directory
| | | - scanned_directory
| | |
| | | | - dep1.jar
| | | |
| | |
| |
|
| I know that "jboss-service.xml" allow to exclude resources from scanning.
|
| | <attribute name="FilterInstance"
| | attributeClass="org.jboss.deployment.scanner.DeploymentFilter"
| | serialDataType="javaBean">
| | <!-- Files starting with theses strings are ignored -->
| | <property name="prefixes">#,%,\,,.,_$</property>
| | <!-- Files ending with theses strings are ignored -->
| | <property name="suffixes">#,$,%,~,\,v,.BAK,.bak,.old,.orig,.tmp,.rej,.sh.zip</property>
| | <!-- Files matching with theses strings are ignored -->
| | <property name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property>
| | </attribute>
| |
|
| Ok, but this does not works for directories, what I want to do is something like that:
|
| | <property name="matches">... ... ... ..., not_scanned_directory</property>
| |
|
| This would prevent JBoss to scan everything in the "not_scanned_directory" of "adependency.jar".
|
| So, is it possible to do that ? How ?
| If not, how can I define jars in my EAR and force JBoss to COMPLETELY ignore those jars ?
|
| Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165959#4165959
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165959
17 years, 9 months