Alex,

Thanks for the time you're spending trying to help me. Very much appreciated...

At 08:22 PM 1/24/01 -0500, you wrote:
>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?

Running standalone - a VM for Tomcat and a VM for JBoss.  Running both in 
JBuilder 4.0.


> > 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.

Does JBoss from CVS work "out of the box" or did you have to figure out a 
bunch of not-yet-documented stuff regarding the configuration changes?  I'd 
be happy to upgrade if the former...


> > 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/

ok, so you're using both lib and classes with no problem...

What does your system classpath contain?

>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.

Guess it works...at least in Needham.:)


>Again, I recall a suggestion from somebody,
>to try to remove all unnecessary jars from
>main classpath and WEB-INF/lib.

I've already done this, AFAICT.

>  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?

Not AFAIK.  Do I need to do something in web.xml or server.xml to turn on 
Tomcat security?  If I remember correctly, use of a SecurityManager 
requires that you pass in various things as VM params to install a security 
manager, etc. If so, then no, I am not.

One more thing:  I'm using Jakarta Struts - could this be causing the 
problem with classloaders?


>Good luck.

Yah! It looks like I need it.

Thanks,

Rick

>
>--
>__________________________________________________
>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]

--------------------
Rick Horowitz


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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

Reply via email to