File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Regarding communication Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Regarding communication Exception" Watch "Regarding communication Exception" New topic

Regarding communication Exception

LakshmiNarayana vishnu
Ranch Hand

Joined: Aug 03, 2006
Posts: 39
I am having an application using jboss 4.0.3SP1 and tomcat 5.0.28
When i try calling the ejb deployed in jboss using following code
InitialContext jndiContext = new InitialContext();
Object ref = jndiContext.lookup("interest/Interest");

I get error saying --

javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: no protocol: tomcat5.0/jakarta-tomcat-5.0.28/webapps/servlets-examples/WEB-INF/classes/]

Tomcat is installed in directory having spaces (D:\jakarta tomcat5.0\jakarta-tomcat-5.0.28)

Any help is appreciated

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

Tomcat is installed in directory having spaces (D:\jakarta tomcat5.0\jakarta-tomcat-5.0.28)

Does it work when you install Tomcat in a directory without spaces?

Also, my understanding is that JBoss comes with an embedded Tomcat. You dont have to separately install and use Tomcat. How have you deployed your application?

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Regarding communication Exception
It's not a secret anymore!