Rick Horowitz wrote:
> 
> Alex,
> 
> Thanks, but I'm running client and server on the same system. BTW, I'm
> doing this because it reduces the amount of stuff I have to deploy (usually
> only servlet side or EJB side, but not both at once) and hence speeds up
> development, theoretically...:).  Therefore, I don't think the

do you mean running standalone tomcat, not embedded?

> java.naming.provider.url is the problem (unfortunately).  It seems like my

yes, I've just checked one machine configuration with localhost
and everything is fine. I've been doing this since a post in
this list, but it was long ago. BTW, I'm running jboss-cvs now
from January 15. But our "production/test" environment is on jboss
final 2.0.

> problem is a classpath problem of some sort, since
> org.jnp.interfaces.NamingContextFactory is not found by the classloader.

According to Rickard, it's even not necessary to have jnp-client.jar
in the client classpath, it *can* be downloaded automatically. 
(or it was about jboss-client, dont remember)
But I've never tried that. I have an impression that it was not working
in jboss-final.

> 
> Question:  are you able to run your configuration with the servlet and ejb
> interface files in the webapp WAR file, or are all your files on the system
> classpath?

Yes, on the tomcat side I have everything under WEB-INF 
(except jndi.properties). Here one of my wars:

WEB-INF/
WEB-INF/web.xml
WEB-INF/lib/bmx-core.jar
WEB-INF/lib/bmx-ejb-client.jar
WEB-INF/lib/jdom.jar
WEB-INF/lib/xerces.jar
WEB-INF/lib/jboss-client.jar
WEB-INF/lib/jta-spec1_0_1.jar
WEB-INF/lib/ejb.jar
WEB-INF/lib/jnp-client.jar
WEB-INF/lib/csection-client.jar
WEB-INF/classes/com/
WEB-INF/classes/com/ptc/
WEB-INF/classes/com/ptc/bmx/
WEB-INF/classes/com/ptc/bmx/web/
WEB-INF/classes/com/ptc/bmx/web/ServiceServlet.class
WEB-INF/classes/com/ptc/bmx/web/AdminServlet.class
WEB-INF/classes/com/ptc/bmx/web/WebUtils.class
WEB-INF/classes/com/ptc/bmx/web/ControlServlet.class
WEB-INF/classes/com/ptc/bmx/web/ComponentServlet.class
WEB-INF/classes/com/ptc/bmx/server/
WEB-INF/classes/com/ptc/bmx/server/BmxServer.class
META-INF/
META-INF/MANIFEST.MF
Welcome.jsp
ErrorPage.jsp
images/
images/About24.gif
images/Application24.gif
images/ApplicationDeploy24.gif
images/Bean24.gif
images/BeanAdd24.gif
images/Delete24.gif
images/EnterpriseJavaBean24.gif
images/Help24.gif
images/Host24.gif
images/J2EEApplication24.gif
images/J2EEServer24.gif
images/JarAdd24.gif
images/Save24.gif
images/Server24.gif
images/War24.gif
images/WarAdd24.gif
images/WebComponent24.gif
images/WebComponentAdd24.gif
applets/
applets/run-applet.jar
applets/bmx-core.jar
applets/csui.jar
applets/xerces.jar
applets/jdom.jar

We've used this war in many configurations:

- jboss + tomcat-stanalone on the same host
- jboss + tomcat-stanalone on another host
- tomcat-stanalone on one host and 2 jboss instances
  under one jndi-server on others.

We use that on SunOs, NT, Tru64 and IRIX.
Everything is working. Ok, almost, but it's
another story.

Again, I recall a suggestion from somebody,
to try to remove all unnecessary jars from
main classpath and WEB-INF/lib. It may
help because ClassLoaders tree is very
picky. You can try to print out ClassLoaders
names, something like

System.out.println(obj.getClass().getClassLoader());

What else? Did you set any SecurityManager or
used tomcat security. Doesn't ring?

Good luck.

-- 
__________________________________________________
Alexander Kogan  PTC   www.ptc.com
[EMAIL PROTECTED]    140 Kendrick St. Needham MA 02494


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to