[JCA/JBoss] - Re: Classloading and sharing classes between .ear and .rar
by rupertlssmith
The good news is that I now have everything working. Thankyou Weston for your quick and helpfull replies.
To recap: I have the -ds.xml and RAR inside the EAR. I am using isolated class loaders. IT doesn't seem to matter whether or not i turn on call by value in the naming service and ear deployer configs. The all in one EAR approach should mean its all call-by-reference anyway. What seems to be making or breaking it is the RAR reference in the -ds.xml:
I am using:
<rar-name>index-ra-test-0.1.ear#index-ra-0.1.rar</rar-name>
and it is working with that.
Using:
<rar-name>index-ra-0.1.rar</rar-name>
it will silently fail without binding the service to its JNDI name. I'm a little surprised by that, i thought the -ds.xml deployer would fail if it can't find the connection factory interface. Perahps all the ear# syntax is doing is prompting it to use the right clasloader? I've no idea.
Any enlightenment on how to get the RAR working as a seperate modular deployment would still be appreciated and of general interest I think. For example, suppose I had EARs needing isolated loaders but want to share a single resource adapter between them?
Rupert Smith
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963049#3963049
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963049
19 years, 9 months
[Installation, Configuration & Deployment] - X11 Connection and Database Manager Tool -- headless or hair
by snyderpa
I am either going to lose my head or rip my hair out. Please suggest how to configure so that these swing components will be able to have a window. Thanks in advance. I am using :
RHEL4
| jdk1.5.0_07
| jboss4.0.4.GA-ejb3 -c all
| connecting from WindowsXP using putty and XMing
|
|
| First try "Can't connect to X11 window server ... "
|
|
| | 2006-08-03 10:24:43,494 ERROR [org.jboss.jdbc.HypersonicDatabase] Failed to start database manager
| | java.lang.reflect.InvocationTargetException
| | 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.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.java:517)
| | Caused by: java.lang.NoClassDefFoundError
| | at java.lang.Class.forName0(Native Method)
| | at java.lang.Class.forName(Class.java:164)
| | at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
| | at java.awt.Window.init(Window.java:270)
| | at java.awt.Window.<init>(Window.java:318)
| | at java.awt.Frame.<init>(Frame.java:419)
| | at javax.swing.JFrame.<init>(JFrame.java:194)
| | at org.hsqldb.util.DatabaseManagerSwing.main(Unknown Source)
| | ... 5 more
| |
|
| So, based on various posts to these forums, I tried using the "-Djava.awt.headless=true" option in my run.conf file with this result:
|
| 2006-08-03 16:23:34,327 ERROR [org.jboss.jdbc.HypersonicDatabase] Failed to start database manager
| | java.lang.reflect.InvocationTargetException
| | 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.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.java:517)
| | Caused by: java.awt.HeadlessException
| | at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
| | at java.awt.Window.<init>(Window.java:317)
| | at java.awt.Frame.<init>(Frame.java:419)
| | at javax.swing.JFrame.<init>(JFrame.java:194)
| | at org.hsqldb.util.DatabaseManagerSwing.main(Unknown Source)
| | ... 5 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963048#3963048
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963048
19 years, 9 months