Re: Setting up a new web-application
Hi Kevin, Kevin Jones wrote: > > > I'm using Xalan 2 in my framework and I've had the same problem with > > pretty much all the containers that I've tried playing with. With Orion, > > substituting xalan.jar and xerces.jar in the Orion directory did the > > trick for me in 1.4.*. > > This is an ugly hack though :-) If another app using the same server and > relies on Xalan-1 functionality, they're screwed. I know, I know, and it also breaks our "application atomicity" as it is not enough to pack our applications in .ear files, we also have to make sure Xalan 2 is manually installed in the container :(. But we jumped to JAPX as soon as it implemented the TRaX API to finally become independent of the XSLT processor and as all our applications use the same XML/XSLT framework, based in JAXP and TRaX... We've run into some troubles with some external applications but in this case, I'd rather have another orion instance with another classpath than downgrading my whole framework to become parser-dependent again. I hope JSDK2.3 allows us to get rid of this "ugliness" > > > with Resin and I never tried with Tomcat. > > Tomcat 4 fixes this (mostly) Mostly? That sounds scary! ;) (Warning! Warning! that was meant to be a joke ;) ) > > The problem seems to be > > something like "the first XML library to be used is the one to be used > > for everything" and as all the containers have nowadays XML > > configuration files and use an XML parser as soon as they start up, then > > the XML library that is used is the one that the container uses, > > Yes, sort of. The problem is that the same classloader used by your web-app > can also 'see' the global 'classpath ' set by Orion, and, as classloaders > delegate, when the web-app CL tries to use an XML parser, or Xalan or > something that is shared then the 'global' one gets used first. I see. I guess that's the reason why the 2.3 spec says talks about application classpath "taking precedence" over the global one. > > hence > > the need to put your desired library in the global CLASSPATH. This can > > lead to problems that can't be solved, if the container and your > > application can only use incompatible versions of a parser. As somebody > > mentioned, > > That was me > > > I think JSDK 2.3 tries to solve this, specifically, > > Point SRV.9.7.2 Web Application Classloader (Page 63 JSDK2.3 PFD2) > > states: > > "... > > It is recommended, however, that the application classloader be > > implemented so that classes and resources packaged within the WAR are > > loaded in preference to classes and resources residing in container-wide > > library JARs. > > " > > Yes, we put this in because of these sorts of problems. Oh, so you are one of them ;). You can bet everybody will appreciate it if you can specify things so this issue is solved. From my experience, this is number one source of problems when using todays containers (not talking about code bugs or similar problems). Now that we are at it. Have you thought about improving security so the mappings are a bit more dynamic and that user-role mapping is not container-dependent? These are the reasons that lead us to develop our own library but I would have lived happier if I needn't have to do it. Thanks for your comments, D. --- Daniel Lopez Janariz ([EMAIL PROTECTED]) Web Services Computer Center Balearic Islands University --- > Kevin Jones > DevelopMentor > www.develop.com
RE: Setting up a new web-application
> I'm using Xalan 2 in my framework and I've had the same problem with > pretty much all the containers that I've tried playing with. With Orion, > substituting xalan.jar and xerces.jar in the Orion directory did the > trick for me in 1.4.*. This is an ugly hack though :-) If another app using the same server and relies on Xalan-1 functionality, they're screwed. > with Resin and I never tried with Tomcat. Tomcat 4 fixes this (mostly) > The problem seems to be > something like "the first XML library to be used is the one to be used > for everything" and as all the containers have nowadays XML > configuration files and use an XML parser as soon as they start up, then > the XML library that is used is the one that the container uses, Yes, sort of. The problem is that the same classloader used by your web-app can also 'see' the global 'classpath ' set by Orion, and, as classloaders delegate, when the web-app CL tries to use an XML parser, or Xalan or something that is shared then the 'global' one gets used first. > hence > the need to put your desired library in the global CLASSPATH. This can > lead to problems that can't be solved, if the container and your > application can only use incompatible versions of a parser. As somebody > mentioned, That was me > I think JSDK 2.3 tries to solve this, specifically, > Point SRV.9.7.2 Web Application Classloader (Page 63 JSDK2.3 PFD2) > states: > "... > It is recommended, however, that the application classloader be > implemented so that classes and resources packaged within the WAR are > loaded in preference to classes and resources residing in container-wide > library JARs. > " Yes, we put this in because of these sorts of problems. Kevin Jones DevelopMentor www.develop.com
RE: Setting up a new web-application
Just to let you know: I've reported this as a (small) bug and it has already been fixed. The default value for servlet-webdir is /servlet in all of the documentation, global-web-application and all generated orion-web.xml files. Marcel > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Marcel Schutte > Sent: Tuesday, May 29, 2001 4:29 PM > To: Orion-Interest > Subject: RE: Setting up a new web-application > > > You're right. In the online documentation it says /servlets > but when you > look at global-web-application.xml(in both 1.4.5 and 1.5.1) it says > /servlet. > > Marcel > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of > Kevin Jones > > Sent: Tuesday, May 29, 2001 3:17 PM > > To: Orion-Interest > > Subject: RE: Setting up a new web-application > > > > > > BTW > > > > > According to the 1.4.5 documentation the default web > > directory mapping for > > > servlets is /servlets, mind the plural > > > > this can't be right. > > > > Try browsing to > > > > http://localhost/servlet/SnoopServlet > > > > and > > > > http://localhost/servlets/SnoopServlet > > > > only the first URL works, > > > > > > Kevin Jones > > DevelopMentor > > www.develop.com > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > Marcel Schutte > > > Sent: 29 May 2001 11:47 > > > To: Orion-Interest > > > Subject: RE: Setting up a new web-application > > > > > > > > > Hi, > > > > > > According to the 1.4.5 documentation the default web > > directory mapping for > > > servlets is /servlets, mind the plural > > > (http://www.orionserver.com/docs/orion-web.xml.html). But since > > > none of the > > > classes in WEB-INF/classes are found there might be yet > > another problem. > > > Could you perhaps post a zip of your > orion\applications\addressbook > > > directory tree, I'll try it out and see what I can find. > > > > > > Marcel > > > > > > > -Original Message- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > Kevin Jones > > > > Sent: Tuesday, May 29, 2001 11:20 AM > > > > To: Orion-Interest > > > > Subject: Setting up a new web-application > > > > > > > > > > > > I have a web application that works fine on Tomcat 4.0b5. I'm > > > > trying to run > > > > it on Orion as a proof of concept but I can't get much > > working! I've > > > > followed the 'atm' example in the notes and have the > > > > following structure > > > > > > > > orion\applications\addressbook > > > > orion\applications\addressbook\META-INF > > > > orion\applications\addressbook\AddressBook > > > > orion\applications\addressbook\AddressBook\WEB-INF > > > > orion\applications\addressbook\AddressBook\WEB-INF\classes > > > > orion\applications\addressbook\AddressBook\WEB-INF\lib > > > > > > > > I've updated server.xml (with this " > name="AddressBook" > > > > path="../applications/AddressBook/" /> ") > > > > and default-web-site.xml (with this " > > > application="AddressBook" > > > > name="AddressBook" root="/AddressBook" />". > > > > > > > > I can browse to http:\\localhost:8080\AddressBook and it > > picks up the > > > > welcome-file. > > > > I can browse to a simple JSP (that has no beans etc.) > > > > I can't browse to any servlet, so > > > > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava > > > .lab.Browse > > > and > > > http://localhost:8080/AddressBook/servlet/SimpleServlet > > > > > > both return "404 Not Found Resource > > /AddressBook/servlet/SimpleServlet not > > > found on this server" > > > > > > but both classes are in > > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > > > I can't browse to a JSP that uses beans that are in > > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > > > And I can't get Orion to load an application listener that > > is also in > > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > > > Orion obviously can't find classes in > > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" but > > > this should > > > be automatically added to the classpath for this application. > > > > > > What am I missing? I assume it must be configuration > > setting but I can't > > > find anything in the docs, > > > > > > Kevin Jones > > > DevelopMentor > > > www.develop.com > > > > > > > > > > > > > > >
Re: Setting up a new web-application
Hi Kevin, I'm using Xalan 2 in my framework and I've had the same problem with pretty much all the containers that I've tried playing with. With Orion, substituting xalan.jar and xerces.jar in the orion directory did the trick for me in 1.4.*. I think I remember I had to do something similar with Resin and I never tried with Tomcat. The problem seems to be something like "the first XML library to be used is the one to be used for everything" and as all the containers have nowadays XML configuration files and use an XML parser as soon as they start up, then the XML library that is used is the one that the container uses, hence the need to put your desired library in the global CLASSPATH. This can lead to problems that can't be solved, if the container and your application can only use incompatible versions of a parser. As somebody mentioned, I think JSDK 2.3 tries to solve this, specifically, Point SRV.9.7.2 Web Application Classloader (Page 63 JSDK2.3 PFD2) states: "... It is recommended, however, that the application classloader be implemented so that classes and resources packaged within the WAR are loaded in preference to classes and resources residing in container-wide library JARs. " That should mean that the parser installed in the application classpath should be used in your applications over the one installed in the global classpath, but unfortunately it is just a recommendation so who knows what will happen :). Just my 2c, D. Kevin Jones wrote: > > and the point is that I shouldn't need to put the classes/jar in the Orion > lib. I should be free to put whatever classes/jars I need in my own > application. > > The only thing about this is that it is not an easy problem to solve (ask > the Jakarta/Tomcat team), and for some reason it always seems to happen with > XML/XSLT processors :-( > > Kevin Jones > DevelopMentor > www.develop.com > ...
RE: Setting up a new web-application
and the point is that I shouldn't need to put the classes/jar in the Orion lib. I should be free to put whatever classes/jars I need in my own application. The only thing about this is that it is not an easy problem to solve (ask the Jakarta/Tomcat team), and for some reason it always seems to happen with XML/XSLT processors :-( Kevin Jones DevelopMentor www.develop.com > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie > Sent: 29 May 2001 18:38 > To: Orion-Interest > Subject: Re: Setting up a new web-application > > > I hope anyone has the answer as I had the same problem... I did > put an class > file in the web-inf\lib web-inf\classes file that I use my servlets>> > the servlets where not able to find them. > > I resolved it the same way as you did -> put it in the lib of orion which > seems to work.;( > > Eddie > - Original Message - > From: Kevin Jones <[EMAIL PROTECTED]> > To: Orion-Interest <[EMAIL PROTECTED]> > Sent: Tuesday, May 29, 2001 5:22 PM > Subject: RE: Setting up a new web-application > > > > I've found the problem with this and its taken me the best part > of a day! > > > > In my applications\AddressBook\AddressBook\web-inf\lib > directory I have a > > copy of Xalan.jar. This also exists in the top level directory of Orion. > The > > app uses the new(ish) TRaX APIs to do transforms so I need the latest > > version of Xalan. If I remove xalan.jar from the lib directory > everything > > works OK (I can browse to a servlet) if I leave xalan.jar in > there then no > > servlets work, in fact nothing in my web-inf\lib or web-inf\classes > > directory can be seen. > > > > This has to be a classloading problem! The 2.3 talks about this, my > > web-application's class loaders need to be separate from your > application's > > (i.e. Orion's) class loaders - I know Magnus knows this ( :-) ). > > > > So - is this a known problem? > > Is there a fix available? > > Can I (safely) delete Xalan.jar from my orion directory? > > > > Kevin Jones > > DevelopMentor > > www.develop.com > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of > Marcel Schutte > > > Sent: 29 May 2001 11:47 > > > To: Orion-Interest > > > Subject: RE: Setting up a new web-application > > > > > > > > > Hi, > > > > > > According to the 1.4.5 documentation the default web directory mapping > for > > > servlets is /servlets, mind the plural > > > (http://www.orionserver.com/docs/orion-web.xml.html). But since > > > none of the > > > classes in WEB-INF/classes are found there might be yet > another problem. > > > Could you perhaps post a zip of your orion\applications\addressbook > > > directory tree, I'll try it out and see what I can find. > > > > > > Marcel > > > > > > > -Original Message- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of > Kevin Jones > > > > Sent: Tuesday, May 29, 2001 11:20 AM > > > > To: Orion-Interest > > > > Subject: Setting up a new web-application > > > > > > > > > > > > I have a web application that works fine on Tomcat 4.0b5. I'm > > > > trying to run > > > > it on Orion as a proof of concept but I can't get much working! I've > > > > followed the 'atm' example in the notes and have the > > > > following structure > > > > > > > > orion\applications\addressbook > > > > orion\applications\addressbook\META-INF > > > > orion\applications\addressbook\AddressBook > > > > orion\applications\addressbook\AddressBook\WEB-INF > > > > orion\applications\addressbook\AddressBook\WEB-INF\classes > > > > orion\applications\addressbook\AddressBook\WEB-INF\lib > > > > > > > > I've updated server.xml (with this " > > > path="../applications/AddressBook/" /> ") > > > > and default-web-site.xml (with this " > > > application="AddressBook" > > > > name="AddressBook" root="/AddressBook" />". > > > > > > > > I can browse to http:\\localhost:8080\AddressBook and it > picks up the > > > > welcome-file. > > > > I can browse to a simple JSP (that has no be
Re: Setting up a new web-application
I hope anyone has the answer as I had the same problem... I did put an class file in the web-inf\lib web-inf\classes file that I use my servlets>> the servlets where not able to find them. I resolved it the same way as you did -> put it in the lib of orion which seems to work.;( Eddie - Original Message - From: Kevin Jones <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Tuesday, May 29, 2001 5:22 PM Subject: RE: Setting up a new web-application > I've found the problem with this and its taken me the best part of a day! > > In my applications\AddressBook\AddressBook\web-inf\lib directory I have a > copy of Xalan.jar. This also exists in the top level directory of Orion. The > app uses the new(ish) TRaX APIs to do transforms so I need the latest > version of Xalan. If I remove xalan.jar from the lib directory everything > works OK (I can browse to a servlet) if I leave xalan.jar in there then no > servlets work, in fact nothing in my web-inf\lib or web-inf\classes > directory can be seen. > > This has to be a classloading problem! The 2.3 talks about this, my > web-application's class loaders need to be separate from your application's > (i.e. Orion's) class loaders - I know Magnus knows this ( :-) ). > > So - is this a known problem? > Is there a fix available? > Can I (safely) delete Xalan.jar from my orion directory? > > Kevin Jones > DevelopMentor > www.develop.com > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte > > Sent: 29 May 2001 11:47 > > To: Orion-Interest > > Subject: RE: Setting up a new web-application > > > > > > Hi, > > > > According to the 1.4.5 documentation the default web directory mapping for > > servlets is /servlets, mind the plural > > (http://www.orionserver.com/docs/orion-web.xml.html). But since > > none of the > > classes in WEB-INF/classes are found there might be yet another problem. > > Could you perhaps post a zip of your orion\applications\addressbook > > directory tree, I'll try it out and see what I can find. > > > > Marcel > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones > > > Sent: Tuesday, May 29, 2001 11:20 AM > > > To: Orion-Interest > > > Subject: Setting up a new web-application > > > > > > > > > I have a web application that works fine on Tomcat 4.0b5. I'm > > > trying to run > > > it on Orion as a proof of concept but I can't get much working! I've > > > followed the 'atm' example in the notes and have the > > > following structure > > > > > > orion\applications\addressbook > > > orion\applications\addressbook\META-INF > > > orion\applications\addressbook\AddressBook > > > orion\applications\addressbook\AddressBook\WEB-INF > > > orion\applications\addressbook\AddressBook\WEB-INF\classes > > > orion\applications\addressbook\AddressBook\WEB-INF\lib > > > > > > I've updated server.xml (with this " > > path="../applications/AddressBook/" /> ") > > > and default-web-site.xml (with this " > > application="AddressBook" > > > name="AddressBook" root="/AddressBook" />". > > > > > > I can browse to http:\\localhost:8080\AddressBook and it picks up the > > > welcome-file. > > > I can browse to a simple JSP (that has no beans etc.) > > > I can't browse to any servlet, so > > > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava > > .lab.Browse > > and > > http://localhost:8080/AddressBook/servlet/SimpleServlet > > > > both return "404 Not Found Resource /AddressBook/servlet/SimpleServlet not > > found on this server" > > > > but both classes are in > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > I can't browse to a JSP that uses beans that are in > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > And I can't get Orion to load an application listener that is also in > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > Orion obviously can't find classes in > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" but > > this should > > be automatically added to the classpath for this application. > > > > What am I missing? I assume it must be configuration setting but I can't > > find anything in the docs, > > > > Kevin Jones > > DevelopMentor > > www.develop.com > > > > > > > > >
Re: Setting up a new web-application
Are the servlets defined inside your WEB-INF/web.xml ? - Original Message - From: Kevin Jones <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Tuesday, May 29, 2001 5:20 PM Subject: Setting up a new web-application > I have a web application that works fine on Tomcat 4.0b5. I'm trying to run > it on Orion as a proof of concept but I can't get much working! I've > followed the 'atm' example in the notes and have the following structure > > orion\applications\addressbook > orion\applications\addressbook\META-INF > orion\applications\addressbook\AddressBook > orion\applications\addressbook\AddressBook\WEB-INF > orion\applications\addressbook\AddressBook\WEB-INF\classes > orion\applications\addressbook\AddressBook\WEB-INF\lib > > I've updated server.xml (with this " path="../applications/AddressBook/" /> ") > and default-web-site.xml (with this " name="AddressBook" root="/AddressBook" />". > > I can browse to http:\\localhost:8080\AddressBook and it picks up the > welcome-file. > I can browse to a simple JSP (that has no beans etc.) > I can't browse to any servlet, so > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava.lab.Browse > and > http://localhost:8080/AddressBook/servlet/SimpleServlet > > both return "404 Not Found Resource /AddressBook/servlet/SimpleServlet not > found on this server" > > but both classes are in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > I can't browse to a JSP that uses beans that are in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > And I can't get Orion to load an application listener that is also in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > Orion obviously can't find classes in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" but this should > be automatically added to the classpath for this application. > > What am I missing? I assume it must be configuration setting but I can't > find anything in the docs, > > Kevin Jones > DevelopMentor > www.develop.com > >
RE: Setting up a new web-application
I've found the problem with this and its taken me the best part of a day! In my applications\AddressBook\AddressBook\web-inf\lib directory I have a copy of Xalan.jar. This also exists in the top level directory of Orion. The app uses the new(ish) TRaX APIs to do transforms so I need the latest version of Xalan. If I remove xalan.jar from the lib directory everything works OK (I can browse to a servlet) if I leave xalan.jar in there then no servlets work, in fact nothing in my web-inf\lib or web-inf\classes directory can be seen. This has to be a classloading problem! The 2.3 talks about this, my web-application's class loaders need to be separate from your application's (i.e. Orion's) class loaders - I know Magnus knows this ( :-) ). So - is this a known problem? Is there a fix available? Can I (safely) delete Xalan.jar from my orion directory? Kevin Jones DevelopMentor www.develop.com > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte > Sent: 29 May 2001 11:47 > To: Orion-Interest > Subject: RE: Setting up a new web-application > > > Hi, > > According to the 1.4.5 documentation the default web directory mapping for > servlets is /servlets, mind the plural > (http://www.orionserver.com/docs/orion-web.xml.html). But since > none of the > classes in WEB-INF/classes are found there might be yet another problem. > Could you perhaps post a zip of your orion\applications\addressbook > directory tree, I'll try it out and see what I can find. > > Marcel > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones > > Sent: Tuesday, May 29, 2001 11:20 AM > > To: Orion-Interest > > Subject: Setting up a new web-application > > > > > > I have a web application that works fine on Tomcat 4.0b5. I'm > > trying to run > > it on Orion as a proof of concept but I can't get much working! I've > > followed the 'atm' example in the notes and have the > > following structure > > > > orion\applications\addressbook > > orion\applications\addressbook\META-INF > > orion\applications\addressbook\AddressBook > > orion\applications\addressbook\AddressBook\WEB-INF > > orion\applications\addressbook\AddressBook\WEB-INF\classes > > orion\applications\addressbook\AddressBook\WEB-INF\lib > > > > I've updated server.xml (with this " > path="../applications/AddressBook/" /> ") > > and default-web-site.xml (with this " > application="AddressBook" > > name="AddressBook" root="/AddressBook" />". > > > > I can browse to http:\\localhost:8080\AddressBook and it picks up the > > welcome-file. > > I can browse to a simple JSP (that has no beans etc.) > > I can't browse to any servlet, so > > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava > .lab.Browse > and > http://localhost:8080/AddressBook/servlet/SimpleServlet > > both return "404 Not Found Resource /AddressBook/servlet/SimpleServlet not > found on this server" > > but both classes are in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > I can't browse to a JSP that uses beans that are in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > And I can't get Orion to load an application listener that is also in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > Orion obviously can't find classes in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" but > this should > be automatically added to the classpath for this application. > > What am I missing? I assume it must be configuration setting but I can't > find anything in the docs, > > Kevin Jones > DevelopMentor > www.develop.com > > >
RE: Setting up a new web-application
You're right. In the online documentation it says /servlets but when you look at global-web-application.xml(in both 1.4.5 and 1.5.1) it says /servlet. Marcel > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones > Sent: Tuesday, May 29, 2001 3:17 PM > To: Orion-Interest > Subject: RE: Setting up a new web-application > > > BTW > > > According to the 1.4.5 documentation the default web > directory mapping for > > servlets is /servlets, mind the plural > > this can't be right. > > Try browsing to > > http://localhost/servlet/SnoopServlet > > and > > http://localhost/servlets/SnoopServlet > > only the first URL works, > > > Kevin Jones > DevelopMentor > www.develop.com > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of > Marcel Schutte > > Sent: 29 May 2001 11:47 > > To: Orion-Interest > > Subject: RE: Setting up a new web-application > > > > > > Hi, > > > > According to the 1.4.5 documentation the default web > directory mapping for > > servlets is /servlets, mind the plural > > (http://www.orionserver.com/docs/orion-web.xml.html). But since > > none of the > > classes in WEB-INF/classes are found there might be yet > another problem. > > Could you perhaps post a zip of your orion\applications\addressbook > > directory tree, I'll try it out and see what I can find. > > > > Marcel > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of > Kevin Jones > > > Sent: Tuesday, May 29, 2001 11:20 AM > > > To: Orion-Interest > > > Subject: Setting up a new web-application > > > > > > > > > I have a web application that works fine on Tomcat 4.0b5. I'm > > > trying to run > > > it on Orion as a proof of concept but I can't get much > working! I've > > > followed the 'atm' example in the notes and have the > > > following structure > > > > > > orion\applications\addressbook > > > orion\applications\addressbook\META-INF > > > orion\applications\addressbook\AddressBook > > > orion\applications\addressbook\AddressBook\WEB-INF > > > orion\applications\addressbook\AddressBook\WEB-INF\classes > > > orion\applications\addressbook\AddressBook\WEB-INF\lib > > > > > > I've updated server.xml (with this " name="AddressBook" > > > path="../applications/AddressBook/" /> ") > > > and default-web-site.xml (with this " > > application="AddressBook" > > > name="AddressBook" root="/AddressBook" />". > > > > > > I can browse to http:\\localhost:8080\AddressBook and it > picks up the > > > welcome-file. > > > I can browse to a simple JSP (that has no beans etc.) > > > I can't browse to any servlet, so > > > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava > > .lab.Browse > > and > > http://localhost:8080/AddressBook/servlet/SimpleServlet > > > > both return "404 Not Found Resource > /AddressBook/servlet/SimpleServlet not > > found on this server" > > > > but both classes are in > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > I can't browse to a JSP that uses beans that are in > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > And I can't get Orion to load an application listener that > is also in > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > > > Orion obviously can't find classes in > > "orion\applications\addressbook\AddressBook\WEB-INF\classes" but > > this should > > be automatically added to the classpath for this application. > > > > What am I missing? I assume it must be configuration > setting but I can't > > find anything in the docs, > > > > Kevin Jones > > DevelopMentor > > www.develop.com > > > > > > > >
RE: Setting up a new web-application
Kevin: If you have configured the /WEB-INF/web.xml file in your deployment with an appropriate servlet definition (this is also where you can use a servlet mapping to point to an alternative "alias" URL to access your servlet, rather than using the /servlet/), the only other thing I see that might be a problem is your reference of port 8080 in the URL. Why are you using 8080 as the port number for your application URL. If the SnoopServlet is working for you on the default port 80, so should your servlet URL. 8080 would be the port on which the application server was listening to requests from the web server, right? Jason Coward Mongoose Technology, Incorporated http://www.mongoosetech.com | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones | Sent: Tuesday, May 29, 2001 8:17 AM | To: Orion-Interest | Subject: RE: Setting up a new web-application | | | BTW | | > According to the 1.4.5 documentation the default web directory | mapping for | > servlets is /servlets, mind the plural | | this can't be right. | | Try browsing to | | http://localhost/servlet/SnoopServlet | | and | | http://localhost/servlets/SnoopServlet | | only the first URL works, | | | Kevin Jones | DevelopMentor | www.develop.com | | > -Original Message- | > From: [EMAIL PROTECTED] | > [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte | > Sent: 29 May 2001 11:47 | > To: Orion-Interest | > Subject: RE: Setting up a new web-application | > | > | > Hi, | > | > According to the 1.4.5 documentation the default web directory | mapping for | > servlets is /servlets, mind the plural | > (http://www.orionserver.com/docs/orion-web.xml.html). But since | > none of the | > classes in WEB-INF/classes are found there might be yet another problem. | > Could you perhaps post a zip of your orion\applications\addressbook | > directory tree, I'll try it out and see what I can find. | > | > Marcel | > | > > -Original Message- | > > From: [EMAIL PROTECTED] | > > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones | > > Sent: Tuesday, May 29, 2001 11:20 AM | > > To: Orion-Interest | > > Subject: Setting up a new web-application | > > | > > | > > I have a web application that works fine on Tomcat 4.0b5. I'm | > > trying to run | > > it on Orion as a proof of concept but I can't get much working! I've | > > followed the 'atm' example in the notes and have the | > > following structure | > > | > > orion\applications\addressbook | > > orion\applications\addressbook\META-INF | > > orion\applications\addressbook\AddressBook | > > orion\applications\addressbook\AddressBook\WEB-INF | > > orion\applications\addressbook\AddressBook\WEB-INF\classes | > > orion\applications\addressbook\AddressBook\WEB-INF\lib | > > | > > I've updated server.xml (with this " > path="../applications/AddressBook/" /> ") | > > and default-web-site.xml (with this " > application="AddressBook" | > > name="AddressBook" root="/AddressBook" />". | > > | > > I can browse to http:\\localhost:8080\AddressBook and it picks up the | > > welcome-file. | > > I can browse to a simple JSP (that has no beans etc.) | > > I can't browse to any servlet, so | > > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava | > .lab.Browse | > and | > http://localhost:8080/AddressBook/servlet/SimpleServlet | > | > both return "404 Not Found Resource | /AddressBook/servlet/SimpleServlet not | > found on this server" | > | > but both classes are in | > "orion\applications\addressbook\AddressBook\WEB-INF\classes" | > | > I can't browse to a JSP that uses beans that are in | > "orion\applications\addressbook\AddressBook\WEB-INF\classes" | > | > And I can't get Orion to load an application listener that is also in | > "orion\applications\addressbook\AddressBook\WEB-INF\classes" | > | > Orion obviously can't find classes in | > "orion\applications\addressbook\AddressBook\WEB-INF\classes" but | > this should | > be automatically added to the classpath for this application. | > | > What am I missing? I assume it must be configuration setting but I can't | > find anything in the docs, | > | > Kevin Jones | > DevelopMentor | > www.develop.com | > | > | > | | |
RE: Setting up a new web-application
BTW > According to the 1.4.5 documentation the default web directory mapping for > servlets is /servlets, mind the plural this can't be right. Try browsing to http://localhost/servlet/SnoopServlet and http://localhost/servlets/SnoopServlet only the first URL works, Kevin Jones DevelopMentor www.develop.com > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte > Sent: 29 May 2001 11:47 > To: Orion-Interest > Subject: RE: Setting up a new web-application > > > Hi, > > According to the 1.4.5 documentation the default web directory mapping for > servlets is /servlets, mind the plural > (http://www.orionserver.com/docs/orion-web.xml.html). But since > none of the > classes in WEB-INF/classes are found there might be yet another problem. > Could you perhaps post a zip of your orion\applications\addressbook > directory tree, I'll try it out and see what I can find. > > Marcel > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones > > Sent: Tuesday, May 29, 2001 11:20 AM > > To: Orion-Interest > > Subject: Setting up a new web-application > > > > > > I have a web application that works fine on Tomcat 4.0b5. I'm > > trying to run > > it on Orion as a proof of concept but I can't get much working! I've > > followed the 'atm' example in the notes and have the > > following structure > > > > orion\applications\addressbook > > orion\applications\addressbook\META-INF > > orion\applications\addressbook\AddressBook > > orion\applications\addressbook\AddressBook\WEB-INF > > orion\applications\addressbook\AddressBook\WEB-INF\classes > > orion\applications\addressbook\AddressBook\WEB-INF\lib > > > > I've updated server.xml (with this " > path="../applications/AddressBook/" /> ") > > and default-web-site.xml (with this " > application="AddressBook" > > name="AddressBook" root="/AddressBook" />". > > > > I can browse to http:\\localhost:8080\AddressBook and it picks up the > > welcome-file. > > I can browse to a simple JSP (that has no beans etc.) > > I can't browse to any servlet, so > > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava > .lab.Browse > and > http://localhost:8080/AddressBook/servlet/SimpleServlet > > both return "404 Not Found Resource /AddressBook/servlet/SimpleServlet not > found on this server" > > but both classes are in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > I can't browse to a JSP that uses beans that are in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > And I can't get Orion to load an application listener that is also in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > Orion obviously can't find classes in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" but > this should > be automatically added to the classpath for this application. > > What am I missing? I assume it must be configuration setting but I can't > find anything in the docs, > > Kevin Jones > DevelopMentor > www.develop.com > > >
RE: Setting up a new web-application
Thanks Marcel, should I mail it privately to you? (if so what is your e-mail address?) Kevin Jones DevelopMentor www.develop.com > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte > Sent: 29 May 2001 11:47 > To: Orion-Interest > Subject: RE: Setting up a new web-application > > > Hi, > > According to the 1.4.5 documentation the default web directory mapping for > servlets is /servlets, mind the plural > (http://www.orionserver.com/docs/orion-web.xml.html). But since > none of the > classes in WEB-INF/classes are found there might be yet another problem. > Could you perhaps post a zip of your orion\applications\addressbook > directory tree, I'll try it out and see what I can find. > > Marcel > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones > > Sent: Tuesday, May 29, 2001 11:20 AM > > To: Orion-Interest > > Subject: Setting up a new web-application > > > > > > I have a web application that works fine on Tomcat 4.0b5. I'm > > trying to run > > it on Orion as a proof of concept but I can't get much working! I've > > followed the 'atm' example in the notes and have the > > following structure > > > > orion\applications\addressbook > > orion\applications\addressbook\META-INF > > orion\applications\addressbook\AddressBook > > orion\applications\addressbook\AddressBook\WEB-INF > > orion\applications\addressbook\AddressBook\WEB-INF\classes > > orion\applications\addressbook\AddressBook\WEB-INF\lib > > > > I've updated server.xml (with this " > path="../applications/AddressBook/" /> ") > > and default-web-site.xml (with this " > application="AddressBook" > > name="AddressBook" root="/AddressBook" />". > > > > I can browse to http:\\localhost:8080\AddressBook and it picks up the > > welcome-file. > > I can browse to a simple JSP (that has no beans etc.) > > I can't browse to any servlet, so > > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava > .lab.Browse > and > http://localhost:8080/AddressBook/servlet/SimpleServlet > > both return "404 Not Found Resource /AddressBook/servlet/SimpleServlet not > found on this server" > > but both classes are in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > I can't browse to a JSP that uses beans that are in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > And I can't get Orion to load an application listener that is also in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" > > Orion obviously can't find classes in > "orion\applications\addressbook\AddressBook\WEB-INF\classes" but > this should > be automatically added to the classpath for this application. > > What am I missing? I assume it must be configuration setting but I can't > find anything in the docs, > > Kevin Jones > DevelopMentor > www.develop.com > > >
RE: Setting up a new web-application
Hi, According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural (http://www.orionserver.com/docs/orion-web.xml.html). But since none of the classes in WEB-INF/classes are found there might be yet another problem. Could you perhaps post a zip of your orion\applications\addressbook directory tree, I'll try it out and see what I can find. Marcel > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones > Sent: Tuesday, May 29, 2001 11:20 AM > To: Orion-Interest > Subject: Setting up a new web-application > > > I have a web application that works fine on Tomcat 4.0b5. I'm > trying to run > it on Orion as a proof of concept but I can't get much working! I've > followed the 'atm' example in the notes and have the > following structure > > orion\applications\addressbook > orion\applications\addressbook\META-INF > orion\applications\addressbook\AddressBook > orion\applications\addressbook\AddressBook\WEB-INF > orion\applications\addressbook\AddressBook\WEB-INF\classes > orion\applications\addressbook\AddressBook\WEB-INF\lib > > I've updated server.xml (with this " path="../applications/AddressBook/" /> ") > and default-web-site.xml (with this " application="AddressBook" > name="AddressBook" root="/AddressBook" />". > > I can browse to http:\\localhost:8080\AddressBook and it picks up the > welcome-file. > I can browse to a simple JSP (that has no beans etc.) > I can't browse to any servlet, so > http://localhost:8080/AddressBook/servlet/com.develop.ewebjava .lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return "404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server" but both classes are in "orion\applications\addressbook\AddressBook\WEB-INF\classes" I can't browse to a JSP that uses beans that are in "orion\applications\addressbook\AddressBook\WEB-INF\classes" And I can't get Orion to load an application listener that is also in "orion\applications\addressbook\AddressBook\WEB-INF\classes" Orion obviously can't find classes in "orion\applications\addressbook\AddressBook\WEB-INF\classes" but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
Setting up a new web-application
I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this " ") and default-web-site.xml (with this "". I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava.lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return "404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server" but both classes are in "orion\applications\addressbook\AddressBook\WEB-INF\classes" I can't browse to a JSP that uses beans that are in "orion\applications\addressbook\AddressBook\WEB-INF\classes" And I can't get Orion to load an application listener that is also in "orion\applications\addressbook\AddressBook\WEB-INF\classes" Orion obviously can't find classes in "orion\applications\addressbook\AddressBook\WEB-INF\classes" but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com