[JNDI and Naming] - Re: classCastException while casting ejb Home's proxy.
by Manoj Dhanji
Manoj Dhanji [http://community.jboss.org/people/manojramesh] created the discussion
"Re: classCastException while casting ejb Home's proxy."
To view the discussion, visit: http://community.jboss.org/message/566852#566852
--------------------------------------------------------------
Thanks a lot
I was facing the same (classloading) problem in JBoss 4.0.4; removing interface binaries from web-inf/lib worked. Since the *war* is a part of the *ear* the *war* has access to interface class definitions.
What if we the requirement was to deploy the *war* outside of the *ear* in the same jboss server?
1. The *war* would then need the interfaces, right?
2. On a similar note when the *war* and *ear* are deployed as 2 separate applications (same jboss server) could a servlet in the *war* still use 'local ejb interfaces' in the *ear*.
There are 2 archives now - each residing in its own container (war: web-container & ear: ejb-container) but the 2 containers still share *one jvm*. My point is the servlet in the *war* and the ejb component(s) in the *ear* are still collocated in the same jvm.
Thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566852#566852]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Tools] - Re: JBoss Tools 3.2 on OS X.5.8 (Power PC - Dual G5)
by Luis Garcia
Luis Garcia [http://community.jboss.org/people/peter.falken] created the discussion
"Re: JBoss Tools 3.2 on OS X.5.8 (Power PC - Dual G5)"
To view the discussion, visit: http://community.jboss.org/message/566831#566831
--------------------------------------------------------------
Sorry about taking so long to answer, But I had to wait for the weekend to try out all the scenarios.
I ran Eclipse 3.5.2 and 3.6.1 with JBoss Tools 3.1.1 and 3.2 M2 respectively.
I added the -debug -consoleLog arguments to the eclipse.ini
Eclipse crashes when the Visual Page Editor tries to render a preview - I think it might be caused by a SWT issue with either JVM 1.5 in PPC or that it is looking for a JVM 1.6 which PPC OS X doesn't have. XULRunner prints out a message about early initialization and sets SWT timeout to 0.1000
Here is the console log for Eclipse 3.5.2 ( Eclipse 3.6.1 - crashes with the same message "Illegal Instrucction", but the startup log seem a bit different)
isgaea:Eclipse_3.5.2 luis$ ./eclipse
Start VM: -Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.browser.XULRunnerPath=/Applications/Eclipse_3.5.2/XUL_1.9.1.13
-Djava.class.path=/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os macosx
-ws cocoa
-arch ppc
-showsplash
-launcher /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse
--launcher.library /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.0.1.R35x_v20090707/eclipse_1207.so
-startup /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-product org.eclipse.epp.package.reporting.product
-debug
-consoleLog
-vm /System/Library/Frameworks/JavaVM.framework
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.browser.XULRunnerPath=/Applications/Eclipse_3.5.2/XUL_1.9.1.13
-Djava.class.path=/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
Install location:
file:/Applications/Eclipse_3.5.2/
Configuration file:
file:/Applications/Eclipse_3.5.2/configuration/config.ini loaded
Configuration location:
file:/Applications/Eclipse_3.5.2/configuration/
Framework located:
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
Loading extension: reference:file:javax.transaction_1.1.1.v201002111330.jar
eclipse.properties not found
Loading extension: reference:file:org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
eclipse.properties not found
Framework classpath:
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
file:/Applications/Eclipse_3.5.2/plugins/
file:/Applications/Eclipse_3.5.2/plugins/javax.transaction_1.1.1.v201002111330.jar
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
Splash location:
/Applications/Eclipse_3.5.2/plugins/org.eclipse.platform_3.3.202.v201002111343/splash.bmp
Debug options:
file:/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/.options not found
Time to load bundles: 21
Starting application: 11708
Application Started: 26283
!SESSION 2010-10-16 11:37:01.861 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_24
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.reporting.product
Command-line arguments: -os macosx -ws cocoa -arch ppc -product org.eclipse.epp.package.reporting.product -debug -consoleLog
!ENTRY org.eclipse.core.net 1 0 2010-10-16 11:37:28.841
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
Oct 16, 2010 11:37:57 AM org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
WARNING: Cookie rejected: "$Version=0; JSESSIONID=BD912157534895EF9BD8030FE8740DBE; $Path=/servlets". Illegal path attribute "/servlets". Path of origin: "/update_1.6.x/content.jar"
Oct 16, 2010 11:37:57 AM org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
WARNING: Cookie rejected: "$Version=0; JSESSIONID=D3F706912C85D9BFDEBAC8B0371D1604; $Path=/servlets". Illegal path attribute "/servlets". Path of origin: "/update_1.6.x/content.xml"
Illegal instruction
Disgaea:Eclipse_3.5.2 luis$
isgaea:Eclipse_3.5.2 luis$ ./eclipse
Start VM: -Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.browser.XULRunnerPath=/Applications/Eclipse_3.5.2/XUL_1.9.1.13
-Djava.class.path=/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os macosx
-ws cocoa
-arch ppc
-showsplash
-launcher /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse
--launcher.library /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.0.1.R35x_v20090707/eclipse_1207.so
-startup /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-product org.eclipse.epp.package.reporting.product
-debug
-consoleLog
-vm /System/Library/Frameworks/JavaVM.framework
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.browser.XULRunnerPath=/Applications/Eclipse_3.5.2/XUL_1.9.1.13
-Djava.class.path=/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
Install location:
file:/Applications/Eclipse_3.5.2/
Configuration file:
file:/Applications/Eclipse_3.5.2/configuration/config.ini loaded
Configuration location:
file:/Applications/Eclipse_3.5.2/configuration/
Framework located:
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
Loading extension: reference:file:javax.transaction_1.1.1.v201002111330.jar
eclipse.properties not found
Loading extension: reference:file:org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
eclipse.properties not found
Framework classpath:
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
file:/Applications/Eclipse_3.5.2/plugins/
file:/Applications/Eclipse_3.5.2/plugins/javax.transaction_1.1.1.v201002111330.jar
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
Splash location:
/Applications/Eclipse_3.5.2/plugins/org.eclipse.platform_3.3.202.v201002111343/splash.bmp
Debug options:
file:/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/.options not found
Time to load bundles: 21
Starting application: 11708
Application Started: 26283
!SESSION 2010-10-16 11:37:01.861 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_24
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.reporting.product
Command-line arguments: -os macosx -ws cocoa -arch ppc -product org.eclipse.epp.package.reporting.product -debug -consoleLog
!ENTRY org.eclipse.core.net 1 0 2010-10-16 11:37:28.841
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
Oct 16, 2010 11:37:57 AM org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
WARNING: Cookie rejected: "$Version=0; JSESSIONID=BD912157534895EF9BD8030FE8740DBE; $Path=/servlets". Illegal path attribute "/servlets". Path of origin: "/update_1.6.x/content.jar"
Oct 16, 2010 11:37:57 AM org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
WARNING: Cookie rejected: "$Version=0; JSESSIONID=D3F706912C85D9BFDEBAC8B0371D1604; $Path=/servlets". Illegal path attribute "/servlets". Path of origin: "/update_1.6.x/content.xml"
Illegal instruction
Disgaea:Eclipse_3.5.2 luis$isgaea:Eclipse_3.5.2 luis$ ./eclipse
Start VM: -Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.browser.XULRunnerPath=/Applications/Eclipse_3.5.2/XUL_1.9.1.13
-Djava.class.path=/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os macosx
-ws cocoa
-arch ppc
-showsplash
-launcher /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse
--launcher.library /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.0.1.R35x_v20090707/eclipse_1207.so
-startup /Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-product org.eclipse.epp.package.reporting.product
-debug
-consoleLog
-vm /System/Library/Frameworks/JavaVM.framework
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.browser.XULRunnerPath=/Applications/Eclipse_3.5.2/XUL_1.9.1.13
-Djava.class.path=/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
Install location:
file:/Applications/Eclipse_3.5.2/
Configuration file:
file:/Applications/Eclipse_3.5.2/configuration/config.ini loaded
Configuration location:
file:/Applications/Eclipse_3.5.2/configuration/
Framework located:
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
Loading extension: reference:file:javax.transaction_1.1.1.v201002111330.jar
eclipse.properties not found
Loading extension: reference:file:org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
eclipse.properties not found
Framework classpath:
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
file:/Applications/Eclipse_3.5.2/plugins/
file:/Applications/Eclipse_3.5.2/plugins/javax.transaction_1.1.1.v201002111330.jar
file:/Applications/Eclipse_3.5.2/plugins/org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
Splash location:
/Applications/Eclipse_3.5.2/plugins/org.eclipse.platform_3.3.202.v201002111343/splash.bmp
Debug options:
file:/Applications/Eclipse_3.5.2/Eclipse.app/Contents/MacOS/.options not found
Time to load bundles: 21
Starting application: 11708
Application Started: 26283
!SESSION 2010-10-16 11:37:01.861 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_24
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.reporting.product
Command-line arguments: -os macosx -ws cocoa -arch ppc -product org.eclipse.epp.package.reporting.product -debug -consoleLog
!ENTRY org.eclipse.core.net 1 0 2010-10-16 11:37:28.841
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
Oct 16, 2010 11:37:57 AM org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
WARNING: Cookie rejected: "$Version=0; JSESSIONID=BD912157534895EF9BD8030FE8740DBE; $Path=/servlets". Illegal path attribute "/servlets". Path of origin: "/update_1.6.x/content.jar"
Oct 16, 2010 11:37:57 AM org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
WARNING: Cookie rejected: "$Version=0; JSESSIONID=D3F706912C85D9BFDEBAC8B0371D1604; $Path=/servlets". Illegal path attribute "/servlets". Path of origin: "/update_1.6.x/content.xml"
Illegal instruction
Disgaea:Eclipse_3.5.2 luis$
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566831#566831]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Messaging] - Re: Does JBoss Messaging violate the JEE 5 Specification?
by Justin Bertram
Justin Bertram [http://community.jboss.org/people/jbertram%40redhat.com] created the discussion
"Re: Does JBoss Messaging violate the JEE 5 Specification?"
To view the discussion, visit: http://community.jboss.org/message/566828#566828
--------------------------------------------------------------
JBoss AS can integrate with a foreign JMS provider in two different ways:
1. Using a JMSProviderLoader MBean. This method allows JBoss AS to integrate with any JMS provider that supports remote JMS clients via the standard JNDI pattern outlined in section 2.6.1 of the JMS 1.1 specification. The JMSProviderLoader is a container-managed mechanism to configure the same parameters used by a remote, stand-alone client (e.g. InitialContext JNDI properties, connection factory name, etc.).
** This method can be used by an MDB via the "providerAdapterJNDI" activation configuration property to consume messages, and it can be used in conjunction with a <tx-connection-factory> to send messages.
** This method can also be used by a JMS bridge to move messages to/from the foreign JMS provider.
1. Using the foreign provider's JCA resource adapter.
These two methods are essentially mutually exclusive. In other words, you can either use the JMSProviderLoader or you can use the provider's JCA RA, but you cannot use both. It appears you have combined these two methods by configuring the bridge to use a JMSProviderLoader that is, in turn, configured to use a JCA JMS connection factory from the WebSphere MQ RA. This is not valid. The JMSProviderLoader cannot use a JCA JMS connection factory. It must use a standard JMS connection factory just like any other remote client would.
> Isn’t JBoss Messaging violating the JEE5 specification...
No. The JBoss Messaging JMS bridge is not a Jave EE 5 component so it need not obey the Java EE specification. It is free to set an ExceptionListener on its connection just like any other JMS client who is connecting to a remote provider would. If you configure the bridge incorrectly to use a JCA JMS connection factory it will complain because the JCA connection factory is managed by the container and a client application is not allowed to set its own ExceptionListener on it.
> ...how do I create a workaround for the problem?
Configure your integration correctly.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566828#566828]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month