[JBoss AOP] - Interceptor invoked in context of Servlet but not JSP
by alen_ribic
I have an Interceptor that intercepts the Hibernate's LazyInitializationException. I also have Load Time Weaving turned on. This interceptor works well when called from within the context of the Web Application Servlet. (By well I mean the LazyInitializationException does get thrown and my Interceptor handles it.)
However, from Servlet to JSP context, my interceptor does not get invoked.
My JSP file has a simple call like this to an detached entity:
<td>${actionBean.user.department.users}</td>
The .users part throws the LazyInitializationException and should have been cough by my interceptor. The interceptor debug log doesn't run at all so I know the interceptor is not being called.
Same example with detached entity but in my Servlet that actually works:
| User user = getUserServiceRemote().getUser(getUserId());
| log.debug("Users: " + user.getDepartment().getUsers());
|
In the above, the .getUsers() part throws the LazyInitializationException and does get cough and handled by my interceptor.
Why does the JSP version not get intercepted?
Only thing I can think of is that the JSP version actually calls the Department.users attribute directly and not the getter. My pointcut is set on the getters only and not fields(attributes).
Thanks in advance.
-Al
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231565#4231565
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231565
17 years, 2 months
[EJB 3.0] - Re: failed to lazily initialize a collection of role:
by negora
bcowdery: First of all excuse my delay to answer you, but I thought that I had already done it. I'm sorry for that ;) .
Your explanation is very interesting to me. I'm using Stateless Session Beans in a very "little" environment (compared to a clustered one) so many of the concepts which you mentioned still are a little unfamiliar to me (I'm a rookie yet :P ). However, I'm gonna save a copy of this message for future reference. I'm sure that it will be really useful.
The first part of the explanation has solved all my doubts. Basically I'll try to avoid to use that kind of "lazy" operations out of the method which I use to retrieve the desired entity. Indeed I'm already applying that methodology and it's working very well :) .
Again, thank you very much for spending your time in helping me ;) .
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231555#4231555
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231555
17 years, 2 months
[JBossWS] - Getting ClassCast Exception in case of malformed webservice
by gandulf.k
Hi, i'm using jbowss ws native with validation turned on to ensure the requests and responses are valid. In case of a xml-valid document the validation is working fine and I'm getting validation errors from the validator. But if i'm sending back a totally corrupt xml message, missing closing tags, etc. then i'm getting the following exception which is not very intuitive:
| Caused by: javax.xml.ws.WebServiceException: java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl cannot be cast to org.jboss.ws.core.soap.SOAPElementI
| mpl
| at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
| at $Proxy311.bookOrders(Unknown Source)
| at com.skidata.dta.server.co.v3_0.classic.impl.BookOrdersHelper.invoke(BookOrdersHelper.java:46)
| ... 12 more
| Caused by: java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl cannot be cast to org.jboss.ws.core.soap.SOAPElementImpl
| at org.jboss.ws.core.CommonSOAPBinding.getParameterFromMessage(CommonSOAPBinding.java:894)
| at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:634)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
| ... 16 more
|
I digged into the code a little bit and found out that the actual XML parser exception which i'd like to get is ignored because the SOAPMessageUnMarshallerHTTP is creating a MessageFactory with ignoreParseErrors = true. (line 82 in 3.1.1 source)
| MimeHeaders mimeHeaders = getMimeHeaders(metadata);
| soapMsg = getMessageFactory().createMessage(mimeHeaders, inputStream, true);
|
Which catches the Parse Excpetion and simply returns null in case of a parse error.
Is there another way than changing the source code to change this behaviour, because i'd like to use the original distribution and not apatched one which will be a mess to update later...
thanks gandulf
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231537#4231537
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231537
17 years, 2 months
[JBossWS] - [ERROR] Invalid header
by smartz
I am trying to consume a WSDL using wsconsume from JBossWS-3.1.2.GA, but I am unable to do so, if a wsdl:message/wsdl:part node defines a "type" instead of an "element".
The error I get is:
[wsconsume] Command invoked: org.jboss.wsf.spi.tools.cmd.WSConsume -k -o generated\classes -s generated\src -v wsdl.wsdl
| [wsconsume] parsing WSDL...
| [wsconsume] [ERROR] Invalid header "SoapHeader" in operation Operation: part must specify a "element" attribute
| [wsconsume] line 40 of file:/wsdl.wsdl
Please find the WSDL below. Please note it is a perfectly legal WSDL as per W3C http://www.w3.org/TR/wsdl#_message, and relative XSD, and that other JAX-WS implementations (CXF) consume the WSDL correctly.
<?xml version="1.0" encoding="UTF-8"?>
| <definitions name="wsdl" targetNamespace="http://localhost/service/"
| xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://localhost/service/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
| <types>
| <schema xmlns="http://www.w3.org/2001/XMLSchema"
| targetNamespace="http://localhost/service/">
| <element name="OperationRequest">
| <complexType>
| <sequence>
| <element name="request" type="string"></element>
| </sequence>
| </complexType>
| </element>
| <element name="OperationResponse">
| <complexType>
| <sequence>
| <element name="response" type="string"></element>
| </sequence>
| </complexType>
| </element>
| <element name="SoapHeader">
| <complexType>
| <sequence>
| <element name="transactionID" type="string" />
| </sequence>
| </complexType>
| </element>
| </schema>
| </types>
|
| <message name="OperationRequest">
| <part name="parameters" element="tns:OperationRequest"></part>
| </message>
| <message name="OperationResponse">
| <part name="parameters" element="tns:OperationResponse"></part>
| </message>
| <message name="SoapHeader">
| <part name="SoapHeader" type="tns:SoapHeader" />
| </message>
|
| <portType name="ServicePort">
| <operation name="Operation">
| <input name="operationRequest" message="tns:OperationRequest" />
| <output name="operationResponse" message="tns:OperationResponse" />
| </operation>
| </portType>
|
| <binding name="Binding" type="tns:ServicePort">
| <soap:binding style="document"
| transport="http://schemas.xmlsoap.org/soap/http" />
| <operation name="Operation">
| <soap:operation soapAction="http://localhost/service/Operation" />
| <input name="operationRequest">
| <soap:body use="literal" />
| <soap:header message="tns:SoapHeader" part="SoapHeader"
| use="literal" />
| </input>
| <output name="operationResponse">
| <soap:body use="literal" />
| <soap:header message="tns:SoapHeader" part="SoapHeader"
| use="literal" />
| </output>
| </operation>
| </binding>
|
| <service name="Service">
| <port name="Port" binding="tns:Binding">
| <soap:address location="http://localhost/service" />
| </port>
| </service>
|
| </definitions>
Is this a bug? Shall I open a JIRA for JBWS?
Thanks in advance for any advice, and kind regards.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231536#4231536
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231536
17 years, 2 months
[JBossWS] - Re: Help! Call Web service error!
by lixun
Thank you Peter!
Follow your instruction, I add -verbose:class to JAVA_OPTS to run.bat, when jboss starts, I get a long class load list,
In this list, I find these classes either loaded from jboss_home or java_home, and not know whick one is the stray JAR file.
With no solution, I copy the whole jboss directory to other windows platform, On new windows platform, I call web service successfully!
But On first windows platform, exception still occurs.
My two windows platform have similar Enviroment Setting, and I still in doubt what's the root cause of the exception.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231535#4231535
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231535
17 years, 2 months
[EJB/JBoss] - Suggestion for transaction configuration on stateful session
by vettori
Hi,
I'm using jboss 4.2.3. I use a stateful session bean to perform a long and complex operation on the entities that can require a lot of database accesses and other operations for each entity.
The stateful session bean has a few methods to setup the operation: one is to select the set of entities to process, one is to set the number of "batches" and one to set the "batch" size.
Then there's a method that when called performs the operation on a subset of the specified size of the selected entities. This method uses flush and clear method of the entity manager to flush changes to disk. This method is called from the client once for each "batch".
This bean is called from a java app, a sort of batch app that runs once a week. It simply select the number of batches and their size and then it calls the main method of the bean with a for loop.
The entire job on my actual data set runs for about 40 minutes.
At the end of the process I get an exception, a transaction timeout.
Now I suspect that using the standard transaction configuration, the transaction starts when the batch app calls the first bean method and it ends when the app destroy the bean. Since the actual jboss tx timeout is set to 600 seconds this makes the session bean timeout.
What's the best transaction configuration for the bean ? Should I set all "setup" methods to Never and the main method of the bean to requires new ? Or should I set all to Never ? Any other hint ?
Thank you for your help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231521#4231521
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231521
17 years, 2 months
[EJB 3.0] - Re: Stateful bean keep-alive
by xmedeko
Hello Peter,
thanks for your reply.
"PeterJ" wrote : Don't set removalTimeoutSeconds, use idleTimeoutSeconds instead. ...
unfortunately, our session bean cannot be serialized from various reasons. I am moving an existing, a little bit larger, application into JBoss. It would be not easy to make it serializable. (Maybe in the future I will have to do it anyway.)
"PeterJ" wrote : Creating a new client thread might work, but you have to be careful. First, the thread must not lookup the EJB itself - you will end up with a new EJB, not with the one that you want to keep alive. Therefore, you must pass the bean's proxy to the thread. Second, I recommend creating a separate method on the EJB that does nothing - the primary purpose of this method is for the extra thread to occasionally call it. This should guarantee that the state of the bean does not change inadvertently.
Yes, that what I have already done :-)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231519#4231519
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231519
17 years, 2 months
[JBoss Tools (users)] - Not running in Debug Mode
by pmsudha
Hi
without debug mode my application running but with debug mode my application not running.
in this same system my application ran with debug mode. but i don't know what is the reason for not running.
Im using JBoss Developer Studio 2.0.0.CR2
21:11:36,000 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
21:11:36,078 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
21:11:36,093 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter
21:11:36,109 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.identityFilter
21:12:38,296 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
21:12:43,203 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
21:12:45,515 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 6m:31s:47ms
21:13:37,578 INFO [Contexts] starting up: org.jboss.seam.security.ruleBasedPermissionResolver
21:14:39,125 INFO [RuleBase] parsing rules: /security.drl
21:15:10,984 INFO [Contexts] starting up: org.jboss.seam.security.identity
21:15:11,109 INFO [Contexts] starting up: org.jboss.seam.web.session
up to this line printing in the console but here after no response.. what is the problem?
--Sudha Perumal.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231514#4231514
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231514
17 years, 2 months
[EJB/JBoss] - EJB 3 CMP Transaction
by ttza
I am using CMP EJB3 on Jboss 4.2, my tables are getting locked while CMP process is getting executed. If I use BMP then there is no such locking.
My database server is SQL Server 2005 and I have the following settings in the persistance.xml file
<persistence>
| <persistence-unit name="foo">
| <jta-data-source>java:/fooDS</jta-data-source><properties>
| <property name="hibernate.hbm2ddl.auto" value="none" />
| <property name="hibernate.ejb.cfgfile" value="/hibernate.cfg.xml" />
| <property name="hibernate.connection.isolation" value="2" />
| </properties>
| </persistence-unit>
| </persistence>
As above mention i did have isolation set up to Read_commited but still iam unable to do any query on the table if they are used in CMP process.
Just for information we recently migrated our transaction from hibernate to EJB3 and in the process we upgraded jboss from 4.0 - 4.2 Is there any setting that we missed at our end .Please advise,
Our whole application seems to be falling apart because of this locking issues.
Best Regards,
Trapti
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231507#4231507
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231507
17 years, 2 months
[Clustering/JBoss] - Re: Session replication with sticky session
by sureshrk19
Hi Sushant,
The problem I'm facing is;
when I enable sticky session (in workers. properties) then session replication doesn;t work as expected.
i.e., when I shutdown "node1" (all the requests are going to this node till now0 then, the next request from browser (thru apache/mod_jk) fos to "node2" but, the code which tries to read session data was set by "node1" is null.
eg: I stored username/pwd (on login) in session (thru node1) but, when I try to retrieve the same data from node2.... returns null.
My understanding is: when we enable session stickiness; the session data might be cached at "node1" (may be for better perf.).. and the same is tied to "node1" forever. I'm not sure on this.. I may be wrong. I'm stuck at this point now.
session stickiness works fine for me.
Also, when I disable session stickiness, session replication works fine i.e., the requests are going to random nodes with full session data.
Thanks,
Suresh
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231503#4231503
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231503
17 years, 2 months
[JNDI/Naming/Network] - Re: distributed application
by vphagura
Please note that I changed my packaqe name to 'reservator' instaed of 'reservation', as I wanted to try this clean in a new project.
Here is the changed code for 'fetchRemoteObject'
private Reference fetchRemoteObject(String key, String clsName ) throws NamingException
| {
| Reference ret = null;
| if( cache.containsKey( key ))
| {
| ret = (Reference) cache.get( key );
| log.info( "Got it from CACHE..." );
| }
| else
| {
| if( ctx != null )
| {
| log.info(clsName );
| ret = (Reference) ctx.lookup( "reservator/" + clsName + "/remote");
| if( ret != null )
| {
| cache.put( key, ret );
| log.info("CLASSNAME: " + ret.getClassName());
| Enumeration<RefAddr> en = ret.getAll();
| while( en.hasMoreElements() )
| {
| RefAddr addr = (RefAddr) en.nextElement();
| Object obj = addr.getContent();
| log.info("CONTENT: " + obj.toString() );
| }
| }
| }
| }
| return ret;
| }
I also put the -verbose:class as suggested and here is the output:
[Loaded sun.reflect.GeneratedConstructorAccessor84 from __JVM_DefineClass__]
| [Loaded java.util.HashMap$1 from /usr/share/jdk1.6.0_10/jre/lib/rt.jar]
| [Loaded org.apache.coyote.http11.Http11Processor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.InputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.InputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.OutputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.OutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.MessageBytes$MessageBytesFactory from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.http.MimeHeaders from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.http.MimeHeaderField from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.UDecoder from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.http.Cookies from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.http.ServerCookie from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.collections.MultiMap from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.http.Parameters from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.collections.MultiMap$Field from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.InternalInputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.Response from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.ByteChunk$ByteOutputChannel from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.InternalOutputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.IdentityInputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.IdentityOutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.ChunkedInputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.ChunkedOutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.VoidInputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.VoidOutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.BufferedInputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.GzipOutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.filters.GzipOutputFilter$FakeOutputStream from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.HexUtils from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.ActionCode from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.Ascii from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.http11.Constants from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.StringCache$ByteEntry from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.StringCache$CharEntry from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.ByteChunk$ByteInputChannel from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.CharChunk$CharInputChannel from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.CharChunk$CharOutputChannel from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.connector.InputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.util.ParameterMap from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.util.StringParser from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.net.URL from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.UEncoder from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.connector.OutputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.jboss.resource.connectionmanager.CachedConnectionManager$KeyConnectionAssociation from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jboss-jca.jar]
| [Loaded org.apache.catalina.connector.RequestFacade from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.CometProcessor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.core.ApplicationFilterFactory from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.CometFilterChain from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.core.ApplicationFilterChain from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.catalina.connector.ResponseFacade from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.servlet.JspServletWrapper from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.JspCompilationContext from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.servlet.JasperLoader from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Compiler from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.JDTCompiler from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.eclipse.jdt.internal.compiler.env.INameEnvironment from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62613jasper-jdt.jar]
| [Loaded org.eclipse.jdt.internal.compiler.ICompilerRequestor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62613jasper-jdt.jar]
| [Loaded org.eclipse.jdt.internal.compiler.IProblemFactory from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62613jasper-jdt.jar]
| [Loaded org.apache.jasper.compiler.JspUtil from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.servlet.jsp.el.ExpressionEvaluator from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded org.apache.jasper.el.ExpressionEvaluatorImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.el.FunctionMapper from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/el-api.jar]
| [Loaded org.apache.jasper.el.FunctionMapperImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.servlet.jsp.el.Expression from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded org.apache.jasper.el.ExpressionImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.servlet.jsp.el.ELException from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded javax.servlet.jsp.el.ELParseException from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded org.apache.jasper.runtime.JspSourceDependent from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.servlet.jsp.JspPage from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded javax.servlet.jsp.HttpJspPage from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded org.apache.jasper.runtime.HttpJspBase from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jsp.jsp.index2_jsp from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/work/jboss.web/localhost/reservator/]
| [Loaded com.vsp.reservator.web.delegate.FlightResServiceInvoker from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/classes/]
| [Loaded org.apache.jasper.runtime.JspFactoryImpl$PageContextPool from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.servlet.jsp.el.FunctionMapper from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded javax.servlet.jsp.JspWriter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded org.apache.jasper.runtime.JspWriterImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.servlet.jsp.tagext.BodyContent from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded org.apache.jasper.runtime.BodyContentImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.servlet.jsp.el.VariableResolver from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded javax.servlet.jsp.JspException from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded javax.servlet.http.HttpSession from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/servlet-api.jar]
| [Loaded org.apache.catalina.session.StandardSession from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded javax.servlet.http.HttpSessionContext from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/servlet-api.jar]
| [Loaded org.apache.catalina.session.StandardSessionFacade from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.DateTool from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.security.SecurityUtil from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded com.vsp.reservator.ejb.dmo.Customer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
| [Loaded com.vsp.reservator.ejb.dmo.Reservation from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
| [Loaded com.vsp.reservator.ejb.dmo.Flight from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
| [Loaded com.vsp.reservator.util.ServiceLocator from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
| 15:49:40,096 INFO [STDOUT] PROPS: {java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=192.168.5.105:1099, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 15:49:40,097 INFO [ServiceLocator] FlightReservationAccessorBean
| 15:49:40,372 INFO [ServiceLocator] CLASSNAME: Proxy for: com.vsp.reservator.ejb.accessor.FlightReservationAccessorRemote
| 15:49:40,372 INFO [ServiceLocator] CONTENT: ProxyFactory/FlightReservationAccessorBean/reservator/FlightReservationAccessorBean/remote
| 15:49:40,374 INFO [ServiceLocator] CONTENT: jboss.j2ee:ear=reservator.ear,jar=reservator.jar,name=FlightReservationAccessorBean,service=EJB3
| 15:49:40,374 INFO [ServiceLocator] CONTENT: false
| 15:49:40,374 INFO [ServiceLocator] CONTENT: com.vsp.reservator.ejb.accessor.FlightReservationAccessorRemote
| 15:49:40,374 INFO [ServiceLocator] CONTENT: socket://MTVL04L3M4149:3873/?
| [Loaded com.vsp.reservator.ejb.accessor.FlightReservation from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
| [Loaded com.vsp.reservator.ejb.accessor.FlightReservationAccessorRemote from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
| [Loaded javax.servlet.jsp.SkipPageException from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
| [Loaded org.apache.jasper.compiler.ErrorDispatcher from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.ErrorDispatcher$ErrorVisitor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.ErrorHandler from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.TagConstants from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$AttributeGenerator from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$JspOutput from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$TemplateText from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$DoBodyAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$InvokeAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$JspBody from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$NamedAttribute from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$JspText from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$JspElement from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$UninterpretedTag from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$CustomTag from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$PlugIn from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$UseBean from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$FallBackAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$ParamsAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$ParamAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$SetProperty from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$GetProperty from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$ForwardAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$IncludeAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$ELExpression from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$ScriptingElement from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$Scriptlet from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$Expression from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$Declaration from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$Comment from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$VariableDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$AttributeDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$TaglibDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$IncludeDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$TagDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$PageDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$JspRoot from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$Root from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.jasper.compiler.Node$Nodes from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| 15:49:40,532 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| java.lang.ClassCastException: javax.naming.Reference cannot be cast to com.vsp.reservator.ejb.accessor.FlightReservationAccessorRemote
| at com.vsp.reservator.util.ServiceLocator.getFlightReservationAccessorRemote(ServiceLocator.java:116)
| at com.vsp.reservator.web.delegate.FlightResServiceInvoker.processReservation(FlightResServiceInvoker.java:64)
| at org.apache.jsp.jsp.index2_jsp._jspService(index2_jsp.java:70)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| 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:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:619)
| [Loaded org.jboss.web.tomcat.security.SecurityAssociationActions$ClearAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62615jbossweb-service.jar]
| [Loaded org.apache.tomcat.util.buf.C2BConverter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.IntermediateOutputStream from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.buf.WriteConvertor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.coyote.Constants from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.http.FastHttpDateFormat from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
| [Loaded org.apache.tomcat.util.http.HttpMessages from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231500#4231500
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231500
17 years, 2 months
[Clustering/JBoss] - Re: @Clustered + @RemoteBinding(jndiBinding => org.jboss.ejb
by smolin
summary deployment error related to what I described before:
DEPLOYMENTS IN ERROR:
Deployment "jboss.j2ee:ear=prototype_ear-0.1-SNAPSHOT.ear,jar=prototype_server_communication_ejb-0.1-SNAPSHOT.jar,name=ServerCmdExecutorBean,service
=EJB3" is in error due to the following reason(s): org.jboss.ejb3.common.registrar.spi.DuplicateBindException: Cannot install org.jboss.ejb3.proxy.clu
stered.factory.session.stateless.StatelessSessionClusteredProxyFactory@565388 under name "ProxyFactory/prototype_ear-0.1-SNAPSHOT/ServerCmdExecutorBea
n/prj/ServerCmdExecutor/remote/DefaultPartition" as there is already an existing object there: org.jboss.ejb3.proxy.clustered.factory.session.
stateless.StatelessSessionClusteredProxyFactory@1381d19
And of course there are no two jars or ears with the same ejb deployed in jboss. This only happens when I use both annotation: @Clustered and @RemoteBinding.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231480#4231480
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231480
17 years, 2 months
[Clustering/JBoss] - @Clustered + @RemoteBinding(jndiBinding => org.jboss.ejb3.co
by smolin
I got problem when deploy some ejb in clustered environemnt:
JBoss 5.1.0.CR1 (same in 5.0.0.GA), JDK 1.6
I deploy ejb 3.0 stateless bean (ejb jar included in ear file):
@Clustered(partition= "DefaultPartition")
@Remote
@RemoteBinding(jndiBinding="prj/ServerCmdExecutor/remote")
public class ServerCmdExecutorBean implements CmdExecutor {
...
and gets error:
java.lang.RuntimeException: org.jboss.ejb3.common.registrar.spi.DuplicateBindException: Could not register org.jboss.ejb3.proxy.clustered.factory.sess
ion.stateless.StatelessSessionClusteredProxyFactory@565388 under an already registered key, "ProxyFactory/prototype_ear-0.1-SNAPSHOT/ServerCmdExecutor
Bean/prj/ServerCmdExecutor/remote/DefaultPartition" for EJB ServerCmdExecutorBean
at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.createJndiReferenceBindingSet(JndiSessionRegistrarBase.java:245)
at org.jboss.ejb3.proxy.clustered.jndiregistrar.JndiClusteredSessionRegistrarBase.createJndiReferenceBindingSet(JndiClusteredSessionRegistrarB
ase.java:213)
at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:148)
at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:208)
at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:522)
at org.jboss.ejb3.stateless.StatelessContainer.lockedStart(StatelessContainer.java:186)
at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:884)
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:597)
If I remove @RemoteBinding then it works but I get default name mapping which is ear name related (and is not good for me).
It also work if this ejb is not clustered. What can be wrong, am I missing something or there can be some bug?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231478#4231478
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231478
17 years, 2 months