[JCA/JBoss] - Help: Mbean exceptions on jboss startup
by sosoict1
I configured a mbean service for JCA as follow:
-------------------------------------------------------------------------------------
my-service.xml
------------------------------------------------------------------------------------
jboss.jca:service=RARDeployer
<depends optional-attribute-name="ManagedConnectionFactoryName">
<depends optional-attribute-name="OldRarDeployment">
jboss.jca:service=RARDeployment,name=FileRA
NoTransFile
<depends optional-attribute-name="ManagedConnectionPool">
0
50
5000
15
ByContainer
<depends optional-attribute-name="CachedConnectionManager">
jboss.jca:service=CachedConnectionManager
<depends optional-attribute-name="JaasSecurityManagerService">
jboss.security:service=JaasSecurityManager
----------------------------------------------------------------------------------
When starting jboss, some exceptions were threw out which said:
org.jboss.deployment.DeploymentException: No Attribute found with name: JNDIName
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:318)
...
..
org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@d0deb5 on mbean jboss.jca:service=NoTxCM,name=FileRA; - nested throwable: (javax.management.AttributeNotFoundException: not found: ManagedConnectionFactoryName)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:380)
...
...
Caused by: javax.management.AttributeNotFoundException: not found: ManagedConnectionFactoryName
at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:428)
at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
--------------------------------------------------------------------
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093052#4093052
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093052
18Â years, 7Â months
[Installation, Configuration & DEPLOYMENT] - Re: Overriding universal classloader, JBoss 4.2.1GA
by jaikiran
Worked for me. This is what i tried (as a sample try):
- JBoss 4.2.1 ships with Hibernate-3.2.4SP1 and Quartz-1.5.2 (these jars are present in the server/< serverName>/lib folder of JBoss).
- I created a simple web-application, with just one JSP which was meant to print out the Hibernate and Quartz versions. In the lib folder of my web-application, i placed Hibernate-3.1.2 and Quartz-1.4.5 version jars. Also, i placed a jboss-web.xml in the WEB-INF folder of my application, with the following contents:
| <jboss-web>
| <context-root>/</context-root>
| <class-loading java2ClassLoadingCompliance="false">
| <loader-repository>
| org.myapp:loader=hibernatetestclassloader
| <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
| </loader-repository>
| </class-loading>
| </jboss-web>
- The jsp contents are simple:
<%@ page import="
| java.util.*,
| javax.naming.*,
| javax.sql.*,
| java.sql.*,
| org.hibernate.cfg.*,
| org.quartz.helpers.*"
|
|
| %>
|
|
| <html>
| <body>
| <%
| try {
|
|
| System.out.println("Hibernate version: " + Environment.VERSION);
| String args[] = new String[] {"abc","xyz"};
| System.out.println("Quartz version: ");
| VersionPrinter.main(args);
| } catch(Exception e) {
| e.printStackTrace();
| }
|
| %>
| </body>
| </html>
|
- Started JBoss and accessed the jsp. Here's the output:
anonymous wrote : 2007-10-09 19:22:52,833 INFO [STDOUT] Hibernate version: 3.1.2
| 2007-10-09 19:22:52,833 INFO [STDOUT] Quartz version:
| 2007-10-09 19:22:52,833 INFO [STDOUT] Quartz version: 1.4.5
|
This shows that the libraries of my application(and not the ones shipped by JBoss) are being used.
P.S: Hibernate and Quartz libraries were considered as an example for simplicity.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093040#4093040
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093040
18Â years, 7Â months
[JBoss Seam] - Problems with Seam-gen (and maven i guess)
by Eethyo
Hi I am using Seam 2.0.0.CR2.
If i want to run seam-gen i get the following error:
Buildfile: C:\rhdevstudio\jboss-eap\jboss-seam-2.0.0.CR2\seam-gen\build.xml
| init:
| [artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/2.0.0.CR2/jboss-seam-gen-2.0.0.CR2.pom
| [artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/2.0.0.CR2/jboss-seam-gen-2.0.0.CR2.jar
| [artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
| [artifact:dependencies] Diagnosis:
| [artifact:dependencies]
| [artifact:dependencies] Unable to resolve artifact: Missing:
| [artifact:dependencies] ----------
| [artifact:dependencies] 1) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
| [artifact:dependencies]
| [artifact:dependencies] Try downloading the file manually from the project website.
| [artifact:dependencies]
| [artifact:dependencies] Then, install it using the command:
| [artifact:dependencies] mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
| [artifact:dependencies] -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file
| [artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
| [artifact:dependencies] -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file \
| [artifact:dependencies] -Durl=[url] -DrepositoryId=[id]
| [artifact:dependencies]
| [artifact:dependencies] Path to dependency:
| [artifact:dependencies] 1) unspecified:unspecified:jar:0.0
| [artifact:dependencies] 2) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
| [artifact:dependencies]
| [artifact:dependencies] ----------
| [artifact:dependencies] 1 required artifact is missing.
| [artifact:dependencies]
| [artifact:dependencies] for artifact:
| [artifact:dependencies] unspecified:unspecified:jar:0.0
| [artifact:dependencies]
| [artifact:dependencies] from the specified remote repositories:
| [artifact:dependencies] central (http://repo1.maven.org/maven2)
| [artifact:dependencies]
| [artifact:dependencies]
|
| BUILD FAILED
| C:\rhdevstudio\jboss-eap\jboss-seam-2.0.0.CR2\seam-gen\build.xml:14: Unable to resolve artifact: Missing:
| ----------
| 1) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
|
| Try downloading the file manually from the project website.
|
| Then, install it using the command:
| mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
| -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file
| Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
| -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file \
| -Durl=[url] -DrepositoryId=[id]
|
| Path to dependency:
| 1) unspecified:unspecified:jar:0.0
| 2) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
|
| ----------
| 1 required artifact is missing.
|
| for artifact:
| unspecified:unspecified:jar:0.0
|
| from the specified remote repositories:
| central (http://repo1.maven.org/maven2)
|
|
| Total time: 3 seconds
if I run the "ant" in the seam-gen directory i get:
C:\rhdevstudio\jboss-eap\jboss-seam-2.0.0.CR2\seam-gen>ant
| Buildfile: build.xml
|
| init:
| [artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/2.0.0.CR2/jbo
| ss-seam-gen-2.0.0.CR2.pom
| [artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/2.0.0.CR2/jbo
| ss-seam-gen-2.0.0.CR2.jar
| [artifact:dependencies] An error has occurred while processing the Maven artifac
| t tasks.
| [artifact:dependencies] Diagnosis:
| [artifact:dependencies]
| [artifact:dependencies] Unable to resolve artifact: Missing:
| [artifact:dependencies] ----------
| [artifact:dependencies] 1) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
| [artifact:dependencies]
| [artifact:dependencies] Try downloading the file manually from the project web
| site.
| [artifact:dependencies]
| [artifact:dependencies] Then, install it using the command:
| [artifact:dependencies] mvn install:install-file -DgroupId=org.jboss.seam
| -DartifactId=jboss-seam-gen \
| [artifact:dependencies] -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/pa
| th/to/file
| [artifact:dependencies] Alternatively, if you host your own repository you can d
| eploy the file there: mvn deploy:deploy-file -DgroupId=org.jboss.seam -Dar
| tifactId=jboss-seam-gen \
| [artifact:dependencies] -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/pa
| th/to/file \
| [artifact:dependencies] -Durl=[url] -DrepositoryId=[id]
| [artifact:dependencies]
| [artifact:dependencies] Path to dependency:
| [artifact:dependencies] 1) unspecified:unspecified:jar:0.0
| [artifact:dependencies] 2) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
| [artifact:dependencies]
| [artifact:dependencies] ----------
| [artifact:dependencies] 1 required artifact is missing.
| [artifact:dependencies]
| [artifact:dependencies] for artifact:
| [artifact:dependencies] unspecified:unspecified:jar:0.0
| [artifact:dependencies]
| [artifact:dependencies] from the specified remote repositories:
| [artifact:dependencies] central (http://repo1.maven.org/maven2)
| [artifact:dependencies]
| [artifact:dependencies]
|
| BUILD FAILED
| C:\rhdevstudio\jboss-eap\jboss-seam-2.0.0.CR2\seam-gen\build.xml:14: Unable to r
| esolve artifact: Missing:
| ----------
| 1) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
|
| Try downloading the file manually from the project website.
|
| Then, install it using the command:
| mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-
| gen \
| -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file
| Alternatively, if you host your own repository you can deploy the file there:
| mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen
| \
| -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file \
| -Durl=[url] -DrepositoryId=[id]
|
| Path to dependency:
| 1) unspecified:unspecified:jar:0.0
| 2) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
|
| ----------
| 1 required artifact is missing.
|
| for artifact:
| unspecified:unspecified:jar:0.0
|
| from the specified remote repositories:
| central (http://repo1.maven.org/maven2)
|
|
| Total time: 4 seconds
| C:\rhdevstudio\jboss-eap\jboss-seam-2.0.0.CR2\seam-gen>
whats the mistake?
i didnt change anything and i dont have any idea about maven... yet ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093039#4093039
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093039
18Â years, 7Â months
[EJB 3.0] - Could not find new XAResource to use for recovering non-seri
by ejb3workshop
I was trying out some standard user transactions using EJB3 entities and persistent message queues. During my tests I encountered several application exceptions which were caused by my code, which I was able to resolved.
However since then I am getting continous stream of messages on the console.
Searching the forum revealed that I need to write a recovery module. Seeing that I was merely using EJB3 I am wondering if there is a standard recovery model.
anonymous wrote :
| [com.arjuna.ats.internal.jta.resources.arjunacore.norecoveryxa] [com.arjuna.ats.internal.jta.resources.arjunacore.norecoveryxa] Could not find new XAResource to use for recovering non-serializable XAResource < 131075, 30, 28, 1--3f57fdc4:68f:46f90760:8c5d6-3f57fdc4:68
|
I'd be happy if I could get just rid of those messages as the cause of the problem has been resolved.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093035#4093035
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093035
18Â years, 7Â months