[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?
Hello klester, I am newbie at jboss forums and am trying to use your guide to configure the timeout in my Jboss server. I've modified jboss-service.xml including the Mbeans UnifiedInvoker and Connector; I've applied changes too in the standardjboss.xml adding the invoker-proxy-binding and replacing in the container Standard Stateless SessionBean to use the new proxy invoker. I've coded a sample HelloWorld Stateless Bean; when I try to deploy the service, Jboss shows me the error: 18:25:02,406 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=HelloWorldTest,service=EJB java.lang.RuntimeException: invoker is null: jboss:service=invoker,type=unified at org.jboss.proxy.ejb.ProxyFactory.setupInvokers(ProxyFactory.java:244) at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:228) at org.jboss.ejb.SessionContainer.startInvokers(SessionContainer.java:421) at org.jboss.ejb.SessionContainer.startService(SessionContainer.java:383) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:428) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy49.start(Unknown Source) at org.jboss.ejb.EjbModule.startService(EjbModule.java:395) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:428) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy23.start(Unknown Source) at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:627) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?
Hello, Just fixed, I have to add the the invoker to start before the scanner starts looking at /deploy. But anyway I am unable to make the EJB Client gets a timeout. I'll reply with more details later. Regards View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250828#4250828 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB 3.0 load balancing not working in a Jboss AS 5.1 clu
Yes they do form a cluster. This is not something that i have missed but in general how jboss AS behaves. Please see following link - http://www.jboss.org/index.html?module=bbop=viewtopict=128146 and http://www.jboss.org/index.html?module=bbop=viewtopict=112500 I do not hot this user got it working finally? Jboss by default re-routes the call to a bean from the node within a cluster to the same node. This happens because of an interceptor. The option of disabling the interceptor dint work for me because it throws several exceptions. The only option i have is to write my own custom interceptor. But would it work? The guy who posted above links faced some exceptions. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250598#4250598 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250598 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB 3.0 load balancing not working in a Jboss AS 5.1 clu
Please provide more details which i asked for, in my previous reply: jaikiran wrote : | Also are those stateful session beans or stateless session beans? And please post relevant configuration files (jboss.xml) and any relevant code. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250715#4250715 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: exception-sorter-class-name oracle-ds.xml
It's explained in this wiki http://www.jboss.org/community/wiki/ConfigDataSources View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250720#4250720 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250720 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: exception-sorter-class-name oracle-ds.xml
I need to write my own Database ping check that does what OracleExceptionsorter class does. Is there something that Jboss/hibernate provides that I can use to ping the database and see if DB is up or the health of the connections. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250726#4250726 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?
Sure did [sorry for the late response]. I posted a similar question in the JBoss Remoting Forum, and someone pointed me toward using the JBoss Unified Invoker to accomplish this. The thread in the JBoss Remoting Forum is http://www.jboss.org/index.html?module=bbop=viewtopict=152317. At a high level, the Sun RMI timeout parameters don't work for the communication between the clients and the server because they don't use the Sun RMI libraries for their communication; they use the JBoss Remoting libraries. So in order to get the timeouts to work, you have to configure the JBoss Remoting libraries. To do so, you have to define the UnifiedInvoker in the jboss-service.xml and set the timeouts for it. You do that in the following file: - jboss_home/server/app_name/conf/jboss-service.xml Next you have to tell JBoss that your remote EJBs should use the configured UnifiedInvoker for their communication. You do this in the following file: - jboss_home/server/app_name/conf/standardjboss.xml I basically followed the instructions in the following document: http://docs.jboss.org/jbossas/unified_invoker/UnifiedInvoker_guide.html For reference, the steps I followed and the resulting configuration changes are below: First I added the UnifiedInvoker configuration to my jboss-service.xml. The full configuration is below. The timeout attribute is the one that actually times out the sockets: !-- Changes to Support the Unified Invoker: | http://docs.jboss.org/jbossas/unified_invoker/UnifiedInvoker_guide.html#d0e9 | -- | |!-- Unified invoker (based on remoting) -- |mbean code=org.jboss.invocation.unified.server.UnifiedInvoker | name=jboss:service=invoker,type=unified | !-- To turn on strict RMI exception propagation uncomment block below -- | !-- This will cause the UnifiedInvokerProxy to wrap RemoteExceptions -- | !-- within a ServerException, otherwise will throw root exception -- | !-- (not RemoteException) -- | !-- attribute name=StrictRMIExceptiontrue/attribute -- | dependsjboss:service=TransactionManager/depends | dependsjboss.remoting:service=Connector,transport=socket/depends |/mbean | |!-- The Connector is the core component of the remoting server service. -- |!-- It binds the remoting invoker (transport protocol, callback configuration, -- |!-- data marshalling, etc.) with the invocation handlers. -- |mbean code=org.jboss.remoting.transport.Connector | xmbean-dd=org/jboss/remoting/transport/Connector.xml | name=jboss.remoting:service=Connector,transport=socket | display-name=Socket transport Connector |!-- Can either just specify the InvokerLocator attribute and not the invoker element in the -- |!-- Configuration attribute, or do the full invoker configuration in the in invoker element -- |!-- of the Configuration attribute. -- | |!-- Remember that if you do use more than one param on the uri, will have to include as a CDATA, -- |!-- otherwise, parser will complain. -- |!-- attribute name=InvokerLocator![CDATA[socket://${jboss.bind.address}:4446/?datatype=invocation]]/attribute -- | | attribute name=Configuration | !-- Using the following invoker element instead of the InvokerLocator above because specific attributes needed. -- | !-- If wanted to use any of the parameters below, can just add them as parameters to the url above if wanted use the InvokerLocator attribute. -- | config | !-- Other than transport type and handler, none of these configurations are required (will just use defaults). -- | invoker transport=socket |attribute name=dataType isParam=trueinvocation/attribute |attribute name=marshaller isParam=trueorg.jboss.invocation.unified.marshall.InvocationMarshaller/attribute |attribute name=unmarshaller isParam=trueorg.jboss.invocation.unified.marshall.InvocationUnMarshaller/attribute |!-- This will be port on which the marshall loader port runs on. -- |!-- attribute name=loaderport isParam=true4447/attribute -- |!-- The following are specific to socket invoker -- |attribute name=numAcceptThreads100/attribute |attribute name=maxPoolSize2500/attribute |!-- attribute name=clientMaxPoolSize isParam=true304/attribute-- |attribute name=socketTimeout isParam=true30/attribute |!--Set the all important client side socket timeout to 5 minutes. -- |attribute name=timeout isParam=true30/attribute |attribute name=serverBindAddress${jboss.bind.address}/attribute |
[jboss-user] [EJB/JBoss] - Re: EJB 3.0 load balancing not working in a Jboss AS 5.1 clu
Also are those stateful session beans or stateless session beans? And please post relevant configuration files (jboss.xml) and any relevant code. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250527#4250527 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250527 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB 3.0 load balancing not working in a Jboss AS 5.1 clu
When you start the server nodes in a cluster, do you see any logs which show that those 2 nodes are being considered part of the cluster? Logs like, 2 members... in the cluster? Can you post the relevant console logs (not server.log) While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250292#4250292 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250292 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: TxConnectionManager and enabling trace level logging
JBoss 4.2.3.GA View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249599#4249599 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249599 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Help configure MDB threads
I am using JBOSS 5.x release and class org.jboss.annotation.ejb.PoolClass is supposed to be in jboss-annotations-ejb3.jar. I am not able to find this particular jar under my JBOSS 5.x installation. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249620#4249620 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Visualizing/Introspecing EJBs
Yes I was after the answer to the same question. We have a system monitoring tool and we know jboss is running but we want to know if a particular ejb is active. Can this be done though a unix command. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249343#4249343 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249343 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: TxConnectionManager and enabling trace level logging
Which version of JBossAS? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249560#4249560 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249560 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Help configure MDB threads
You can configure those values on individual MDBs by using the @PoolClass annotation on the MDB. See this for an example http://www.jboss.org/ejb3/docs/reference/build/reference/en/html/session-bean-config.html#d0e26 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4247726#4247726 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: java.lang.ClassCastException: com.sun.xml.messaging.saaj
hi Francesco, I have exactly the same ClassCastException problem like yours. have you solve it? would mind to share? thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4247468#4247468 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247468 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: How to list interceptors in JBOSS 5 console
For example I need information which intercetopors are connected with my session bean, also I need order of those interceptors View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246874#4246874 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246874 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5
Andrew, * Thanks for the specifics on why the handling of deployment descriptor whitespace changed. Yes, with a more-compliant application server schema, I was adding the extra whitespace - point taken. * We are all set on the reading of a read-only resource. * Tom Marrs wrote about 3 classloaders; system, current, and thread. He ruled out use of the first 2 for known reasons and then stated why you should use the later. This is what my code is doing; access the classloader through the current Thread. anonymous wrote : | You gain access to the current Thread Context ClassLoader by calling Thread.currentThread().getContextClassLoader(). ... Use the Thread Context Class Loader for the following reasons: | * On the use of the reflection API and ClassLoader, the listed restrictions state that what I wanted to do with the ClassLoader was legal anonymous wrote : | Contrary to common belief, most of the Java Reflection API can be used from EJB components. For example, loadClass() and invoke() can both be used by enterprise beans. Only certain reflection methods are forbidden. | Thanks for taking the time on this. jim View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246717#4246717 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246717 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5
I understand where your caution comes from about the ClassLoader after reading the spec, but when I read the Javadoc on getClass().getResource(), it sounds like it too is locating the ClassLoader. When I did some searching, I found that Tom Marrs (Lead Author, JBoss at Work: A Practical Guide) had the same solution as I did as late as 2006. http://www.coderanch.com/t/89900/JBoss/reading-properties-file I spent the last few days building up a simple set of test cases where I loaded classes and resources from different types of ClassLoaders both inside and outside the EJB. In my simple test case, I could not recreate the problem. I finally tracked the issue down to the deployment descriptor. The JBoss 5 parsing of the deployment descriptor elements seems to now include white-space characters into values. My class looked like the following... | @Stateless | public class TellerEJB implements TellerLocal, TellerRemote { | ... | @Resource(name=daoClass) | protected String daoClassName; | | @PostConstruct | public void init() { | log.debug(init(), daoClass= + daoClassName); | teller = new TellerImpl(); | | try { | AccountDAO dao = (AccountDAO)Thread.currentThread() |.getContextClassLoader() |.loadClass(daoClassName) |.newInstance(); | My deployment descriptor was written as follows | ... | enterprise-beans | session | ejb-nameTellerEJB/ejb-name | env-entry | env-entry-namedaoClass/env-entry-name | env-entry-typejava.lang.String/env-entry-type | env-entry-valuexxx.jpa.JPAAccountDAO | /env-entry-value | /env-entry | /session | /enterprise-beans | /ejb-jar | Note the line break after ...DAO and the line break in the original debug output. Once I removed the white-space from the deployment descriptor all worked. | enterprise-beans | session | ejb-nameTellerEJB/ejb-name | env-entry | env-entry-namedaoClass/env-entry-name | env-entry-typejava.lang.String/env-entry-type | env-entry-valuexxx.jpa.JPAAccountDAO/env-entry-value | /env-entry | /session | /enterprise-beans | I've seen this same type of problem elsewhere in the processing of deployment descriptors by JBoss 5. In one post I saw where adding export JAVA_OPTS=-Dxb.builder.useUnorderedSequence=true to the startup corrected the issue. I have not yet tried that for this issue. So, in short. I may be violating what you think is wrong with my use of Thread.currentThread().getContextClassLoader(). However the problem in porting from JBoss 4 to JBoss 5 ended up being a whitespace interpretation change of the ejb-jar.xml between the two versions. JBoss 5 is adding extra whitespace to the injected String variable. Thoughts? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246592#4246592 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5
jcstaff2 wrote : I understand where your caution comes from about the ClassLoader after reading the spec, but when I read the Javadoc on getClass().getResource(), it sounds like it too is locating the ClassLoader. The difference is in your definition of the. http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getResource(java.lang.String) Class.getResource() uses the ClassLoader which defined the Class in question. So it's: Class.getClassLoader().getResource() ...under the hood, and not: Thread.currentThread().getContextClassLoader() In theory the two could be the same. In fact, I'd say any access to any CL from application code is a no-no, as the application could change the internal mutable state of the CL itself which may lead to problems elsewhere. But the Class.getResource() case should be fine. jcstaff2 wrote : I finally tracked the issue down to the deployment descriptor. The JBoss 5 parsing of the deployment descriptor elements seems to now include white-space characters into values. | | (...snip) | | However the problem in porting from JBoss 4 to JBoss 5 ended up being a whitespace interpretation change of the ejb-jar.xml between the two versions. This is expected. http://java.sun.com/xml/ns/javaee/javaee_5.xsd javaee:env-entry-value is of type javaee:xsdStringType which extends from xsd:string. Pure String types are not trimmed. http://www.w3schools.com/Schema/schema_dtypes_string.asp jcstaff2 wrote : JBoss 5 is adding extra whitespace to the injected String variable. Looks like *you* were adding the whitespace. :) We just became a bit more compliant/strict and stopped trimming it away. S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246593#4246593 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5
jcstaff2 wrote : When I did some searching, I found that Tom Marrs (Lead Author, JBoss at Work: A Practical Guide) had the same solution as I did as late as 2006. http://www.coderanch.com/t/89900/JBoss/reading-properties-file Respectfully disagree. Tom Marrs wrote : The EJB specification forbids EJBs to use the Current Class Loader, and since the System Class Loader isn't a workable option, you're left with the Thread Context ClassLoader. It's this which I say is wrong. Sun EJB Restrictions Guide wrote : Read-only data can, however, be stored in files in a deployment JAR, and accessed with the getResource() or getResourceAsStream() methods of java.lang.Class. http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246596#4246596 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246596 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: How to list interceptors in JBOSS 5 console
Those won't be available there. Infact they won't be visible any place because those are the internals of JBoss EJB3. What kind of diagnostics are you trying to do? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246260#4246260 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246260 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5
Thank you for the reference to the specific spec requirement that explains why this is allowed to not to work. The legacy code was from a time (EJB 2.x) when dependency injection was more limited, and it may have advanced to the point that we can inject the POJO class dynamically in other ways. However... If obtaining the current classloader is illegal/non-portable, how does one read in a data file from the EJB's classpath? Is there a legal classloader we can access that will have the file Resource that can be read in as a stream? We can come up with ways to get around obtaining the classloader to dynamically load a class, but I don't currently know of a way to avoid getting the classloader for reading on streams/files. thanks, jim View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246296#4246296 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5
Hey Jim: jcstaff2 wrote : If obtaining the current classloader is illegal/non-portable, how does one read in a data file from the EJB's classpath? Is there a legal classloader we can access that will have the file Resource that can be read in as a stream? In general, use of File (and other I/O) resources is frowned upon in EJB because again you've got the issue of application code directly accessing something by bypassing the abstraction provided by the container. This means that nothing is guarding it from concurrent access, providing rollback capabilities, etc. For *non-mutable* resources, like reading in properties, you can package these inside your EJB JAR and get at them via this.getClass().getResource() in your bean implementation class. S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246306#4246306 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246306 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Overrding the existing ejb and deploy
Did you ever find a solution to this problem? I'm getting some similar error messages in my JBoss 5. Thanks! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246314#4246314 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246314 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5
Can you do some more debugging / logging? e.g. print out TCCL in 4.x vs. 5.x in that code It might just be a bug in not setting TCCL properly. Or what does the spec say about what should the TCCL be in this case? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246070#4246070 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246070 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5
alesj wrote : Or what does the spec say about what should the TCCL be in this case? EJB 3.0 Specification 21.1.2: Programming Restrictions wrote : The enterprise bean must not attempt to create a class loader; obtain the current class loader; set the context class loader; set security manager; create a new security manager; stop the JVM; or change the input, output, and error streams. In short, this is non-portable because application-level code should leave the details of the environment to the container. Why are we taking the reflection-based approach? Let's take a look at the structure of the JAR/EAR as well? S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246075#4246075 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: How to list interceptors in JBOSS 5 console
Hi, interceptors connected with EJB beans, in web or jmx console. I need this for diagnostcs View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246090#4246090 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246090 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: How to list interceptors in JBOSS 5 console
Which interceptors and which console? And why do you want to list those in the console? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4245981#4245981 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245981 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Not able to access ejb 2.0 from servlet init during the
xml did not appear properly in the previous post. bean name=topContextComparator | constructor factoryClass=org.jboss.system.deployers.LegacyDeploymentContextComparator factoryMethod=getInstance/ | property name=suffixOrder class=java.util.Map | map keyClass=java.lang.String valueClass=java.lang.Integer | entry | key.war/key | value700/value | /entry | /map | /property View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244312#4244312 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244312 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Not able to access ejb 2.0 from servlet init during the
Thank You very much Jaikiran. In the forum they were talking about changing the bootstrap file. Yes. Looks like you were right. I've switched to JBoss 5.0.1.GA, and added to conf\bootstrap\deployers.xml: Code: .war 700 --- I am currently using 5.0.1 GA and also added above lines to bootstrap deployers.xml file. Now war is getting deployed last but servlet could not find the ejb still. Do you suggest me to switch to lastest release 5.1.0 GA. I will try switching it latest release. Thanks, Ram View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244310#4244310 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244310 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Not able to access ejb 2.0 from servlet init during the
See this http://www.jboss.org/index.html?module=bbop=viewtopict=151303. And i think it's fixed in AS 5.1.0 GA (which is the latest). So try upgrading to the new server. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244265#4244265 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244265 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Not able to access ejb 2.0 from servlet init during the
Hi Jaikiran, Thanks for reply. I am using Jboss 5.0.1 and EJB 2.1. I really appreciate your help in this. Thanks, Ram View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244158#4244158 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244158 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Not able to access ejb 2.0 from servlet init during the
Which version of JBoss AS? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244077#4244077 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244077 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Not able to access ejb 2.0 from servlet init during the
Hi Jaikiran, I deployed my application on to 5.1.0.GA server. It worked really well. I appreciate your help. Thank you, Ram View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244492#4244492 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: problem with local interface lookup
Hey, What application server are you using? I've read that some application servers load their EJB module with a different class loader than the one used to load the WEB module, which might account for why this is failing. I personally use JBoss which I know for a fact will let you use local interfaces in the WEB module that refference the EJB module. You also might want to make sure you are using the right JNDI name. Most application servers, when the load the EJB, also print out into the logs what the correct local and remote JNDI names are for the bean. Sorry I couldn't be of more helpful. Mike View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244796#4244796 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: [EJB 2 in JBoss 5] Error on ClassCastException
The entire exception is : | javax.naming.NameNotFoundException: fr.monappli.modele.traitement.service._menu.delegate.MenuService not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) | at org.jnp.server.NamingServer.getObject(NamingServer.java:785) | at org.jnp.server.NamingServer.lookup(NamingServer.java:443) | at sun.reflect.GeneratedMethodAccessor318.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) | at sun.rmi.transport.Transport$1.run(Transport.java:159) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:155) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) | at java.lang.Thread.run(Thread.java:619) | at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) | at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) | at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142) | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682) | at javax.naming.InitialContext.lookup(InitialContext.java:392) | at fr.gouv.defense.sicagem.modele.traitement.service._menu.ServiceAccessor.getMenuService(ServiceAccessor.java:32) | at fr.gouv.defense.sicagem.webapp._filter.UserContext.init(UserContext.java:77) | at fr.gouv.defense.sicagem.webapp._page.ApplicationAfficheAction.projectExecute(ApplicationAfficheAction.java:126) | at fr.gouv.defense.sicagem.webapp._strutsClasseBases.ActionBase.frameworkExecute(ActionBase.java:49) | at com.airial.framework.struts.FrameWorkAction.execute(FrameWorkAction.java:40) | at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) | at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) | at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) | at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310) | at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696) | at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667) | at org.apache.jsp.logonVerifDpc_jsp._jspService(logonVerifDpc_jsp.java:113) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) | at
[jboss-user] [EJB/JBoss] - Re: [EJB 2 in JBoss 5] Error on ClassCastException
context.lookup(homeJndi) returns : $Proxy855 : fr/monappli/ejb/menu/MenuSLHome Any ideas ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243658#4243658 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243658 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: [EJB 2 in JBoss 5] Error on ClassCastException
Please post the entire exception stacktrace and the relevant code. Also do you package any JBoss specific jar files in your application? If yes, then remove them from the packaging. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4242937#4242937 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4242937 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Business Interface Pattern + Generics == EJB Spec Violat
Consider this: public interface AddressBeanBusinessInterface E extends Exception | { | ... | public void delete( final Long key ) throws E, UnknownIdDeviation; | | public interface AddressBeanRemote extends EJBObject, AddressBeanBusinessInterfaceRemoteException | { | // empty - see the business interface for the remote EJB methods | ... and public interface AnotherInterface extends AddressBeanBusinessInterfaceNullPointerException | { | // empty - see the business interface for the remote EJB methods | So there 2 interfaces which extend the AddressBeanBusinessInterface. One expects to throw a NullPointerException and the other a RemoteException. So what should the compiler replace the E in AddressBeanBusinessInterface? It doesn't. All it does is marks the method to throw an Exception (as marked by E extends Exception): public interface AddressBeanBusinessInterface E extends Exception | { | ... | public void delete( final Long key ) throws Exception, UnknownIdDeviation; | | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241797#4241797 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Interface inheritence / SessionContext.getInvokedBusines
Thanks a lot, this solves the problem, the failure was on my side. But still I do not understand this fully. It is true that the beans do not explicitly implement the default business interface, so I thought since the server says it registered that interface it would provide some kind of automatic interface / stub to that bean. Shouldn't I get an exception when trying to lookup an interface that does not really exist? Or at least, when narrowing to a particular existing interface? Anyhow, this helps me a lot, thanks again, -Rainer View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241075#4241075 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Interface inheritence / SessionContext.getInvokedBusines
ErstesBean/remote - EJB3.x Default Remote Business Interface | ErstesBean/remote-server.kap02.IErstesBeanRemote - EJB3.x Remote Business Interface | ErstesBean/remote-server.kap02.IErstesBeanIntRemote - EJB3.x Remote Business Interface | ErstesBean/local - EJB3.x Default Local Business Interface | ErstesBean/local-server.kap02.IErstesBeanIntLocal - EJB3.x Local Business Interface | ErstesBean/local-server.kap02.IErstesBeanLocal - EJB3.x Local Business Interface | Use the business interface specific JNDI name to lookup the business interface specific proxy: IErstesBean ebrL= (IErstesBean) contextL.lookup(ErstesBean/remote-server.kap02.IErstesBeanRemote); | System.out.println( Calling interface: + ebrL.getCallingInterface()); | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240944#4240944 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240944 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Interface inheritence / SessionContext.getInvokedBusines
Is there really noone who experienced such problems? Is there a forum better suited for this problem? Thanks, -Rainer View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240597#4240597 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240597 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Interface inheritence / SessionContext.getInvokedBusines
Rainer, Sorry, i forgot to look into this. I'll do it today and update this thread. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240697#4240697 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: SFSB timeout setting
This is helpful regarding this problem: http://www.jboss.org/community/wiki/JbossTimeoutSettingForSeam It states that serializability problems may be the root cause of this exception as well. But if that's true, wouldn't you get serializable/passivation exceptions in the server.log? I've seen those before when I had a Map instance variable in my SFSB (and not marked transient). View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240890#4240890 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240890 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: JBoss 5.1 regression: ArjunaJTA loses stack trace
Not sure which is the best forum to discuss this, but i guess you can ask this in the JBoss Transactions user forum http://www.jboss.org/index.html?module=bbop=viewforumf=240. And in that post, please also post the 2 different versions of stacktrace that you see - one with the additional information and one without it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4239616#4239616 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4239616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: NullPointerException restoring EJB state
Sorry, I meant to say EOFException View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4238564#4238564 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Interface inheritence / SessionContext.getInvokedBusines
Which version of JBossAS and can you post the lookup code and also the JNDI names that you see for your beans in the jmx-console? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4238102#4238102 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238102 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Interface inheritence / SessionContext.getInvokedBusines
well, actually there is some context about this. I have constructed a simplifed example for which I'll list all relevant code. Please substitute the bean name Person -- ErstesBean. The following are the interface definitions: | public interface IErstesBean | { | public String getCallingInterface(); | } | | @Local | public interface IErstesBeanLocal extends IErstesBean | { | } | | @Remote | public interface IErstesBeanRemote extends IErstesBean | { | } | | public interface IErstesBeanInt extends IErstesBean | { | public Object getLocalReference(); | public Object getIntLocalReference(); | public Object getRemoteReference(); | public Object getIntRemoteReference(); | } | | @Local | public interface IErstesBeanIntLocal extends IErstesBeanInt | { | } | | @Remote | public interface IErstesBeanIntRemote extends IErstesBeanInt | { | } | The relevant part of the bean implementation looks like the following: | @Stateful | @Local({IErstesBeanLocal.class, | IErstesBeanIntLocal.class | }) | @Remote({ IErstesBeanRemote.class, | IErstesBeanIntRemote.class | }) | public class ErstesBean implements | IErstesBeanRemote, | IErstesBeanIntRemote | { | ... | | @Resource | private SessionContext sessionContextM; | | ... | | public String getCallingInterface() | { | if ( sessionContextM == null ) | { | return null; | } | return sessionContextM.getInvokedBusinessInterface().getName(); | } | | ... | } | I see the following registration messages on the server console when deploying: | 09:42:14,286 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: | | ErstesBean/remote - EJB3.x Default Remote Business Interface | ErstesBean/remote-server.kap02.IErstesBeanRemote - EJB3.x Remote Business Interface | ErstesBean/remote-server.kap02.IErstesBeanIntRemote - EJB3.x Remote Business Interface | ErstesBean/local - EJB3.x Default Local Business Interface | ErstesBean/local-server.kap02.IErstesBeanIntLocal - EJB3.x Local Business Interface | ErstesBean/local-server.kap02.IErstesBeanLocal - EJB3.x Local Business Interface | The client code used to allocte and invoke the bean is: | Properties propsL = new Properties(); | propsL.put( Context.INITIAL_CONTEXT_FACTORY, | org.jnp.interfaces.NamingContextFactory); | propsL.put( Context.URL_PKG_PREFIXES, | org.jboss.naming:org.jnp.interfaces); | propsL.put( Context.PROVIDER_URL, | jnp://localhost:1099); | Context contextL= new InitialContext( propsL); | | Object refL= contextL.lookup(ErstesBean/remote); | //IErstesBean ebrL= (IErstesBeanRemote) PortableRemoteObject.narrow( refL, IErstesBeanRemote.class); | IErstesBeanRemote ebrL= (IErstesBeanRemote) PortableRemoteObject.narrow( refL, IErstesBeanRemote.class); | | System.out.println( Calling interface: + ebrL.getCallingInterface()); | The commented source line here is what ideally I want to do, namely associate the returned interface (stub class) the most generic data type. However I used the specific interface here in order to show what happens more clearly. When this code is executed, I encounter the following exception: | javax.ejb.EJBException: java.lang.IllegalStateException: Cannot invoke javax.ejb.SessionContext.getInvokedBusinessInterface() from outside of an EJB3 Business View - EJB 3.0 Core Specification 4.5.2; Used: server.kap02.IErstesBean | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:77) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at
[jboss-user] [EJB/JBoss] - Re: META-INF/jboss.xml is being ignored
I forgot to point out that this is JBoss 4.2.3 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237616#4237616 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
Hi, I tried to build the bean example CaculatorBean, but there is no build.xml in the directory. twp1:stateless # pwd /usr/java-source/ejb3-tutorial/source/stateless/src/org/jboss/tutorial/stateless twp1:stateless # ls ./ ../ bean/ client/ twp1:stateless # ant Buildfile: build.xml does not exist! Build failed twp1:stateless # The tutorial page doesn't say anything about how to setup the build process. http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html_single/index.html#EJB3_TUTORIAL_HOME It only says: Make sure your JBossAS-5.x is running $ ant $ ant run Any more instruction? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237173#4237173 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237173 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
anonymous wrote : /usr/java-source/ejb3-tutorial/source/stateless/src/org/jboss/tutorial/stateless You are in the wrong folder. You should be in: /usr/java-source/ejb3-tutorial/source/stateless/ anonymous wrote : The tutorial page doesn't say anything about how to setup the build process It does have a Building and Running section http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/Stateless_Beans.html which says: anonymous wrote : From the command prompt, move to the stateless folder under the EJB3_TUTORIAL_HOME ... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237187#4237187 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237187 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
jaikiran wrote : anonymous wrote : /usr/java-source/ejb3-tutorial/source/stateless/src/org/jboss/tutorial/stateless | | You are in the wrong folder. You should be in: | | /usr/java-source/ejb3-tutorial/source/stateless/ | | | anonymous wrote : The tutorial page doesn't say anything about how to setup the build process | | It does have a Building and Running section http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/Stateless_Beans.html which says: | | anonymous wrote : From the command prompt, move to the stateless folder under the EJB3_TUTORIAL_HOME ... OK, after set the tutorial home directory , moved to the stateless folder, and type ant, I got the following error: twp1:ejb3-tutorial # cd source/stateless ./ ../ build.xml jndi.properties log4j.xml pom.xml src/ twp1:stateless # ant Buildfile: build.xml BUILD FAILED /usr/java-source/ejb3-tutorial/source/stateless/build.xml:33: /usr/java-source/ejb3-tutorial/source/stateless/${env.JBOSS_HOME}/client not found. Total time: 0 seconds twp1:stateless # Here is where I executed the ant command: twp1:stateless # pwd /usr/java-source/ejb3-tutorial/source/stateless twp1:stateless # Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237189#4237189 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237189 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
anonymous wrote : BUILD FAILED | /usr/java-source/ejb3-tutorial/source/stateless/build.xml:33: /usr/java-source/ejb3-tutorial/source/stateless/${env.JBOSS_HOME}/client not found. See this http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/JBossAS5.html View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237211#4237211 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
jaikiran wrote : anonymous wrote : BUILD FAILED | | /usr/java-source/ejb3-tutorial/source/stateless/build.xml:33: /usr/java-source/ejb3-tutorial/source/stateless/${env.JBOSS_HOME}/client not found. | | See this http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/JBossAS5.html Thanks for the help. I have it compiled with ant, but failed when it is trying to do the binding: twp1:stateless # ant Buildfile: build.xml prepare: [mkdir] Created dir: /usr/java-source/ejb3-tutorial/source/stateless/build [mkdir] Created dir: /usr/java-source/ejb3-tutorial/source/stateless/build/classes compile: [javac] Compiling 5 source files to /usr/java-source/ejb3-tutorial/source/stateless/build/classes ejbjar: [jar] Building jar: /usr/java-source/ejb3-tutorial/source/stateless/build/jboss-ejb3-tutorial-stateless.jar [copy] Copying 1 file to /usr/local/jboss5/server/default/deploy BUILD SUCCESSFUL Total time: 3 seconds twp1:stateless # ant run Buildfile: build.xml prepare: compile: ejbjar: run: [java] Exception in thread main javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost and discovery failed with error: javax.naming.Communication Exception: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1 099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]] [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1727) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:680) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673) [java] at javax.naming.InitialContext.lookup(InitialContext.java:392) [java] at org.jboss.tutorial.stateless.client.Client.main(Client.java:34) [java] Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server loc alhost:1099 [Root exception is java.net.ConnectException: Connection refused]] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:311) [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1698) [java] ... 4 more [java] Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:281) [java] ... 5 more [java] Caused by: java.net.ConnectException: Connection refused [java] at java.net.PlainSocketImpl.socketConnect(Native Method) [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) [java] at java.net.Socket.connect(Socket.java:519) [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97) [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82) [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:277) [java] ... 5 more [java] Java Result: 1 BUILD SUCCESSFUL Total time: 6 seconds JBOSS is with version 5.0 GA and listening on port 8080. Thanks heaps View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237234#4237234 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
I found out a problem. Initially I started Jboss5.0 GA with the following command /usr/local/jboss5/bin/run.sh -b 192.168.1.246 After I restart jboss with /usr/local/jboss5/bin/run.sh (without any argument), it listen to localhost 1099. Then the command ant run was executed successfully. May I ask how to instruct ant to run on 192.168.1.246 instead localhost? or setup JBOSS to listening on 192.168.1.246 AND localhost? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237273#4237273 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
Make sure your JBossAS-5.x is running View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237237#4237237 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237237 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: ACC + Web Start
+1 I have the same question. It is usefull to leave JNLP and signing problem to container. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237417#4237417 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237417 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
Here http://www.jboss.org/ejb3/docs/ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4236902#4236902 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4236902 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
jaikiran wrote : Here http://www.jboss.org/ejb3/docs/ Hi, thanks for the link. Is there a similar tutorial but in eclipse base JBOSS EJB3? I have my JBOSS 5.0 installed in FreeBSD and I want to start a JBoss EJB project from Windows Eclipse 3.4.2. Thus, I may need to IMPORT some files from JBOSS in FreeBSD, but I am not sure what should I do when I come to that import stage. Thanks Sam View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4236911#4236911 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4236911 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Error readind from a MDB (v 2.1) on a remote Topic
Please post the entire exception stacktrace. While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4236991#4236991 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4236991 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
Hi, I take an easy step. I tried to following the EJB3.0 tutorial here: [url] http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html_single/index.html#EJB3_TUTORIAL_HOME [/url] but I couldn't find source for org.jboss.tutorial in my JBOSS 5.0 installation directory. Can anyone tell me where can I download org.jboss.tutorial (with svn co to check)? thanks heaps. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237015#4237015 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237015 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB tutorial
samwan808 wrote : | but I couldn't find source for org.jboss.tutorial in my JBOSS 5.0 installation directory. | | Can anyone tell me where can I download org.jboss.tutorial (with svn co to check)? | | | The source is available at the same location that i pointed earlier http://www.jboss.org/ejb3/docs/. There's a Tutorial (Source) row in that table View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4237045#4237045 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237045 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: using XA (distributed) transactions with local DB and we
Should I simply catch SoapException and any RuntimeException and the EJB container will automatically rollback the global/distributed tx? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4236522#4236522 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4236522 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: dependence of libraries - the wide scope of EAR
Your ear tree doesn't look right (you should use netbeans...) Here one : zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/META-INF zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/META-INF/application.xml zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/META-INF/jboss-app.xml zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/META-INF/MANIFEST.MF zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/jai_codec.jar --lib ejb and war depend on (if not on class path, e.i. in a jboss lib dir already) zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/jai_core.jar zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/JaiExt.jar zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/JBoss4.dpf zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/jstl.jar zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/lucene-analyzers-2.3.2.jar zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/lucene-core-2.3.2.jar zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/mlibwrapper_jai.jar zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/VostokStringUtilLib.jar zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-ejb.jar --- jar with ejb zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-ejb.jar/META-INF zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-ejb.jar/META-INF/jboss.xml zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-ejb.jar/META-INF/MANIFEST.MF zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-ejb.jar/webtv --- tree of classes... (etc) zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-war.war --- war archive ! zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-war.war/META-INF zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-war.war/META-INF/MANIFEST.MF zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-war.war/WEB-INF zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-war.war/WEB-INF/web.xml zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-war.war/WEB-INF/portlet.xml (jsp, xml for jboss portal , etc...) zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/WebTv-war.war/index.jsp -- everything that's public inside this domain content of application.xml : | ?xml version=1.0 encoding=UTF-8? | application version=1.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd; | display-nameWebTv/display-name | module | ejbWebTv-ejb.jar/ejb | /module | module | web | web-uriWebTv-war.war/web-uri | context-root/WebTv-war/context-root | /web | /module | /application | content of jboss-app.xml : | ?xml version=1.0 encoding=UTF-8? | jboss-app | loader-repository | webtv:archive=WebTv.ear | /loader-repository | /jboss-app | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4235691#4235691 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4235691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Accessing JBoss service from EJB
vlotarev wrote : Dear guru! | | Coudl you please tell me how is it possible to access JBoss service (POJO marked with @Service and @Local/@Remote) from EJB? Is it possible just to inject such bean? What will be a JNDI name of a @Service POJO? | | Thanks in advance, | Vadim from an ejb, if the service has @Service @Remote | @Local, simply use @EJB : | @Service(name = InitMarchePublicJMX, objectName = org.portal.marchep.jmx.initialization:name=InitMarchePublicJMX,type=ManagementInterface) | @Management(InitMarchePublicJMXManagement.class) | @Local(InitMarchePublicJMXLocal.class) | public class InitMarchePublicJMX implements InitMarchePublicJMXManagement, InitMarchePublicJMXLocal { | | } | | in the ejb : | @EJB | InitMarchePublicJMXLocal jmxinstance; | | if the service is a jmx (@management) (like the one of the code over) : | MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); | InitMarchePublicJMXManagement bean = () MBeanProxy.get(InitMarchePublicJMXManagement.class, | new OjectName( | org.portal.marchep.jmx.initialization:name=InitMarchePublicJMX,type=ManagementInterface), | mbeanServer); | and last, you can go with : | MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); | ObjectName mbeanName = new ObjectName(Config.FILTRELINGUISTIQUEJMX); | String str = (String) mbeanServer.invoke(mbeanName, FiltrerList, new Object[]{str, true}, new String[]{java.lang.String, boolean}); | What's really interesting with this one is you do not need dependencies, though you should stick with default type. A+ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4235698#4235698 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4235698 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: set TransactionTimeout during Runtime
Have you considered breaking up your EJB into two EJBs joined via a JMS queue? Basically have the first EJB generate the messages for the web service, and as it generates say 100 web service requests, it tosses those requests onto a queue instead of making those requests itself. Then have another EJB (MDB) consuming off of that queue and this EJB can have its own custom timeout based on when it should timeout on 100 web service requests. This lets your first EJB reduce its work load to beat the timeout, and then the other EJB that is doing the web service requests will have its own timeout. Not only that, but since there is the second EJB doing the web requests, you can allow it do run those in parallel and get all your work done much faster and have it broken up with reasonable transaction timeouts. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4234142#4234142 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4234142 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: MDB calling a session bean, session bean not getting reu
I have this problem with ActiveMQ and had been having pretty good luck with StrictMaxPool, but in doing some testing with ThreadLocalPool, I learned that my problem resolves back to the JCA thread pool. Basically as long as I am keeping the server completely busy I do not leak Session Beans, but when the server goes idle the JCA threads are deallocated, but the associated Stateless Beans are not. So when the server gets busy again all new instances of my beans are created. I am now working around this by setting MinimumPoolSize =MaximumPoolSize in jbossjca-service.xml. For my application I really sorta like this configuration anyway. So for me the only question is how do we get deallocations when threads go away? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4234204#4234204 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4234204 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB3 Timer and AS restart
Anyone??? JBoss team View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4234231#4234231 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4234231 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: set TransactionTimeout during Runtime
Hey mclu, sorry, but I have no solution. I raised the Transaction Timeout for the EJB Method sending the messages and accept that sometimes the method will be aborted because of a timeout. In order to avoid the rollback of the successfuly sended messages I use an EJB Method to send one single message with the transaction attribute requieresNew. This Method is called from the method wich sends all messages. So the abort of the outer method will have no effect on the messges already sent. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4233782#4233782 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4233782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Too many open files exception JBOSS 4.2
What was the solution to this? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4233905#4233905 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4233905 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Serializable no remote classloading
Hello there, I'm running JBoss 4.2.3 GA default server (no mods) and have a EJB 2.1 bean deployed in it. Have created a stand-alone remote client to access the bean. The client tries to do exactly the same as discussed in this post, that is, it only depends the jar file containing the bean interfaces (plus jbossall-client.jar of course), and it expects to be able to dynamically load the implementation classes from the server. This worked on jboss 4.0.4. However, to get it working on 4.2.3 I had to add | invoker-bindings | invoker | invoker-proxy-binding-namestateless-rmi-invoker/invoker-proxy-binding-name |jndi-nameDummySessionBean/jndi-name | /invoker | /invoker-bindings | to jboss.xml If I don't, I have no problem at all accessing the home interface, nor at executing any methods from it, but as soon as the client has to load one of the implementation classes from the server it throws a ClassNotFoundException | java.lang.reflect.UndeclaredThrowableException | at $Proxy1.makeKnife(Unknown Source) | at com.sysmech.ijamclient.IjamClient.execute(IjamClient.java:75) | at com.sysmech.ijamclient.Main.main(Main.java:59) | Caused by: java.lang.ClassNotFoundException: com.dummy.KnifeImpl | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) | at java.lang.Class.forName0(Native Method) | at java.lang.Class.forName(Class.java:242) | at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585) | at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:109) | at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) | at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:91) | at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:196) | at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365) | at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197) | at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61) | at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70) | at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112) | at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) | The bean method the client is trying to execute looks like: |public Knife makeKnife() |{ | return new KnifeImpl(); |} | Being Knife the interface that is available to both the server and the client, and KnifeImpl the implementation class only available to the server. In post dated on the Sat Jan 12, 2008 12:12 PM by newtetris, it was confirmed the problem described in this post did not show for EJB 2. Could anyone explain how to achieve that without having to change the invoker in jboss.xml? Cheers, Enrique. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4233934#4233934 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4233934 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: dependence of libraries - the wide scope of EAR
Someone went through this problem? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4234018#4234018 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4234018 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?
Hi klester, I have the same issue here. Did you find out the solution? Thanks! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4233713#4233713 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4233713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: set TransactionTimeout during Runtime
Have you solved it? I have a similar issue but I don't want to increase the timeout for the 97% mainstream handling like you Greets View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4233281#4233281 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4233281 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Are these warnings on startup anything to be concerned w
jaikiran wrote : From what i know, these messages can be ignored. Carlo (from EJB3 dev team) had once mentioned in the EJB3 forum and in the JIRA that : | | anonymous wrote : For a bean developer this warning can be safely ignored. I really hope that you (JBoss team) are going to improve logging in next release of JBossAS5, because it's full of mess. Printing useless wanrning messages is like telling us to ignore EVERY warning message (also the useful ones). View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4233225#4233225 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4233225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: ejbTimeout executing on Server Restart. EJB Not deployed
See this similar problem, I believe I can help you. http://www.jboss.org/index.html?module=bbop=viewtopict=155568 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4233449#4233449 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4233449 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Stateless Session Bean pool MaximumSize with strictMaxim
With StrictMaxPool class and maxSize 1 it blocks all the EJB calls and only allow one call. Is there a way to instance only one Object and not blocking? Like SingleTon bean. I am chasing a problem where too many EJB stateless bean are created. When I configure only one EJB call at a time which make system suffer for throughput. I want to create only one instance but the call shouldn't be blocked. Multiple threads should be able to access the ejb stateless pool. Let me know what are my options. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4232062#4232062 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4232062 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: application.xml + dependency between war and EJB
thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231750#4231750 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Remote client calls problem after migration to JBoss AS
Yes, the new jbossall-client.jar with the references only. I have a high inhibition threshold to post in this forum, so I check things like Class-Path several times ;-) I found the problem: I've included my ejb-jar into my small test client to make available the EJB interfaces. Eclipse adds the ejb-jar dependencies to the Class-Path: the JBoss server libs. Seems to me, that server classes have overwritten the client classes. Everything works fine, if I include the remote interfaces and client jars, only. Stupid fault, sorry! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231473#4231473 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: application.xml + dependency between war and EJB
jboss-4.2.3.GA View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231499#4231499 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: application.xml + dependency between war and EJB
Create a application.xml with the correct order of modules. So in your case, list the WAR first and then the EJB jar. Then create a jboss-app.xml (if you don't already have one) and add the following to it: module-orderstrict/module-order Place the jboss-app.xml in the META-INF of the EAR. This will ensure that the order in which the modules are listed in application.xml will be strictly followed. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231508#4231508 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231508 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: application.xml + dependency between war and EJB
Which version of JBossAS do you use? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231456#4231456 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231456 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Remote client calls problem after migration to JBoss AS
Are you sure you are pointing to the same jbossall-client.jar that is available on the AS5 server? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231457#4231457 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB deploy before queue is ready
The same problem was on Weblogic 8. I'm courius of proper solution. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231254#4231254 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231254 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Migration issue
sorry for the above clumsy post. The problem being after the migration frm 4.2.2 to 5.0.1 i have the following issue | 2009-05-14 14:14:02,546 INFO [main] org.jboss.web.WebService | Using RMI server codebase: http://SIVA-LT:8083/ | | 2009-05-14 14:14:02,609 DEBUG [main] org.jnp.server.NamingBeanImpl | Using NamingServer: org.jnp.server.namingser...@5f634c | | 2009-05-14 14:14:02,609 DEBUG [main] org.jnp.server.NamingBeanImpl | Installed global NamingServer: org.jnp.server.namingser...@5f634c | | 2009-05-14 14:14:02,625 DEBUG [main] org.jnp.server.NamingBeanImpl | InitialContext Environment: | | 2009-05-14 14:14:02,625 DEBUG [main] org.jnp.server.NamingBeanImpl | key=java.naming.factory.initial, value(java.lang.String)=org.jnp.interfaces.NamingContextFactory | | 2009-05-14 14:14:02,625 DEBUG [main] org.jnp.server.NamingBeanImpl | key=java.naming.factory.url.pkgs, value(java.lang.String)=org.jboss.naming:org.jnp.interfaces | | 2009-05-14 14:14:09,796 INFO [main] org.jboss.wsf.stack.jbws.NativeServerConfig | JBoss Web Services - Stack Native Core | | 2009-05-14 14:14:09,796 INFO [main] org.jboss.wsf.stack.jbws.NativeServerConfig | 3.0.4.SP1 | | 2009-05-14 14:14:28,625 WARN [main] org.jboss.deployment.MappedReferenceMetaDataResolverDeployer | Unresolved references exist in JBossMetaData:[client.jar#ServiceAlarmExpressionEditorBean:AnnotatedEJBReferenceMetaData{name=SecuritySessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SecuritySessionLocal}, client.jar#ServiceAlarmExpressionEditorBean:AnnotatedEJBReferenceMetaData{name=ServiceSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.ServiceSessionLocal}, client.jar#EditUserBean:AnnotatedEJBReferenceMetaData{name=SecuritySessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SecuritySessionLocal}, client.jar#EditUserBean:AnnotatedEJBReferenceMetaData{name=ServiceSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,re! solved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.ServiceSessionLocal}, client.jar#AlarmSuppressionPolicyTableBean:AnnotatedEJBReferenceMetaData{name=FaultSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.FaultSessionLocal}, client.jar#NtpMonitorEditBean:AnnotatedEJBReferenceMetaData{name=SystemSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SystemSessionLocal}, client.jar#NtpMonitorEditBean:AnnotatedEJBReferenceMetaData{name=MonitorSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.MonitorSessionLocal}, client.jar#SecurityLogBean:AnnotatedEJBReferenceMetaData{name=SecuritySessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=f! alse,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=inter face centina.sa.interfaces.nb.SecuritySessionLocal}, client.jar#HttpsMonitorEditBean:AnnotatedEJBReferenceMetaData{name=SystemSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SystemSessionLocal}, client.jar#HttpsMonitorEditBean:AnnotatedEJBReferenceMetaData{name=MonitorSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.MonitorSessionLocal}, client.jar#DbBackupAction:AnnotatedEJBReferenceMetaData{name=SystemSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SystemSessionLocal}, client.jar#TopologyLocusBean:AnnotatedEJBReferenceMetaData{name=TopologySessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null! ,beanInterface=interface centina.sa.interfaces.nb.TopologySessionLocal}, client.jar#WorkFlowsBean:AnnotatedEJBReferenceMetaData{name=WorkflowSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.WorkflowSessionLocal}, client.jar#WorkFlowTicketActionBean:AnnotatedEJBReferenceMetaData{name=WorkflowSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.WorkflowSessionLocal},
[jboss-user] [EJB/JBoss] - Re: EJB deploy before queue is ready
anonymous wrote : From what I can tell, it seems to be an issue of timing, it's deploying the EJBs and creating the queues at the same time. Is there any way to tell the EJBs to wait for the queues - other than putting some dependency on the EJBDeployer itself? For instance, any way in the ejb-jar.xml to tell the ejbs to wait for the queue to be created before trying to be deployed? You can do that through jboss.xml. Here's an example: | enterprise-beans | session | ejb-nameMyEJB/ejb-name | dependsjboss.mq.destination:name=DLQ,service=Queue/depends | ... | /session | ... |/enterprise-beans The EJB then will deploy after the DLQ queue is deployed. You will have to check the jmx-console to find the correct MBean service name for the queue. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231277#4231277 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231277 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB3 Classloader leaks?
Which version of JBoss do you use? And can you please post the JNDI tree output that shows the binding even after the bean is undeployed? And undeployment logs would also be helpful. While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4231008#4231008 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231008 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Embedded EJB3 and JNDI lookups
I found out after debugging that there are different projects like EJB 3.0 and Embedded.The embedded is pretty match dead.I have configured the ejb 3.0 embedded and works like a charm.I have also a fix in the EJB3StandaloneBootstrap.java to be more flexible in the way you define configuration files.Hope they will resurrect sometime soon the embedded jboss project.!! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4230389#4230389 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4230389 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Embedded EJB3 and JNDI lookups
dir holme, since i had alot of trouble can you please provide a bit more insight about the setup of you project in order to use the Embedded JBoss.I had no luck until nowand from an official answer i got...that the project is very much dead... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229703#4229703 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: JBossALL client jar
See this http://www.jboss.org/index.html?module=bbop=viewtopict=154714#4228110 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229499#4229499 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: xercesImpl conflict: How to isolate an EAR deployment
anonymous wrote : Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration | I haven't looked at the contents of the xercesImpl.jar (yet). But most of the times, its not just that single jar that needed in the classloader scoping. You will have to place the other jars which the xercesImpl.jar depends on, too in the EAR/lib folder. I don't have the exact list of required jars right now. But most of them are jars which contain the xml parsing classes. Give it a try by including the other dependent jars that you know. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229500#4229500 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229500 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: xercesImpl conflict: How to isolate an EAR deployment
jaikiran: Very good point and a big mistake from me... Although it hasn't worked :/ . The package of Xerces-J includes the following JARs: | resolver.jar | serializer.jar | xercesImpl.jar | xml-apis.jar | Before testing your idea, I thought that the lack of dependency libraries would return an exception of type NoClassDefFound. Or maybe no errors even, since there wasn't any file in execution (it was just the deploying phase). However, after reading your message twice, I think I got you and realized that maybe JBoss was combining the use of my version of xercesImpl.jar with non-matching versions of the rest of JARs. Unfortunately, I've added them too and I still get that error. Something which is even more odd: I've decided to remove that JARs and use exactly the sames names and versions which are included in JBoss, in lib/endorsed. Indeed, I've just copied and pasted them in my lib folder. And guess what? The same error occurs!!! So this clarifies that it's not a matter of versions... By the way, the files are: | serializer.jar | xalan.jar | xercesImpl.jar | I've also tried to change the name of lib and modify the META-INF/MANIFEST.MF to point to the renamed folder (liv in this case). But it seems not to work: | Manifest-Version: 1.0 | Class-Path: liv/serializer.jar liv/xalan.jar liv/xercesImpl.jar liv/mylib.jar | | | To check if it had worked, I've added a personal library (mylib.jar) to use this in a JSP file. No errors returned were in the deployment, but the JSP failed because it didn't find mylib.jar. After googling a little more I've seen that some servers, including JBoss, were already supporting the tag inside of a tag , in the application.xml file: | module | javaliv/serializer.jar/java | /module | module | javaliv/xalan.jar/java | /module | module | javaliv/xercesImpl.jar/java | /module | The libraries have been loaded properly, but the deployment error came back. So, in other words, it doesn't matter if you just put xercesImpl.jar in the default directory (lib) or you use an unofficial one and refer to it in application.xml. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229563#4229563 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: xercesImpl conflict: How to isolate an EAR deployment
By the way, the forum seems to have ate the tags of one of my last comments, he he he. I meant were already supporting the tag 'java' inside of a tag 'module'. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229565#4229565 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229565 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: xercesImpl conflict: How to isolate an EAR deployment
Something else... I've also tried the tag *library-directory* in application.xml to specify a different name than lib, but it seems not to be recognized by this version of JBoss: | library-directorylib/library-directory | I'm gonna look for more information on the Internet and, if I'm not lucky, I guess I'll just use View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229567#4229567 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229567 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: xercesImpl conflict: How to isolate an EAR deployment
More information... I've checked this line in deploy/jboss-web.deployer/META-INF/jboss-service.xml: | attribute name=UseJBossWebLoaderfalse/attribute | I know, it has nothing to do with the deployment of EAR files, but has made me discover why in another past project I could use xercesImpl.jar inside of a web application without conflicts: Because it's using an independent class loader (the one from Tomcat) instead of the JBoss one. So the question now is... Is it impossible to use any library which is already used by JBoss for itself? Will they be in conflict forever? If so, then I guess I'll have to get used to employ the versions used by every version of JBoss and get resigned to it ;) . View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229572#4229572 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229572 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: xercesImpl conflict: How to isolate an EAR deployment
Well, well... Sorry for so many messages, but since I can't edit mine, I've to add one after another and so on :P . I've found a solution to use the last version of that JARs and without JBoss complaining because of it. First of all, I've realized that the 3 JARs included in lib/endorsed are just the content of the Xalan-J package from Apache (which includes xercesImpl.jar of course). I already got in my local repository the last version of Xalan. So I've just made a backup of endorsed and made a new one with the content of the last Xalan. I've turned on JBoss, and everything has worked fine. Another workaround which I've discovered is to change the value of the JBOSS_ENDORSED_DIRS environment variable in several of the bin/*.sh or bin/*.bat files and make it point to a personal directory which include the most recent JARs of Xalan-J. The only problem of doing all this is that you won't be able to use different versions of Xerces at the same time. Fortunately I've tried to duplicate in my project more JARs used by JBoss and they don't cause any problem. Even different versions of xalan.jar or serializer.jar can be used isolated in every project. So, summarizing a lot, this problem seems to be exclusive of xercesImpl.jar. And, sincerely, I doubt that I can't live with only 1 version of it. I'll use a common. If you have any alternative idea about this, let me know ;) . View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229575#4229575 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229575 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: xercesImpl conflict: How to isolate an EAR deployment
#2 is what i do for my apps. Can you post your configs? And also the entire exception stacktrace? Also list the jars that you are packaging and the place where they are within the EAR. While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4228909#4228909 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4228909 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: xercesImpl conflict: How to isolate an EAR deployment
jaikiran: First of all, thank you for your quick answer. It's nice to have such help. I've tested all this using a very simple EAR file whose structure is as follows: | trax.ear | | | |- lib | | |- xercesImpl.jar | | | |- META-INF | | |- application.xml | | |- jboss-app.xml | | |- MANIFEST.MF | | | |- trax-ejb.jar | |- META-INF | |- jboss.xml | |-MANIFEST.MF | The EAR package can be downloaded directly from http://www.negora.com/file/trax.ear . This is the trace of the exception returned by JBoss: | 21:26:01,984 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=trax-ejb.jar | org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser | at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) | at org.jboss.ejb3.metamodel.JBossDDObjectFactory.parse(JBossDDObjectFactory.java:76) | at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.init(Ejb3HandlerFactory.java:45) | at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:83) | at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:383) | | at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:327) | at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77) | at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | | 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:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.create(Unknown Source) | at org.jboss.system.ServiceController.create(ServiceController.java:330) | at org.jboss.system.ServiceController.create(ServiceController.java:273) | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) | 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:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy33.create(Unknown Source) | at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:492) | 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:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97) | at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238) | at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:76) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at
[jboss-user] [EJB/JBoss] - Re: MDB calling a session bean, session bean not getting reu
I am coming across this problem in EJB 2. Any idea how to fix this issue with EJB 2 on Jboss 4.2.2 GA? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4228458#4228458 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4228458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Help with Transaction Timeouts on Container Manager Tran
1) yes 2) It's the default setting for connections outside a managed tx, per the JDBC spec 3) no 4) You can't, the AS connection management code needs to be fixed fixed so it invalidates the connection. https://jira.jboss.org/jira/browse/JBAS-5080 5) You're crazy, but you can use a CheckedAction if you really want to http://www.jboss.org/index.html?module=bbop=viewtopict=142195postdays=0postorder=ascstart=10 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4227833#4227833 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4227833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user