[JBoss-user] [EJB/JBoss] - Re: Cannot get a remote context for Session Bean

2005-07-08 Thread srose
here is the stack trace for the IOException...

Caused by: java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown 
Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at 
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:72)
at 
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:244)


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3884183#3884183

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884183


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Cannot get a remote context for Session Bean

2005-07-08 Thread srose
I also pulled this from the jboss application log file:

2005-07-08 09:35:04,542 DEBUG [org.hibernate.jdbc.ConnectionManager] running 
Session.finalize()
2005-07-08 09:35:04,542 DEBUG [org.hibernate.jdbc.ConnectionManager] running 
Session.finalize()
2005-07-08 09:35:59,291 DEBUG 
[org.jboss.remoting.transport.socket.ServerThread] WAKEUP in SERVER THREAD
2005-07-08 09:35:59,291 DEBUG 
[org.jboss.remoting.transport.socket.ServerThread] beginning dorun
2005-07-08 09:35:59,291 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] GETTING NEW EntityManager
2005-07-08 09:35:59,291 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] logLivedSession.get() was 
NULL
2005-07-08 09:35:59,291 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] LONG LIVED NOT FOUND
2005-07-08 09:35:59,291 DEBUG [org.hibernate.impl.SessionImpl] opened session 
at timestamp: 4590918694055936
2005-07-08 09:35:59,291 DEBUG [org.hibernate.impl.SessionImpl] find: from 
AppRole r
2005-07-08 09:35:59,291 DEBUG [org.hibernate.engine.QueryParameters] named 
parameters: {}
2005-07-08 09:35:59,291 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] 
compile() : The query is already compiled, skipping...
2005-07-08 09:35:59,291 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open PreparedStatement (open PreparedStatements: 0, globally: 0)
2005-07-08 09:35:59,301 DEBUG [org.hibernate.jdbc.ConnectionManager] opening 
JDBC connection
2005-07-08 09:35:59,301 DEBUG [org.hibernate.jdbc.JDBCContext] successfully 
registered Synchronization
2005-07-08 09:35:59,301 DEBUG [org.hibernate.SQL] select approle0_.ar_idseq as 
ar1_, approle0_.ar_rolename as ar2_0_, approle0_.ar_roledesc as ar3_0_ from 
fidstest.app_role approle0_
2005-07-08 09:35:59,301 DEBUG [org.hibernate.jdbc.AbstractBatcher] preparing 
statement
2005-07-08 09:35:59,301 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open ResultSet (open ResultSets: 0, globally: 0)
2005-07-08 09:35:59,301 DEBUG [org.hibernate.loader.Loader] processing result 
set
2005-07-08 09:35:59,301 DEBUG [org.hibernate.loader.Loader] result set row: 0
2005-07-08 09:35:59,301 DEBUG [org.hibernate.type.IntegerType] returning '13' 
as column: ar1_
2005-07-08 09:35:59,301 DEBUG [org.hibernate.loader.Loader] result row: 
EntityKey[com.airit.entities.AppRole#13]
2005-07-08 09:35:59,301 DEBUG [org.hibernate.loader.Loader] Initializing object 
from ResultSet: [com.airit.entities.AppRole#13]
2005-07-08 09:35:59,301 DEBUG 
[org.hibernate.persister.entity.BasicEntityPersister] Hydrating entity: 
[com.airit.entities.AppRole#13]
2005-07-08 09:35:59,301 DEBUG [org.hibernate.type.StringType] returning 
'rwd_security' as column: ar2_0_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.StringType] returning 
'read,write,delete Role' as column: ar3_0_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] result set row: 1
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.IntegerType] returning '15' 
as column: ar1_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] result row: 
EntityKey[com.airit.entities.AppRole#15]
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] Initializing object 
from ResultSet: [com.airit.entities.AppRole#15]
2005-07-08 09:35:59,311 DEBUG 
[org.hibernate.persister.entity.BasicEntityPersister] Hydrating entity: 
[com.airit.entities.AppRole#15]
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.StringType] returning 
'testprop' as column: ar2_0_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.StringType] returning 'test 
xfm' as column: ar3_0_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] result set row: 2
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.IntegerType] returning '8' as 
column: ar1_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] result row: 
EntityKey[com.airit.entities.AppRole#8]
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] Initializing object 
from ResultSet: [com.airit.entities.AppRole#8]
2005-07-08 09:35:59,311 DEBUG 
[org.hibernate.persister.entity.BasicEntityPersister] Hydrating entity: 
[com.airit.entities.AppRole#8]
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.StringType] returning 
'role88' as column: ar2_0_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.StringType] returning 'this 
is role88' as column: ar3_0_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] result set row: 3
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.IntegerType] returning '12' 
as column: ar1_
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] result row: 
EntityKey[com.airit.entities.AppRole#12]
2005-07-08 09:35:59,311 DEBUG [org.hibernate.loader.Loader] Initializing object 
from ResultSet: [com.airit.entities.AppRole#12]
2005-07-08 09:35:59,311 DEBUG 
[org.hibernate.persister.entity.BasicEntityPersister] Hydrating entity: 
[com.airit.entities.AppRole#12]
2005-07-08 09:35:59,311 DEBUG [org.hibernate.type.StringType] returning 'admin' 
as column: ar2_0_
2005-07-08 09:35:59,311 DEBUG 

[JBoss-user] [EJB/JBoss] - Re: Cannot get a remote context for Session Bean

2005-07-08 Thread srose
I figured it out! One of my objects which i use to copy over data from my 
entity bean inside my session bean wasnt serializable. I do this to keep my 
entity bean transparent to my client. Anyways, I made it serializable and it 
works perfectly. 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3884199#3884199

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884199


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Cannot get a remote context for Session Bean

2005-07-07 Thread srose
Ok ...thanks to bill, I figured out part of my problem which was forgeting to 
delete the @ Local piece in my remote interface. Now I have a different 
problem. When i try to use the first method in my class , I get a ...

java.lang.reflect.UndeclaredThrowableException
at $Proxy0.getAppRoles(Unknown Source)
at com.airit.web.RoleWeb.showRole(RoleWeb.java:147)
at com.airit.web.RoleWeb.doPost(RoleWeb.java:88)
at com.airit.web.RoleWeb.doGet(RoleWeb.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.rmi.ConnectException: Failed to communicate.  Problem during 
marshalling/unmarshalling; nested exception is: 
java.io.EOFException
at 
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:266)
at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:117)
at org.jboss.remoting.Client.invoke(Client.java:201)
at 
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:42)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:90)
at 
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:44)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:90)
at 
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:38)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:90)
at 
org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:32)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:90)
at 
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:79)
... 20 more

Any ideas?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3884096#3884096

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884096


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Cannot get a remote context for Session Bean

2005-07-07 Thread srose
Forgot to post my interface...

import java.io.Serializable;
import java.util.Collection;
import javax.ejb.Remote;

@Remote
public interface AppRolesRemote extends Serializable {

public Collection  getAppRoles();
public void addAppRole (String rolename, String roledesc);
public void deleteAppRole(String RoleId); 
public void updateAppRole(String RoleId, String rolename, String 
roledesc);
public UserRoleBean getAppRole(String RoleId);

}

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3884100#3884100

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884100


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Cannot get a remote context for Session Bean

2005-07-07 Thread [EMAIL PROTECTED]
what version of JBoss is running your backend?  Also, what exact steps did you 
take to install?  I'm trying to determine what version of JBoss Remoting you 
are using...

Also, is the stack trace any longer?  I need to know where the EOFException is 
being thrown.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3884112#3884112

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884112


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Cannot get a remote context for Session Bean

2005-07-07 Thread srose
I am using 4.0.3 RC1. I  installed the session bean and the entities beans 
using an ear file. I have a local interface which runs fine on the jboss 
application server. I installed a war file in the jboss-tomcat container and 
used local context look up and it works. This problem is occurring on a remote 
machine where i have a standalone version of tomcat(5.5.9) using the same war 
file with only the context lookup altered to use the remote interface. I am not 
at my office so I cant post the rest of the stack trace but will do so early 
tommorow. Thanks for all the help so far. 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3884132#3884132

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884132


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user