[JBoss jBPM] - Problem with jBPM 3.2.2 + JBoss AS 4.2.2
by neville.sequeira
I really need have the jBPM console web app (the jbpm-console.war that comes with the jBPM suite download) working under JBoss AS 4.2.2
I get the following exception on starting JBoss AS:
16:19:52,437 ERROR [[/jbpm-console]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/ConcurrentMap
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:825)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:486)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
...
...
After following the information at http://wiki.jboss.org/wiki/Wiki.jsp?page=DeployJbpm3.2WebAppUnderJBoss4.2.x I am still getting the same exception mentioned above.
By the way, I have read another similar related forum topic http://jboss.org/index.html?module=bb&op=viewtopic&t=112908, but unfortunately I can't glean much from that.
Thanks very much in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103443#4103443
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103443
18 years, 8 months
[JNDI/Naming/Network] - Utilizing Non-Default Datsource With JBOSS 4
by estein
I am using JBOSS 4.0.5 on Microsoft Windows XP with a default datasource of MS SQL. I wish to be able to interact with another datasource that is Oracle 10g. However, the only documentation/posts I have found deal with setting up the default datasource to be Oracle. I want to keep my MS SQL default DB and just pull data from the oracle database. What sort of configurations do I have to do?
I tried simply adding the oracle-ds.xml file from \jboss\docs\examples\jca to the \jboss\server\default\deploy directory and also adding the oracle jdbc drivers to the CLASSPATH of my startup script (i.e. CLASSPATH=...;%ORACLE_HOME%\db_2\jdbc\lib\classes12.zip)
However, when I start up JBOSS and try to interact with the oracle database, it says the jndi is not valid. Am I forgetting something?
Do I need to add the ojdbc14.jar file as well or use the classes12.jar file instead?
My oracle-ds.xml file looks like this:
<datasources>
| <local-tx-datasource>
| <jndi-name>jdbc/OracleDS</jndi-name>
| <connection-url>jdbc:oracle:thin:@test2:1521:orcl</connection-url>
| <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
| <user-name>hr</user-name>
| <password>hr</password>
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
| <metadata>
| <type-mapping>Oracle8</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
I am using all of the default configurations for the login-config.xml, standardjbosscmp-jdbc.xml, and standardjaws.xml
Any help would be greatly appreciated. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103442#4103442
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103442
18 years, 8 months
[EJB 3.0] - Re: Could not deploy EJB3.0 entities
by saasira
Hello to all,
Now,having got EJB3.0 working with Hibernate,
I'm set to deploy EJB 3.0 application using toplink as Persistence Provider..
But I'm getting the following error :
|
| Persistence Unit Model; state Deployed; factoryCount 1
| 03:02:15,952 ERROR [STDERR] javax.persistence.TransactionRequiredException:
| Exception Description: No transaction is currently active
| 03:02:15,953 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionWrapper.throwCheckTransactionFailedException(EntityTransactionWrapper.java:70)
| 03:02:15,953 ERROR [STDERR] at hibernate.transaction.manager_lookup_classoracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionWrapper.checkForTransaction(EntityTransactionWrapper.java:62)
| 03:02:15,953 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:616)
| 03:02:15,953 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.joinTransaction(EntityManagerImpl.java:646)
| 03:02:15,953 ERROR [STDERR] at org.jboss.ejb3.entity.ManagedEntityManagerFactory.getTransactionScopedEntityManager(ManagedEntityManagerFactory.java:183)
| 03:02:15,953 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:182)
| 03:02:15,954 ERROR [STDERR] at com.prapansol.demos.service.SRServiceBean.persistEntity(SRServiceBean.java:76)
|
In Hibernate we have
hibernate.transaction.manager_lookup_class
How can we make toplink look up the JBossTransactionManager class?
Any idea?
Thnks for your help in advance,
Samba
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103441#4103441
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103441
18 years, 8 months
[EJB 3.0] - Re: trouble getting correct SFSB-instance in WAR-deployment
by ALRubinger
"axismundi" wrote : But the result of the endeavor is just as before. Not surprisingly I can pick up the proxy (local IF) from the session in my ImageServlet successfully.
|
| But once I try to access a method, at the first time Seam is complaining like this:
|
| Caused by: org.jboss.seam.RequiredException: @In attribute requires non-null value: shopTree.applicationUser
| |
|
I can't speak to the failure of the @In injection; I'm not too familiar with Seam. You might bring this up in the Seam User's Forum.
"axismundi" wrote : At the second request to the ImageServlet, I am getting
| javax.ejb.NoSuchEJBException: Could not find stateful bean: a4i810-vbn2mr-f8u25ljn-1-f8u49lh5-12
|
| My only explanation is that JBoss' JNDI-implementation delivers a serialized instance (copy) of the original instance that is available in the EJB-container. However, AFAIK, this would not fit with the JBoss' specification, which says that JNDI-lookups for local IF's (in the same VM) result in a reference to the instance, not in a serialized copy.
More accurately, local calls are still passed through a Proxy (which is what you obtain from JNDI) which will directly invoke based on reference. There are conditions, however, based upon the type of Exception thrown and the transactional context of the method you're invoking, where the EJB3 spec dictates that the instance must be discarded. In this case, you'll receive the Exception from Seam, the SFSB instance would be discarded, and then you'd invoke on the same Proxy referencing the discarded instance and receive the error message above. EJB3 Core Spec 14.3.1 Table 14.
Maybe try losing the @In annotation and slimming things down to tackle this one problem at a time? If you can get past the Seam exception and make subsequent invocations on the proper SFSB (whose stub you store in the HttpSession), then that'll give us some indication we're on the right track.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103434#4103434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103434
18 years, 8 months