Re: Application Server
Hi! First of all I cannot find www.orionserver.org Second of all, if you mean www.orionserver.com they have their Pricing page that says - Orion Application Server development version (full version for development and for non-commercial deployment) FREE - Orion Application Server for commercial deployment $1500 per physical server So ? Best regards, Kovi At 16:41 2.8.01 +1000, you wrote: >Utech - Han Lim wrote: > > > > Hi, About WebLogic I don't think it's free:( Do you know the free one > beside > > JBoss and JRun Developer Edition? > >orion is free (http://www.orionserver.org), but there are plenty of ppl >running JBoss on BSD, did you post on the JBoss list with your problem? > >cheers >dim > > > > > Thanks. > > > > regards, > > Han Lim > > > > -Original Message- > > From: Moin Anjum H. [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, August 02, 2001 1:39 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Application Server > > > > Hi, > > > > How about WebLogic from BEA Systems. > > > > HTH > > Regards > > Moin, > > > > Utech - Han Lim wrote: > > > > > Does anyone know the good application server that support EJB and J2EE? I > > > found JBoss but I have a problem when running it on FreeBSD machine, any > > > suggestion? > > > > > > Thanks > > > > > > Han Lim
Re: *.properties files
> > > > > > In tomcat 4.0b6 on Win2000 I'm using properties files that are in a jar > > file in WEB-INF/lib. > > > >This is equivalent to putting them unpacked under WEB-INF/classes. The >key issue is that the package naming hierarchy has to match the directory >structure inside the JAR (just like with class names). > >Could you post a specific example of the ResourceBundle.getBundle() call >you are making, and where you have placed the corresponding properties >files? Are you talking to me, (punk ;) ? I think we're getting a little confused here... I'm not having any problems... But for the record: public static String getString(String key, String sport, String pgcode, String lang) { String bundle = BASE_PACKAGE + sport.toLowerCase(engLocale) + "." + sport + pgcode + "rb"; try { ResourceBundle rb = getResourceBundle(bundle, getLocale(lang)); return rb.getString(key); } catch (MissingResourceException ignored) { if (DEBUG) { System.out.println("[ResourceLoader] failed to load " + key + " from " + bundle); } return getString(key, sport, lang); // call to the next loader in the chain } } private static ResourceBundle getResourceBundle(String bundle, Locale locale) { ResourceBundle result = ResourceBundle.getBundle(bundle, locale); if (DEBUG) { System.out.println("[ResourceLoader] bundle loaded:"); System.out.println(" bundle: " + bundle); System.out.println(" locale: " + locale.getCountry() + "_" + locale.getLanguage()); } return result; } I'm using a chain of packages, where the application first looks for the key in the package specific to the sport+page code, then the sport, and finally the global properties (e.g. BV008 --> BV --> ) Jim > > > > > > Jim > > > >Craig McClanahan -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 If we do not succeed, we run the risk of failure.
Dynamic Class Loading - Reflexion failure
Hi, I am facing problems while loading dynamically classes in my servlet. For my application's purposes, I have to generate java code and compile it on the fly, then use it. Using standard reflexion mecanisms, I try to instanciate a new testClass object. If it fails, I fork a new process to generate the class, and retry to instanciate this object again. If testClass.class is not present when I'm starting Tomcat 4.0b6, there is no way i can instanciate a testClass Object. (exceptions are raised in both blocks) If I put testClass.class in the CLASSPATH, after starting Tomcat 4.0b6, then I can instanciate a testClass Object (no exception raised in the first block, second block not reached) If I comment out the first block (I always generate the testClass.class file), then everything works fine, but this is unacceptable. I also tried using classLoader, but failed again. Don't know if it really is Tomcat related. Any clues ? Thanks for the help ! Regards, /Frank public class LoadClassSample extends HttpServlet { ... try { Class testObjClass = Class.forName("testClass"); Object testObject = testObjClass.newInstance(); } catch( ClassNotFoundException CNFException ) { try { Process _proc = Runtime.getRuntime().exec("/usr/lib/java/bin/javac /tmp/testClass.java -d /usr/local/jakarta-tomcat-4.0-b6/webapps/examples/WEB-INF/classes/"); _proc.waitFor(); Class testObjClass = Class.forName("testClass"); Object testObject = testObjClass.newInstance(); ... } catch( Exception PROCException ) { ... } ...
Re: Application Server
Gregor Kovaè wrote: > Hi! > First of all I cannot find www.orionserver.org > Second of all, if you mean www.orionserver.com they have their Pricing page > that says > - Orion Application Server development version (full version for > development and for non-commercial deployment) FREE > - Orion Application Server for commercial deployment $1500 per physical server umm, err... woops... sorry, I should've said open-source... depends on your definition of free (o: > > So ? > > Best regards, > Kovi > > At 16:41 2.8.01 +1000, you wrote: > >Utech - Han Lim wrote: > > > > > > Hi, About WebLogic I don't think it's free:( Do you know the free one > > beside > > > JBoss and JRun Developer Edition? > > > >orion is free (http://www.orionserver.org), but there are plenty of ppl > >running JBoss on BSD, did you post on the JBoss list with your problem? > > > >cheers > >dim > > > > > > > > Thanks. > > > > > > regards, > > > Han Lim > > > > > > -Original Message- > > > From: Moin Anjum H. [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, August 02, 2001 1:39 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Application Server > > > > > > Hi, > > > > > > How about WebLogic from BEA Systems. > > > > > > HTH > > > Regards > > > Moin, > > > > > > Utech - Han Lim wrote: > > > > > > > Does anyone know the good application server that support EJB and J2EE? I > > > > found JBoss but I have a problem when running it on FreeBSD machine, any > > > > suggestion? > > > > > > > > Thanks > > > > > > > > Han Lim
Dynamic Class Loading - Reflexion failure
Hi, I am facing problems while loading dynamically classes in my servlet. For my application's purposes, I have to generate java code and compile it on the fly, then use it. Using standard reflexion mecanisms, I try to instanciate a new testClass object. If it fails, I fork a new process to generate the class, and retry to instanciate this object again. If testClass.class is not present when I'm starting Tomcat 4.0b6, there is no way i can instanciate a testClass Object. (exceptions are raised in both blocks) If I put testClass.class in the CLASSPATH, after starting Tomcat 4.0b6, then I can instanciate a testClass Object (no exception raised in the first block, second block not reached) If I comment out the first block (I always generate the testClass.class file), then everything works fine, but this is unacceptable. I also tried using classLoader, but failed again. Don't know if it really is Tomcat related. Any clues ? Thanks for the help ! Regards, /Frank public class LoadClassSample extends HttpServlet { ... try { Class testObjClass = Class.forName("testClass"); Object testObject = testObjClass.newInstance(); } catch( ClassNotFoundException CNFException ) { try { Process _proc = Runtime.getRuntime().exec("/usr/lib/java/bin/javac /tmp/testClass.java -d /usr/local/jakarta-tomcat-4.0-b6/webapps/examples/WEB-INF/classes/"); _proc.waitFor(); Class testObjClass = Class.forName("testClass"); Object testObject = testObjClass.newInstance(); ... } catch( Exception PROCException ) { ... } ...
Re: Beyond Tomcat 4..?
> Experimenting with the "new I/O" calls is certainly something I'm > interested in exploring (along with performance tuning in general). But > the reality is that what actually gets added post-4.0 is based on what > features people suggest, combined with what features people actually write > code for. > > Are there particular things you're interested in seeing? > > Craig McClanahan Improved performance is always welcome. In general though, one of the main attractions for myself with regards to Tomcat is that it's a very good servlet engine, but doesn't try to go much further (no EJB container for example). I'd hate to see Tomcat "bloat up" ; that's where bugs and strange issues can become less manageable. Things like server-side includes for the HTTP part of Tomcat aren't really useful to me ; I prefer to let Tomcat handle the Java side of things, and let Apache do the rest. I don't think Tomcat should start trying to do things are beyond the scope of being a servlet engine (although a *basic* HTTP server is good for initial setup). One suggestion however: when deploying WAR files, it's a bit annoying to have to fiddle with web.xml in the uncompressed files in order to modify servlet init-params for example. It would be good to allow an administrator to have some (standardised?) mechanism to deploy a WAR file as a "black box" and then override certain webapp params (from some sort of admin tool or interface?) without touching the webapp itself. -Chris Brown PS: I'd love to code some of these bits and pieces myself, but I don't have the time to implement quality code that doesn't upset other components.
Compile JSP with Tomcat/IBM JDK 1.2.2/AIX4.3.3
Hi All, I managed to install Tomcat 3.2.3 on AIX with IBM's JDK 1.2.2. I also deployed my application on it using a .war file. But, when I request a jsp page, I get an exception "sun.tools.javac.Main" etc Of course, this is related to the fact that I'm not using sun's jdk. My question: - Can I configure Tomcat to use IBM's javac for compiling jsp's? - Can I use conf/web.xml () to specify the classname (I read that these directives are not working, is that correct?)? - What is the classname of the IBM javac compiler? Thanx for your help. Klaas
RE: Compile JSP with Tomcat/IBM JDK 1.2.2/AIX4.3.3
Klaas van der Ploeg wrote: > I managed to install Tomcat 3.2.3 on AIX with IBM's JDK 1.2.2. I also > deployed my application on it using a .war file. But, when I > request a jsp page, I get an exception "sun.tools.javac.Main" etc > > Of course, this is related to the fact that I'm not using sun's jdk. > > My question: > - Can I configure Tomcat to use IBM's javac for compiling jsp's? > - Can I use conf/web.xml () to specify the > classname (I read that these directives are not working, is that > correct?)? > - What is the classname of the IBM javac compiler? I don't know about using the javac from IBM, but you may want to try using Jikes with Tomcat. There is some info at http://www.jguru.com/faq/view.jsp?EID=307643 but read the comments, because the answer is out of date for Tomcat 3.2, which no longer reads TOMCAT_HOME/conf/web.xml. More info on Jikes at http://oss.software.ibm.com/developerworks/opensource/jikes/ -- Andrew -- Tell the US to free Dmitry Sklyarov! http://www.freesklyarov.org
.*session.*
Hi, Humm I think I will have to developp again somethnig... So: -1- Can you be more precise about 'i've implemented my own sessions'? -2- Are you speaking about SessionInterceptor class? -3- Could you tell me about the changes you made on the Tomcat sources (if any)? Hop you will answer... (or someone else ;)) Loïc Lefèvre -Message d'origine- De : Michael Weissenbacher [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 1 août 2001 19:35 À : '[EMAIL PROTECTED]' Objet : RE: jsessionid 1: yes 2+3: i'm doing everything on my own, i've implemented my own sessions there may be better solutions, but it works for me and it is portable! ;) -Original Message- From: Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 6:08 PM To: Mailing List Tomcat Subject: jsessionid Hemm, -1- Did you encounter problems using Session under Tomcat? -2- If yes, did you resolve it? -3- If yes, how? -4- What should I do when using Session? -5- What should I take care of? -6- ... Configuration: - Apache 1.3.12 - Tomcat 3.2.3 - mod_jk.so 1.24 I'm very very confused about that... Thanks in advance Loïc Lefèvre
Installing apache+tomcat
Hi everybody, I'm installing apache+tomcat in Suse Linus OS. When i run apache start, i receive an error message reporting that is missing the jserv.conf file. Thus this mean that i've to install the jserv? Thanks in advance for your help. Best regards, Osvaldo Brito
Is it possible to turn page-caching off?
Page caching can be a real pain in the butt when you are debugging and Tomcat picks up old copies of your files from its work directory. Can I config Tomcat to not do this? Joar
Page Buffer Size??
Hi all How can change onload page buffer size in tomcat-3.2.1? Is there any possibility? Thanx in adv Lax
Re: Limitations in using a different Ajp port than the standard ? (WAS Re: SAAAAAAAM! :))
FYI, it works on Tomcat 3.2.2 ... but not on Tomcat 3.3-b1 and not with the nighlty build of today (2/8/2001) ... -Vincent - Original Message - From: "Vincent Massol" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Pier P. Fumagalli" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Sam Ruby" <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 2:16 PM Subject: Limitations in using a different Ajp port than the standard ? (WAS Re: SAAAM! :)) > Hi, > I would like to use different ports than the standard Tomcat ones. For the > HTTP listener, it works fine. However I am having trouble for the Ajp > listener which is used to stop tomcat. The issue is the following : > * When I start Tomcat I use my own server.xml file which is located in my > own directory (I start Tomcat using the -config switch). In server.xml I > also set the ContextManager home to be my own directory. So Tomcat generates > an ajp12.id file in _that_ directory (and not into Tomcat home directory, > which is normal and fine). The tomcat home directory is set to be the > directory where I have installed Tomcat. > * No, when I want to stop Tomcat, it seems Tomcat looks for an ajp12.id file > but in the ${tomcat.home}/conf and _not_ in the directory defined in the > ContextManager home or where my server.xml file is. > > In other words, it seems it is not possible to start 2 instances of Tomcat > and only stop one running instance (the one with the different ajp port) by > using only one Tomcat installation ? > > Is that a bug, a feature or have I forgotten something ? > > Find below my start, stop scripts and relevant portion of server.xml > > Thanks a lot. > -Vincent > > start script --- > > > > > > > > > > > > > > > > > > stop script --- > > > > > > > > > > > > > > > > > > > server.xml > > [...] > className="org.apache.tomcat.modules.server.Ajp12Interceptor" > tomcatAuthentication="false" > port="8777" /> > > > > > - Original Message - > From: "Sam Ruby" <[EMAIL PROTECTED]> > To: "Pier P. Fumagalli" <[EMAIL PROTECTED]> > Cc: "Vincent Massol" <[EMAIL PROTECTED]> > Sent: Thursday, August 02, 2001 2:27 AM > Subject: Re: SAAAM! :) > > > > Vincent, can you take a look at changing the port numbers from 8080 to > > something unique? Preferably, something controlable via a property? > > > > Pier - I was doing a test build of some changes to cactus...sorry. > > > > - Sam Ruby > > > > > > "Pier P. Fumagalli" <[EMAIL PROTECTED]> on 08/01/2001 09:23:49 PM > > > > To: Sam Ruby/Raleigh/IBM@IBMUS > > cc: > > Subject: SAAAM! :) > > > > > > > > What's going on on Nagoya and Tomcat 4.0? Huh? :) > > You little brat binding to my network ports and giving me BindExceptions > :) > > Can you remove the config for the WARP connector from your TC4 > > configuration? > > Cheers :) > > > > Pier > > > > > > > > > >
Re: Beyond Tomcat 4..?
> Are there particular things you're interested in seeing? I'll get slapped for this - configuration utilities? :-)
JDBC Realms
I wonder if anyone else has come across this. I'm happily using JDBC Realms with Tomcat v3.3. I would like to let my users change their passwords - of course I can put up a screen that lets them alter the value of their password on the database, but then they have to log in again with the new password. Is there any way round this? - ie to let Tomcat know that they've entered a new password? Many thanks for any help. Mark
How to hide login pages
I'm using FORM authentication and I would like to hide the login JSP files so the users don't access them directly. For example, I don't want the user to be able to enter the URL http://myserver/mywebapp/mylogin.jsp since this will not work (since there is no original url to redirect them to they get redirected to j_security_check). I've tried putting my login files in WEB-INF but then when they try to access a page in my webapp they get file not found error. I've tried putting the login files in a secured directory under my webapp but this puts the ContextManager in an infinite loop. Any ideas? Thanks, Dave
Tomcat Files Blocking
hello, what do I have to do in order to prevent tomcat 3.2 from serving certain file types. For example I don't want tomcat to serve files ending with .pwd Instead tomcat should send an error message. Thanks a lot Falk
RE: Security hole
Just delete the WAR files you don't want plus the relativ directories from you webapps directory ;) -Message d'origine- De : Claus Jul Larsen [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 2 août 2001 09:16 À : Tomcat User (E-mail) Objet : Security hole Hi, I've a strangely problem: When I start the tomcat with the ./startup.sh Output: 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( dev.miraculix.dk: ) Starting tomcat. Check logs/tomcat.log for error messages 2001-08-01 11:53:31 - ContextManager: Tomcat classpath = /usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasper.j ar:/usr/local/jakarta-tomcat/lib/jaxp.jar:/usr/local/jakarta-tomcat/lib/pars er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat/l ib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/java/jdk1.3/lib/too ls.jar:/usr/java/jdk1.3 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /admin ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /examples ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /test ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /KEYS ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /LICENSE ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /RELEASE-NOTES ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /bin ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /conf ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /doc ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /lib ) 2001-08-01 11:53:31 - ContextManager: Adding context Ctx( /src ) 2001-08-01 11:53:31 - ContextManager: calc work dir /usr/local/jakarta-tomcat/work 2001-08-01 11:53:32 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-08-01 11:53:32 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 But i've only have context for dev.miraculix.dk and no more i server.xml The context manager adds /admin /examples /test /KEYS /LICENSE and more. These contexts isn't in the Server.xml ... but is still run them ???! I want only dev.miraculix.dk on /web-staff/www.miraculix.dk and no more This is version 3.2.3... Thanx Med venlig hilsen Claus Jul Larsen | System Developer | [EMAIL PROTECTED] | Direkte teksttelefon: 7731 2010, ring først til | teksttelefoncenteret på 7011 4411 og bed om | nummeret. e|novasion a·s | store kongensgade 23a | DK - 1264 københavn k | tlf: +45 7731 1940 | fax: +45 7731 1950 | www.enovasion.dk > Med venlig hilsen > > Claus Jul Larsen > | System Developer > | [EMAIL PROTECTED] > | Direkte teksttelefon: 7731 2010, ring først til > | teksttelefoncenteret på 7011 4411 og bed om > | nummeret. > > e|novasion a·s > | store kongensgade 23a > | DK - 1264 københavn k > | tlf: +45 7731 1940 > | fax: +45 7731 1950 > | www.enovasion.dk > >
"Error while opening the workers" problem
Hi, I'm having difficulty setting up Tomcat 3.2.3 with Apache 1.3.20 on Solaris 7. I've installed Tomcat and all the examples work, Apache works, and I've compiled mod_jk, mod_jk loads into Apache ok. I've removed the HttpConnectionHandler from server.xml since Apache will be handling static requests. I start Tomcat and it runs fine, I start Apache and I get the above error in Apache's error_log, nothing is written to mod_jk's log and Apache terminates. The worker.properties file exists and is readable by the user and group Apache runs as. My TOMCAT_HOME is correct, as is the path to JAVA_HOME. Here's my VirtualHost config: ServerName some.server.name DocumentRoot /path/to/htdocs LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog /path/to/logs/apache_log common JkLogFile /path/to/logs/jk.log JkWorkersFile /path/to/conf/workers.properties JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 I've tried trussing the Apache startup, all I get is a call to stat(): stat("/path/to/workers.properties", 0xFFBEB148) = 0 Shortly after is an open of the jk.log where it writes: [jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done ... etc, which looks ok to me. My workers.properties file is as default, except I've changed the port number (and corresponding entries, a standalone Tomcat runs perfectly). I'm obviously missing something, but I can't work out what it is. Any help much appreciated! Thanks, Steven.
Security and User management
Hi everyone, Is there a package/library somewhere to do users management? I read in the documentation on how to use JDBCRealm to do the authetication while keeping the users database in a database but I cannot find any premade library that would implement the higher-level functions like adding users, adding role, managing list of users and roles, ... . Anyone has or know of such security library? Thanks in advance, Francois Bronsard
ref: JRE
Sorry about the v card. It gets attached automatically to my e-mails. Let me elaborate about my requirements. I have created a set-up that uses the jre 1.3 but when I start tomcat I get errors about class files not being instantiated. If I install tomcat using the jdk then I do not get those errors. This lead me to believe that you need the full jdk to install and run Tomcat. Is this correct? Regards Alex
Apache 1.3 + Tomcat strange error
I'm trying to put tomcat to work with an apache 3.20 and it has been giving me a lot headache. First, i've putten tomcat runig standalone. It starts ok, responds to http on 8080 and runs normally all jsp i've tested. Then, i've installed apache, compiled mod_jserv as u_guide.html said and put into /etc/httpd/modules and included /usr/local/tomcat/conf/tomcat.conf into httpd.conf . Then, each time I start apache, it sais "Failed" and log sais Error getting local address getpeername: Socket operation on non-socket getsockname: Socket operation on non-socket Apache starts ok without mod_jserv. I've tried yeat use mod_jk instead, the error was the same. Tried yet to put one ajp1.3 worker on 8009 and change mod_jk.conf to send requests to it, didnt work anyway. If anyone has ever seen something like this, please, help-me, i haven't seen anything like this in the archives Thanks, Rodrigo Virote Kassick (quèsçikê/paiacan) Ciências da Computação/UFRGS
mod_jk.so & jserv.so
I have installed Tomcat 3.2.3 to run with Apache 1.3.14-2.6.2 & am unable to use JSP. The following message is rec'd when our Webmaster tries to access the jsp file, 2001-08-02 09:56:46 - Ctx( ): 404 R( + /le_search/index_2.jsp + null) JSP file not found The file is there & we can access the same version of the file in HTML. I believe that I still do not have something quite right w/in the configuration of Tomcat/Apache. I've gone through the documentation, but it seems to be dated as far as the implementation of Java Servlet and JavaServer Pages are concerned. Or I haven't found the documentation that refers to it. I have downloaded the binaries from http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/ I've also read several FAQs & from the user list archive about others having problems finding the proper mod_jk.so or jserv.so. From the binary site http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/linux/ there were two files available, mod_jk-eapi.so mod_jk-noeapi.so Which is the correct file to use? Also are there any other JAVA components besides the JDK for running Tomcat/Apache & JSP? Thank you in advance for any assistance. -- Simone L. Crider Systems Administrator Anteon/NOAA National Coastal Data Development Center Building 1100, Room 101 Stennis Space Center, MS 39529 Phone: (228) 688-2460 Fax:(228) 688-2968 email: [EMAIL PROTECTED]
Is there a way to get the Referrer information from a request?
I printed out the html header, and it did not include the referrer field. Is there another way to get the referrer field? Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly
Where should I put tools.jar !!!
Hi, I have tools.jar in my classpath set in /etc/profile. Now when tomcat startsup via a script in /etc/init.d, and I try and recompile jsp's, it does not locate tools.jar for "on-the-fly" jsp compilation I finally copied it to WEB-INF/lib, and restarted tomcat. That works, but I am sure that there is a better way to set the calsspath etc. Any ideas ? Thanks Shahed - Original Message - From: "Luis Olivares" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 1:03 PM Subject: Re: Deploying precompiled jsp without .jsp file > Pretty interesting, so now I have all my webapp "extra-packed". > > Does this method causes any secondary effects? > > Regards. > > - Original Message - > From: "Randy Layman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 02, 2001 11:28 AM > Subject: RE: Deploying precompiled jsp without .jsp file > > > > > > It won't work quite the way that you are proposing, but there is a > > way to accomplish this. First, use jspc.sh|.bat to precompile your JSPs. > > (Use the -webxml option). Now, use javac to compile the .java from jspc > to > > .class. Copy this to the WEB-INF/classes or incorporate into a jar in > > WEB-INF/lib. Now modify your web.xml file to include the fragment > produced > > by jspc. And that's it. All of your webapp is now a bunch of servlets > > without any JSP files. > > > > Randy > > > > > > > -Original Message- > > > From: Shahed A Moolji [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, August 02, 2001 12:15 PM > > > To: [EMAIL PROTECTED] > > > Subject: Deploying precompiled jsp without .jsp file > > > > > > > > > Hi, > > > > > > Is it possible to distribute precompiled jsp's using > > > standalone tomcat, but not distribute the .jsp source file ? > > > > > > Also, is the same possible when tomcat is integrated with > > > Apache etc ? > > > > > > ie. I go to http://myserver.com:8080/a.jsp and a.jsp does not exist > > > under the webapps/ directory, but a precompiled class > > > does exist under the WORK directory. > > > > > > Thanks > > > Shahed. > > > > >
Re: Application Server
How can I send mail to the server? When I send a message to the newsgroup, I receive the following message: Hi. This is the qmail-send program at apache.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: ezmlm-reject: fatal: Sorry, I don't accept messages of MIME Content-Type 'multipart/alternative' (#5.2.3) --- Below this line is a copy of the message. Return-Path: <[EMAIL PROTECTED]> Received: (qmail 93996 invoked from network); 2 Aug 2001 21:03:59 - Received: from mail301.mail.bellsouth.net (HELO imf01bis.bellsouth.net) (205.152.58.161) by h31.sny.collab.net with SMTP; 2 Aug 2001 21:03:59 - Received: from wisdom ([66.20.122.79]) by imf01bis.bellsouth.net (InterMail vM.5.01.01.01 201-252-104) with SMTP id <20010802210431.BNWQ3259.imf01bis.bellsouth.net@wisdom> for <[EMAIL PROTECTED]>; Thu, 2 Aug 2001 17:04:31 -0400 Message-ID: <002a01c11ba8$a883cc30$3f7cfea9@wisdom> From: "Kyle Wayne Kelly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Is there a way to get the Referrer information from a request? Date: Thu, 2 Aug 2001 16:12:53 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0027_01C11B6D.FBDD63E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. --=_NextPart_000_0027_01C11B6D.FBDD63E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I printed out the html header, and it did not include the referrer = field. Is there another way to get the referrer field? Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly --=_NextPart_000_0027_01C11B6D.FBDD63E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I printed out the html header, and it = did not=20 include the referrer field. Is there another way to get the = referrer=20 field? Kyle Wayne Kelly(504)391-3985http://www.cs.uno.edu/~kkelly";>http://www.cs.uno.edu/~kkelly<= /FONT> --=_NextPart_000_0027_01C11B6D.FBDD63E0-- Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "arnox" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 1:33 PM Subject: RE: Application Server > Orion is quite excellent :) (no I'm not affiliated in any way). It is > fast, free for development (as long as it takes..), and at $1500 it really > isn't all that much compared to competition. > > I tested it on SuSE 7.2 and Windows and haven't found a problem. > I would definitely recommend it. > > -arnox > > -Original Message- > From: Gregor Kovae [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 02, 2001 3:27 AM > To: [EMAIL PROTECTED] > Subject: Re: Application Server > > > Hi! > First of all I cannot find www.orionserver.org > Second of all, if you mean www.orionserver.com they have their Pricing page > that says > - Orion Application Server development version (full version for > development and for non-commercial deployment) FREE > - Orion Application Server for commercial deployment $1500 per physical > server > > So ? > > Best regards, > Kovi > > > At 16:41 2.8.01 +1000, you wrote: > >Utech - Han Lim wrote: > > > > > > Hi, About WebLogic I don't think it's free:( Do you know the free one > > beside > > > JBoss and JRun Developer Edition? > > > >orion is free (http://www.orionserver.org), but there are plenty of ppl > >running JBoss on BSD, did you post on the JBoss list with your problem? > > > >cheers > >dim > > > > > > > > Thanks. > > > > > > regards, > > > Han Lim > > > > > > -Original Message- > > > From: Moin Anjum H. [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, August 02, 2001 1:39 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Application Server > > > > > > Hi, > > > > > > How about WebLogic from BEA Systems. > > > > > > HTH > > > Regards > > > Moin, > > > > > > Utech - Han Lim wrote: > > > > > > > Does anyone know the good application server that support EJB and > J2EE? I > > > > found JBoss but I have a problem when running it on FreeBSD machine, > any > > > > suggestion? > > > > > > > > Thanks > > > > > > > > Han Lim > > >
Re: Is there a way to get the Referrer information from a request?
The previous email messages were sent under my wife's email. Sorry for any confusion. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "Beth Kelly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 5:20 PM Subject: Re: Is there a way to get the Referrer information from a request? > I have read that a million times, but that field is not in the header > either. > Kyle Wayne Kelly > (504)391-3985 > http://www.cs.uno.edu/~kkelly > - Original Message - > From: "Corey A. Johnson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 02, 2001 3:05 PM > Subject: Re: Is there a way to get the Referrer information from a request? > > > > this will do it: > > > > request.getHeader("referer"); > > > > purposely misspell referrer. > > > > Kyle Wayne Kelly wrote: > > > > > I printed out the html header, and it did not include the referrer > field. > > > Is there another way to get the referrer field? > > > > > > Kyle Wayne Kelly > > > (504)391-3985 > > > http://www.cs.uno.edu/~kkelly > > > > -- > > corey a. johnson <><> cni <><> 1.321.259.1984 <><> 1.800.264.5547 > > > > > >
Re: Is there a way to get the Referrer information from a request?
Sorry if this is too obvious, but is the request the result of a normal browser following a link embedded in a web page to get to your servlet/jsp? If you type the URL in the browser location bar, or use a custom client that doesn't set the header, it won't be there. Jim --- Beth Kelly <[EMAIL PROTECTED]> wrote: > Good points. I printed out all of the headers fields, and values. > The > header does not contain a Referrer, Referer, referer, or referrer > field. > > > Kyle Wayne Kelly > (504)391-3985 > http://www.cs.uno.edu/~kkelly > - Original Message - > From: "Dan Garcia" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 02, 2001 3:20 PM > Subject: Re: Is there a way to get the Referrer information from a > request? > > > > On Thu, 2 Aug 2001, Beth Kelly wrote: > > > I have read that a million times, but that field is not in the > header > > > either. > > > > I notice you keep writing it as referrer in your emails, however > the > proper > > spelling fr the -header- is referer - one r :) > > > > Note: that sometimes there won't be a referer... > > > > --Dg > > > > > Kyle Wayne Kelly > > > (504)391-3985 > > > http://www.cs.uno.edu/~kkelly > > > - Original Message - > > > From: "Corey A. Johnson" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Thursday, August 02, 2001 3:05 PM > > > Subject: Re: Is there a way to get the Referrer information from > a > request? > > > > > > > > > > this will do it: > > > > > > > > request.getHeader("referer"); > > > > > > > > purposely misspell referrer. > > > > > > > > Kyle Wayne Kelly wrote: > > > > > > > > > I printed out the html header, and it did not include the > referrer > > > field. > > > > > Is there another way to get the referrer field? > > > > > > > > > > Kyle Wayne Kelly > > > > > (504)391-3985 > > > > > http://www.cs.uno.edu/~kkelly > > > > > > > > -- > > > > corey a. johnson <><> cni <><> 1.321.259.1984 <><> > 1.800.264.5547 > > > > > > > > > > > > > > > > > > __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Is there a way to get the Referrer information from a request?
Good points. I printed out all of the headers fields, and values. The header does not contain a Referrer, Referer, referer, or referrer field. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "Dan Garcia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 3:20 PM Subject: Re: Is there a way to get the Referrer information from a request? > On Thu, 2 Aug 2001, Beth Kelly wrote: > > I have read that a million times, but that field is not in the header > > either. > > I notice you keep writing it as referrer in your emails, however the proper > spelling fr the -header- is referer - one r :) > > Note: that sometimes there won't be a referer... > > --Dg > > > Kyle Wayne Kelly > > (504)391-3985 > > http://www.cs.uno.edu/~kkelly > > - Original Message - > > From: "Corey A. Johnson" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, August 02, 2001 3:05 PM > > Subject: Re: Is there a way to get the Referrer information from a request? > > > > > > > this will do it: > > > > > > request.getHeader("referer"); > > > > > > purposely misspell referrer. > > > > > > Kyle Wayne Kelly wrote: > > > > > > > I printed out the html header, and it did not include the referrer > > field. > > > > Is there another way to get the referrer field? > > > > > > > > Kyle Wayne Kelly > > > > (504)391-3985 > > > > http://www.cs.uno.edu/~kkelly > > > > > > -- > > > corey a. johnson <><> cni <><> 1.321.259.1984 <><> 1.800.264.5547 > > > > > > > > > > >
Re: Is there a way to get the Referrer information from a request?
At 03:35 PM 8/2/2001, you wrote: >Tim O'Neil at [EMAIL PROTECTED] wrote: > > > Your web server must not be setting it then. What server > > are you using? Write a quick perl script that prints out > > all the headers. > >Can't believe you are suggesting to use PERL here... >Use the SnoopServlet... It does the job for you... :) Oh whatever. I get yelled at by people who refute all code but java, people who think perl is fine and hate java, think pgp is the answer, believe in python as the future... you name it, I've met some one who uses only that. You can't win. I just try to get the project done. Sometimes java isn't the answer.
Re: Is there a way to get the Referrer information from a request?
Tim O'Neil at [EMAIL PROTECTED] wrote: > Your web server must not be setting it then. What server > are you using? Write a quick perl script that prints out > all the headers. Can't believe you are suggesting to use PERL here... Use the SnoopServlet... It does the job for you... :) Pier
RE: viewing application/msword using TOMCAT
if your question is how to launch WORD automatically when opening a doc file from web browser then the answer is to configure mime-types on TOMCAT side, was it web.xml where you do it? don't remember... --V > -Original Message- > From: jingi [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 02, 2001 4:34 PM > To: [EMAIL PROTECTED] > Subject: viewing application/msword using TOMCAT > > > how to view application/msword file on browser side using > TOMCAT ? > thanks for help in advance. > > -jingi > *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ***
Bug: 3.3b1, cannot compile auto-generated java (ServletException(Throwable))
Hi, After asking about classloader/XML problems I followed some advice and tried 3.3-b1. This gives the following error: In the auto-generated JSP code (in work/DEFAULT/jsp) the lines } catch (Throwable throwable) { throw new ServletException(throwable); } near the end of the jsp code generates the error org.apache.jasper.JasperException: Unable to compile D:\jakarta-tomcat-3.3-b1\work\DEFAULT\jsp\pay_in_1.java:125: Incompatible type for constructor. Can't convert java.lang.Throwable to java.lang.String. throw new ServletException(throwable); 1 error at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:770) at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:623) at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:437) at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:961) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:866) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:824) at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Interceptor.java:195) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:438) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:505) at java.lang.Thread.run(Thread.java:484) The installation is pretty standard - all the app-related jars are in the apps directory and I'm using JDK1.3 and Apache 1.3.12 (OpenSA 0.2). Andrew
AW: I need help about sessions!
Sorry, can't provide direct help, just some hints that might help you to track this down: - check that the servlets are in the same context - redirect to a modified snoop servlet that logs some additional attributes: request.getRequestedSessionId() request.isRequestedSessionIdValid() request.isRequestedSessionIdFromCookie() request.isRequestedSessionIdFromUrl() > -Ursprüngliche Nachricht- > Von: Loïc Lefèvre [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 2. August 2001 14:30 > An: Mailing List Tomcat > Betreff: http://198.70.186.1/help.gif"; > onclick="alert('I need help about sessions!')" border=0> > >
RE: Application Server
The important bit is: > ezmlm-reject: fatal: Sorry, I don't accept messages of MIME > Content-Type > 'multipart/alternative' (#5.2.3) The lesson here is, use plain text, like it says in the "welcome" message we're all sent when we sign on to the mailing list. In Outlook, you can set this in the dialog run from the "Tools/Options" menu--it's on the "Mail Format" page. You can also set this on each message, by selecting the "Format/Plain Text" menu. -- Bill K. > -Original Message- > From: Beth Kelly [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 02, 2001 4:21 PM > To: [EMAIL PROTECTED] > Subject: Re: Application Server > > > How can I send mail to the server? When I send a message to > the newsgroup, > I receive the following message: > > > Hi. This is the qmail-send program at apache.org. > I'm afraid I wasn't able to deliver your message to the > following addresses. > This is a permanent error; I've given up. Sorry it didn't work out. > > <[EMAIL PROTECTED]>: > ezmlm-reject: fatal: Sorry, I don't accept messages of MIME > Content-Type > 'multipart/alternative' (#5.2.3) > > --- Below this line is a copy of the message. > > Return-Path: <[EMAIL PROTECTED]> > Received: (qmail 93996 invoked from network); 2 Aug 2001 > 21:03:59 - > Received: from mail301.mail.bellsouth.net (HELO > imf01bis.bellsouth.net) > (205.152.58.161) > by h31.sny.collab.net with SMTP; 2 Aug 2001 21:03:59 - > Received: from wisdom ([66.20.122.79]) by imf01bis.bellsouth.net > (InterMail vM.5.01.01.01 201-252-104) with SMTP > id <20010802210431.BNWQ3259.imf01bis.bellsouth.net@wisdom> > for <[EMAIL PROTECTED]>; > Thu, 2 Aug 2001 17:04:31 -0400 > Message-ID: <002a01c11ba8$a883cc30$3f7cfea9@wisdom> > From: "Kyle Wayne Kelly" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: Is there a way to get the Referrer information from > a request? > Date: Thu, 2 Aug 2001 16:12:53 -0700 > MIME-Version: 1.0 > Content-Type: multipart/alternative; > boundary="=_NextPart_000_0027_01C11B6D.FBDD63E0" > X-Priority: 3 > X-MSMail-Priority: Normal > X-Mailer: Microsoft Outlook Express 5.50.4522.1200 > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > > This is a multi-part message in MIME format. > > --=_NextPart_000_0027_01C11B6D.FBDD63E0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > I printed out the html header, and it did not include the referrer = > field. Is there another way to get the referrer field? > > Kyle Wayne Kelly > (504)391-3985 > http://www.cs.uno.edu/~kkelly > > --=_NextPart_000_0027_01C11B6D.FBDD63E0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > > charset=3Diso-8859-1"> > > > > > I printed out the html > header, and it = > did not=20 > include the referrer field. Is there another way to get the = > referrer=20 > field? > > Kyle Wayne > Kelly(504)391-3985 > href=3D"http://www.cs.uno.edu/~kkelly";>http://www.cs.uno.edu/~ > kkelly<= > /FONT> > > --=_NextPart_000_0027_01C11B6D.FBDD63E0-- > > > Kyle Wayne Kelly > (504)391-3985 > http://www.cs.uno.edu/~kkelly > - Original Message - > From: "arnox" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 02, 2001 1:33 PM > Subject: RE: Application Server > > > > Orion is quite excellent :) (no I'm not affiliated in any > way). It is > > fast, free for development (as long as it takes..), and at > $1500 it really > > isn't all that much compared to competition. > > > > I tested it on SuSE 7.2 and Windows and haven't found a problem. > > I would definitely recommend it. > > > > -arnox > > > > -Original Message- > > From: Gregor Kovae [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, August 02, 2001 3:27 AM > > To: [EMAIL PROTECTED] > > Subject: Re: Application Server > > > > > > Hi! > > First of all I cannot find www.orionserver.org > > Second of all, if you mean www.orionserver.com they have > their Pricing > page > > that says > > - Orion Application Server development version (full version for > > development and for non-commercial deployment) FREE > > - Orion Application Server for commercial deployment $1500 > per physical > > server > > > > So ? > > > > Best regards, > > Kovi > > > > > > At 16:41 2.8.01 +1000, you wrote: > > >Utech - Han Lim wrote: > > > > > > > > Hi, About WebLogic I don't think it's free:( Do you > know the free one > > > beside > > > > JBoss and JRun Developer Edition? > > > > > >orion is free (http://www.orionserver.org), but there are > plenty of ppl > > >running JBoss on BSD, did you post on the JBoss list with > your problem? > > > > > >cheers > > >dim > > > > > > > > > > > Thanks. > > > > > > > > regards, > > > > Han Lim > > > > > > > > -Original Message- > > > > From: Moin Anjum H. [m
tomcat & apache
how do i bind tomcat and apache?
TOMCAT won't compile, problem somewhere between jakarta servletapi and ant, please help
i'm trying to build tomcat 3.2.3 from source code on FreeBSD-4.3 STABLE i'm stuck on step jakarta-servletapi su-2.05# echo $JAKARTA_HOME /usr/local/java/JAKARTA su-2.05# cd $JAKARTA_HOME/jakarta-servletapi su-2.05# pwd /usr/local/java/JAKARTA/jakarta-servletapi su-2.05# sh build.sh dist expr: syntax error Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main su-2.05# what am i missing? i compiled ant .. it said at the end that it compiled sucefully
Re: Apache-Tomcat configuration
Hi ... i've changed the path adding the context name. It worked only using tomcat but it still doesn't work using apache. Alexis Neelakshi wrote: > Are you trying to load images from the relative path? > You will have to specify the path as > /mycontext/images/myimage.gif > instead of images/myimage.gif > as later works only with tomcat, former with both. > > Alexis Alarcón Barra wrote: > > > > Hi, i'm using Apache 1.3.12 and Tomcat 3.2.3. They work separately. Then > > i'll join them. This works but when i'm trying to load a jsp page, it > > works(executes the code) but it doesn't load any images. Anyone knows > > why ? > > > > Alexis > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
tomcat-user@jakarta.apache.org
<% for (int i=0; i <% } %> Why isn't this allowed? It seems such a useful feature! And if this isn't allowed, how can I do it? Tomcat 4 beta 6. John Baker -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Re: Is there a way to get the Referrer information from a request?
I have read that a million times, but that field is not in the header either. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "Corey A. Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 3:05 PM Subject: Re: Is there a way to get the Referrer information from a request? > this will do it: > > request.getHeader("referer"); > > purposely misspell referrer. > > Kyle Wayne Kelly wrote: > > > I printed out the html header, and it did not include the referrer field. > > Is there another way to get the referrer field? > > > > Kyle Wayne Kelly > > (504)391-3985 > > http://www.cs.uno.edu/~kkelly > > -- > corey a. johnson <><> cni <><> 1.321.259.1984 <><> 1.800.264.5547 > >
JDBC with Tomcat and Cocoon
Hi all, I have Linux RedHat Apache 1.3.19 Tomcat 3.2.2 Cocoon 1.8.2 mySQL 3.23.40-1 I'm trying to connect my websites to the mysqldatabase. I cannot get my own code to work. I cannot get the cocoon example codes to work (in cocoon/samples/sql). The error message I get every time is - Error found handling the request. java.lang.ClassNotFoundException: _var._tomcat._webapps._cocoon._vt._first_sql. _first_sql at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.cocoon.processor.xsp.language.java.XSPClassLoader.loadCla ss(XSPClassLoader.java:87) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.load( XSPJavaProcessor.java:169) at org.apache.cocoon.processor.xsp.XSPProcessor.loadPage(XSPProcessor.j ava:542) at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.ja va:523) at org.apache.cocoon.Engine.handle(Engine.java:384) at org.apache.cocoon.Cocoon.service(Cocoon.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java: 405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:37 2) at org.apache.tomcat.core.ContextManager.internalService(ContextManager .java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:74 3) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCo nnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java :416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.jav a:501) at java.lang.Thread.run(Thread.java:484) Any ideas what could be wrong? I downloaded mm.mysql-2.0.4-bin.jar and put it in /var/tomcat/lib/ Below is excerpts from /var/tomcat/bin/startup.sh and /var/tomcat/webapps/cocoon/WEB-INF/cocoon.properties (Another thing to note is that I made an XSP page that is supposed to return # of times it has been requested, but it has only returned 0. Then it suddenly returned 1 instead, and has done so ever since (I have not altered the code - the code follows the example at http://www.suranyami.com/XSPtutorial/ and the logic is simply ... static private int counter = 0; private synchronized int count() { return counter++; } I've been requested count() times. ... Any suggestions?) OK, here are my file excerpts: >From tomcat.sh: --- oldCP=$CLASSPATH unset CLASSPATH CLASSPATH=. CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/sax-bugfix.jar CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/xerces_1_2.jar CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/xalan_1_2_D02.jar CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/fop_0_15_0.jar CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/cocoon.jar CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/w3c.jar CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/turbine-pool.jar CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/mm.mysql-2.0.4-bin.jar for i in ${TOMCAT_HOME}/lib/* ; do if [ "$CLASSPATH" != "" ]; then CLASSPATH=${CLASSPATH}:$i else CLASSPATH=$i fi done >From cocoon.properties: --- # Turbine DB Connection Pool # These are your database settings, look in the # org.apache.turbine.util.db.pool.* package for more information. # Inserted 01-08-2001: processor.xsp.pool.database.annemarie.driver=org.gjt.mm.mysql.Driver processor.xsp.pool.database.annemarie.url=jdbc:mysql://localhost:3306/mysql/ annemarie processor.xsp.pool.database.annemarie.username=root processor.xsp.pool.database.annemarie.password= processor.xsp.pool.database.annemarie.maxConnections=5 processor.xsp.pool.database.annemarie.expiryTime=360 processor.xsp.pool.database.default.driver=oracle.jdbc.driver.OracleDriver processor.xsp.pool.database.default.url=jdbc:oracle:thin:@localhost:1521:ORC L processor.xsp.pool.database.default.username=dbUser processor.xsp.pool.database.default.password=dbPass processor.xsp.pool.database.default.maxConnections=3 processor.xsp.pool.database.default.expiryTime=360 # These are the supported
Re: Is there a way to get the Referrer information from a request?
On Thu, 2 Aug 2001, Beth Kelly wrote: > I have read that a million times, but that field is not in the header > either. I notice you keep writing it as referrer in your emails, however the proper spelling fr the -header- is referer - one r :) Note: that sometimes there won't be a referer... --Dg > Kyle Wayne Kelly > (504)391-3985 > http://www.cs.uno.edu/~kkelly > - Original Message - > From: "Corey A. Johnson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 02, 2001 3:05 PM > Subject: Re: Is there a way to get the Referrer information from a request? > > > > this will do it: > > > > request.getHeader("referer"); > > > > purposely misspell referrer. > > > > Kyle Wayne Kelly wrote: > > > > > I printed out the html header, and it did not include the referrer > field. > > > Is there another way to get the referrer field? > > > > > > Kyle Wayne Kelly > > > (504)391-3985 > > > http://www.cs.uno.edu/~kkelly > > > > -- > > corey a. johnson <><> cni <><> 1.321.259.1984 <><> 1.800.264.5547 > > > > > >
Re: Virtual Host Confusion
At 8/3/2001 08:53 AM +1000, you wrote: >Robert, > >what are you trying to achieve here? There are two things about this >that strike me as odd: > >1. in httpd.conf you have ServerName www.foobar.net, whilst in >server.xml you have host name="www.raptor.net" - as I understand it >these should be the same name. Yes, that was a cock-up on my part, I was trying to remove real data from the list. They are appropriately consistent on the server. >2. the DocumentRoot you have for apache should contain all your static >files. the docBase for tomcat however is completely different. Perhaps >appBase would be a better name for the attribute. That directory should >contain your WEB-INF directory, along with its contents, and quite >possibly jsp and other files that are used by the application. However >- I wouldn't see them as being the same directory, but I support there >is no reason why they couldn't be. If you are going that way, make sure >you prevent ppl accessing /WEB-INF directly through apache. I have strange habits in site design I'd like to be able to swap an index.html for index.xml. I've got a better understanding of things now, but I'm not sure why there is an enforced segregation of files. Since most of my xml files will be in a subdirectory, I'm going to try putting a symlink in the webapps directory and see if I can work things out that way. Otherwise I assume I have to run separate instances of tomcat for different virtual servers? >cheers >dim > >Robert Schmid wrote: > > > > I swear I've read the documentation! I have Virtual Hosts Contexts > defined; > > > > Server.xml > > > > > name="www.raptor.net"> > > > debug="0"/> > > > > > > > name="www.blackgryphongraphics.com"> > > > > > > > > httpd.conf: > > > > > > ServerName www.foobar.net > > JkMount /*.jsp ajp13 > > JkMount /*.xml ajp13 > > JkMount /servlet/* ajp13 > > AddType text/xml .xml > > DocumentRoot /home/net/foobar/htdocs > > ... > > > > Options All > > AllowOverride Authconfig > > > > > > I want to be able to put xml files and jsp in the main directory or at > > least in a directory entirely controlled by foobar. > > > > Is the docBase relative to $TOMCAT_HOME or is it an absolute path? > > What is appBase? Does this work in Tomcat 3.x or only in 4.x? > > > > Do I need to run separate instances of Tomcat for each virtual host? > > > > Do I have to have a webapps directory in each Virtual Host. How about a > > WEB-INF and a web.xml directory in each directory? > > > > The documentation seems out of date especially the links regarding web.xml. > > > > Help is greatly appreciated!
RE: Application Server
Orion is quite excellent :) (no I'm not affiliated in any way). It is fast, free for development (as long as it takes..), and at $1500 it really isn't all that much compared to competition. I tested it on SuSE 7.2 and Windows and haven't found a problem. I would definitely recommend it. -arnox -Original Message- From: Gregor Kovae [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 3:27 AM To: [EMAIL PROTECTED] Subject: Re: Application Server Hi! First of all I cannot find www.orionserver.org Second of all, if you mean www.orionserver.com they have their Pricing page that says - Orion Application Server development version (full version for development and for non-commercial deployment) FREE - Orion Application Server for commercial deployment $1500 per physical server So ? Best regards, Kovi At 16:41 2.8.01 +1000, you wrote: >Utech - Han Lim wrote: > > > > Hi, About WebLogic I don't think it's free:( Do you know the free one > beside > > JBoss and JRun Developer Edition? > >orion is free (http://www.orionserver.org), but there are plenty of ppl >running JBoss on BSD, did you post on the JBoss list with your problem? > >cheers >dim > > > > > Thanks. > > > > regards, > > Han Lim > > > > -Original Message- > > From: Moin Anjum H. [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, August 02, 2001 1:39 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Application Server > > > > Hi, > > > > How about WebLogic from BEA Systems. > > > > HTH > > Regards > > Moin, > > > > Utech - Han Lim wrote: > > > > > Does anyone know the good application server that support EJB and J2EE? I > > > found JBoss but I have a problem when running it on FreeBSD machine, any > > > suggestion? > > > > > > Thanks > > > > > > Han Lim
Re: Is there a way to get the Referrer information from a request?
this will do it: request.getHeader("referer"); purposely misspell referrer. Kyle Wayne Kelly wrote: > I printed out the html header, and it did not include the referrer field. > Is there another way to get the referrer field? > > Kyle Wayne Kelly > (504)391-3985 > http://www.cs.uno.edu/~kkelly -- corey a. johnson <><> cni <><> 1.321.259.1984 <><> 1.800.264.5547
Jasper compile behavior change?
Question about the JSP engine in Tomcat 4.0b6... I have a JSP file which compiled and ran under previous non-4.0 versions of Tomcat. When the container tries to compile JSP files with lines like the following <%= (checkOn)?" bgcolor=\"#99cc99\"":"" %> Errors are generated which look like the following (slightly edited)... A Servlet Exception Has Occurred org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 451 in the jsp file: foo/foo.jsp Generated servlet error: C:\network\jakarta-tomcat-4.0-b6\work\foo\_0002ffoo_0002ffoo_jsp.java:1039: Invalid character in input. out.print( (checkOn)?" bgcolor=\\"#99cc99\\"":"" ); ^ at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:526) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:175) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:187) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:456) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:219) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2251) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:984) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074) at java.lang.Thread.run(Thread.java:484) It looks like Jasper is escape coding my backslashes. Previously those backslashes were to escape code the quotes. Is the container supposed to escape code all \ and " characters when using the <%= %> command? Is this new bahavior/spec revision/a bug? -Ellis Teer __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
HTTPS
Hello guys.. Im a newbie in setting up Tomcat Just wondering hpow can I make https work in my local machine? thanks a lot!!
Binding to a single IP
I've been looking through the docos to find how to bind Tomcat's connectors of Tomcat itself to just a single IP address (ie. 127.0.0.1), which is handy for securing it. Couldn't find anything... Can someone point me in the right direction? Bojan
Re: Virtual Host Confusion
Robert, what are you trying to achieve here? There are two things about this that strike me as odd: 1. in httpd.conf you have ServerName www.foobar.net, whilst in server.xml you have host name="www.raptor.net" - as I understand it these should be the same name. 2. the DocumentRoot you have for apache should contain all your static files. the docBase for tomcat however is completely different. Perhaps appBase would be a better name for the attribute. That directory should contain your WEB-INF directory, along with its contents, and quite possibly jsp and other files that are used by the application. However - I wouldn't see them as being the same directory, but I support there is no reason why they couldn't be. If you are going that way, make sure you prevent ppl accessing /WEB-INF directly through apache. cheers dim Robert Schmid wrote: > > I swear I've read the documentation! I have Virtual Hosts Contexts defined; > > Server.xml > > name="www.raptor.net"> > debug="0"/> > > > name="www.blackgryphongraphics.com"> > > > > httpd.conf: > > > ServerName www.foobar.net > JkMount /*.jsp ajp13 > JkMount /*.xml ajp13 > JkMount /servlet/* ajp13 > AddType text/xml .xml > DocumentRoot /home/net/foobar/htdocs > ... > > Options All > AllowOverride Authconfig > > > I want to be able to put xml files and jsp in the main directory or at > least in a directory entirely controlled by foobar. > > Is the docBase relative to $TOMCAT_HOME or is it an absolute path? > What is appBase? Does this work in Tomcat 3.x or only in 4.x? > > Do I need to run separate instances of Tomcat for each virtual host? > > Do I have to have a webapps directory in each Virtual Host. How about a > WEB-INF and a web.xml directory in each directory? > > The documentation seems out of date especially the links regarding web.xml. > > Help is greatly appreciated!
difference between 3.2.3 and 4.0-b6?
Hey All, logistics question: In Tomcat 3.2.3, I put .war file in the tomcat_home/webapps directory. I am now trying to find a place to put them under catalina(4.0), and have no idea. there are no .war examples for catalina yet, or at least 4.0-b6 can someone give me a hint? thanks a lot, Bryan
Re: .htm problem
And what about using Apache+mod_rewrite for static content? "Deacon Marcus" <[EMAIL PROTECTED]> writes: > Hi, > Check your web.xml, you have > > > > > jsp > *.jsp > > > In your global (conf\web.xml) web.xml. You can add similar mapping: > > > jsp > *.htm > > > jsp > *.html > > > To either conf\web.xml to have it active for every web app or to > WEB-INF\web.xml for specific web apps. -- ICQ #83060237 MAN-UANIC NIK6-RIPE
AW: Application Server -- WTF!
In an perfect world multipart/alternative is the 'clean' way to send html. Any client who can deal with html displays the text/html part of the message, all other the text/plain part. So if you find a mail of this type you could assume that all (usefull) information is as a copy in the text/plain part. In this case you wouldn't have to reject the message, you just could use the text/plain part for the message that goes to the list. As the world is not perfect (:~( , the best way to deal with this, is to block the mail. multipart/related is the way to embed images (and other objects) that are used in a html part in the mail, so that the mail is selfcontained. > -Ursprüngliche Nachricht- > Von: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 2. August 2001 13:40 > An: [EMAIL PROTECTED] > Betreff: Re: Application Server -- WTF! > Weird... I haven't ever heard of those two multipart types...
TOMCAT won't compile
i figured what was the problem last point.. so ignore my last posting now i'm geting this.. any ideas? anyone? su-2.05# sh build.sh dist expr: syntax error Buildfile: build.xml prepare: compile: [copydir] DEPRECATED - The copydir task is deprecated. Use copy instead. javadoc: [javadoc] Generating Javadoc [javadoc] Javadoc execution BUILD FAILED /usr/local/java/JAKARTA/jakarta-servletapi-3.2.3-src/build.xml:45: Javadoc failed: java.io.IOException: javadoc: not found --- Nested Exception --- java.io.IOException: javadoc: not found at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:139) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30 ) at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl .java:48) at java.lang.reflect.Method.invoke(Method.java:306) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.jav a:509) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329) at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:763) at org.apache.tools.ant.Target.execute(Target.java:153) at org.apache.tools.ant.Project.runTarget(Project.java:898) at org.apache.tools.ant.Project.executeTarget(Project.java:536) at org.apache.tools.ant.Project.executeTargets(Project.java:510) at org.apache.tools.ant.Main.runBuild(Main.java:421) at org.apache.tools.ant.Main.main(Main.java:149) Total time: 1 second su-2.05#
Re: Virtual Host Confusion
Robert Schmid wrote: > > At 8/3/2001 08:53 AM +1000, you wrote: Robert, > I have strange habits in site design I'd like to be able to swap an > index.html for index.xml. I've got a better understanding of things now, > but I'm not sure why there is an enforced segregation of files. Since most > of my xml files will be in a subdirectory, I'm going to try putting a > symlink in the webapps directory and see if I can work things out that > way. Otherwise I assume I have to run separate instances of tomcat for > different virtual servers? ok - fair enough... ASAIK there is no enfored segregation of files, just convention. What you are describing seems achievable to me, although I've never done it. I'm sorry, but I've actually missed what the original problem was. Assuming you fix the host names up then a request for index.html should be served happily by apache. A request for index.xml should be passed off to tomcat via ajp13, and then assuming you've got something that handles that at tomcat it should receive the request. An advantage of the way you have things set up is that localhost:8080 should be the same as localhost (I think)... so I would start at localhost:8080 and check everything works (sorry, at www.raptor.net:8080 or whatever). then look at apache. A question though. Am I right in thinking that you are serving xml dynamically with a xslt stylesheet (pull based publishing), and then also trying to use pro-active push publishing to pump the xml through the same xslt into an index.html file (and I'm sure also an index.wml file somewhere too)? If so, sounds damn cool (o: let me know if its not working and I'll think some more about it. cheesr dim > > >cheers > >dim > > > >Robert Schmid wrote: > > > > > > I swear I've read the documentation! I have Virtual Hosts Contexts > > defined; > > > > > > Server.xml > > > > > > > > name="www.raptor.net"> > > > > > debug="0"/> > > > > > > > > > > > name="www.blackgryphongraphics.com"> > > > > > > > > > > > > httpd.conf: > > > > > > > > > ServerName www.foobar.net > > > JkMount /*.jsp ajp13 > > > JkMount /*.xml ajp13 > > > JkMount /servlet/* ajp13 > > > AddType text/xml .xml > > > DocumentRoot /home/net/foobar/htdocs > > > ... > > > > > > Options All > > > AllowOverride Authconfig > > > > > > > > > I want to be able to put xml files and jsp in the main directory or at > > > least in a directory entirely controlled by foobar. > > > > > > Is the docBase relative to $TOMCAT_HOME or is it an absolute path? > > > What is appBase? Does this work in Tomcat 3.x or only in 4.x? > > > > > > Do I need to run separate instances of Tomcat for each virtual host? > > > > > > Do I have to have a webapps directory in each Virtual Host. How about a > > > WEB-INF and a web.xml directory in each directory? > > > > > > The documentation seems out of date especially the links regarding web.xml. > > > > > > Help is greatly appreciated!
Re: Is there a way to get the Referrer information from a request?
Nothing is to obvious for me. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "Jim Seach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 3:39 PM Subject: Re: Is there a way to get the Referrer information from a request? > Sorry if this is too obvious, but is the request the result of a normal > browser following a link embedded in a web page to get to your > servlet/jsp? > > If you type the URL in the browser location bar, or use a custom client > that doesn't set the header, it won't be there. > > Jim > > --- Beth Kelly <[EMAIL PROTECTED]> wrote: > > Good points. I printed out all of the headers fields, and values. > > The > > header does not contain a Referrer, Referer, referer, or referrer > > field. > > > > > > Kyle Wayne Kelly > > (504)391-3985 > > http://www.cs.uno.edu/~kkelly > > - Original Message - > > From: "Dan Garcia" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, August 02, 2001 3:20 PM > > Subject: Re: Is there a way to get the Referrer information from a > > request? > > > > > > > On Thu, 2 Aug 2001, Beth Kelly wrote: > > > > I have read that a million times, but that field is not in the > > header > > > > either. > > > > > > I notice you keep writing it as referrer in your emails, however > > the > > proper > > > spelling fr the -header- is referer - one r :) > > > > > > Note: that sometimes there won't be a referer... > > > > > > --Dg > > > > > > > Kyle Wayne Kelly > > > > (504)391-3985 > > > > http://www.cs.uno.edu/~kkelly > > > > - Original Message - > > > > From: "Corey A. Johnson" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Thursday, August 02, 2001 3:05 PM > > > > Subject: Re: Is there a way to get the Referrer information from > > a > > request? > > > > > > > > > > > > > this will do it: > > > > > > > > > > request.getHeader("referer"); > > > > > > > > > > purposely misspell referrer. > > > > > > > > > > Kyle Wayne Kelly wrote: > > > > > > > > > > > I printed out the html header, and it did not include the > > referrer > > > > field. > > > > > > Is there another way to get the referrer field? > > > > > > > > > > > > Kyle Wayne Kelly > > > > > > (504)391-3985 > > > > > > http://www.cs.uno.edu/~kkelly > > > > > > > > > > -- > > > > > corey a. johnson <><> cni <><> 1.321.259.1984 <><> > > 1.800.264.5547 > > > > > > > > > > > > > > > > > > > > > > > > > > > > __ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/ >
RE: HELP - Jakarta 4 and Magma - CONTEXT LISTENER ISSUE
Got things to work, but there is one strange issue. If I install a context listener in web.xml, (which automatically initializes Magma application), like: com.catray.Monolith then, the Web application initializes fine, but as soon as I access the JSP page in a browser, I get this lovely exception: --- Exception Report: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) Root Cause: java.lang.SecurityException: sealing violation at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) ... --- On the other hand, if I take the context listener out of the web.xml file and initialize things manually, the JSP page displays correctly. Is there something else that I should be doing in order to get the context listener working? Thanks, -arnox -Original Message- From: Jeff Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 2:38 AM To: [EMAIL PROTECTED] Subject: Re: HELP - Jakarta 4 and Magma You might want to read the developer docs on classloaders, in CVS: catalina/docs/dev/xdocs/classloaders.xml >From that, I'd guess copying an unsealed jaxp.jar somewhere would help.. --Jeff On Thu, Aug 02, 2001 at 12:08:55AM -0400, Arno Grbac wrote: > I'm trying to setup Catray's Magma with Jakarta 4-b6 and I can't get past > java.lang.SecurityException: sealing violation > I've read all the previous messages on this, but I still can't figure it > out. Catray's site only > posts installation instructions for the Orion server, but I need to get > things working with > Jakarta (hosting issues..). > I was just wondering if anybody has figured this out. > Thanks, > -arnox
Need icon
Hi, I am creating an install script for tomcat and I need an icon for the windows shortcut. Anyone out there have one for tomcat that they could send to me? Thanks Alex
Re: How to hide login pages
Oh - I am not familar with the authentication provided by Tomcat - I coded my own authentication when people log into my site. Hopefully someone else might be able to help out more. -- Chad --- [EMAIL PROTECTED] wrote: > > I am not validating the form. I'm using the FORM > authentication provided by > Tomcat, so Tomcat is validating the form. > Dave > > > > > > Chad Wray <[EMAIL PROTECTED]> on 08/02/2001 10:32:55 > AM > > Please respond to [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > cc: > > Subject: Re: How to hide login pages > > > Are you including mylogin.jsp on every page? > > I am a little confused because if you are validating > a > form then you can check to see if the form was > submitted or not. > > Can you send a small piece of the code, so we can > take > a look. > > -- Chad > > > --- [EMAIL PROTECTED] wrote: > > > > I thought of this but I don't think this will > work. > > Login is a special > > case. If the user has not yet logged in and they > > enter a URL to a page (any > > valid page) the container (Tomcat) automatically > > returns the login page and > > then AFTER successful login redirects them to the > > page. Therefore whether > > the user enters a valid page or the login page > > directly, the login page is > > returned BEFORE any other page in my webapp. I > never > > have a chance to > > create a session object. After successful login I > > think your suggestion > > works but I want to catch it before login as well. > > > > Or am I missing something here. > > > > Thanks, > > Dave > > > > > > > > > > > > Chad Wray <[EMAIL PROTECTED]> on 08/02/2001 > 09:13:31 > > AM > > > > Please respond to [EMAIL PROTECTED] > > > > To: [EMAIL PROTECTED] > > cc: > > > > Subject: Re: How to hide login pages > > > > > > This may be a pain to implement if you have lots > of > > pages in your website, but it would work. You > could > > use a Session variable to hold onto where you are > in > > the site. Then if you have a link that calls > > mylogin.jsp or another page that calls mylogin.jsp > > just check to see who called the page. So, on > every > > page you would need to set the variable to null or > > some error value and then if the user clicks the > > login > > link then you could set the variable to a valid > > value. > > You are probably asking how can I set a value > from > > a > > link. Well, have the link call the same page it > is > > on > > and pass a value on the URL and then set the > Session > > variable and redirect to mylogin.jsp. Then, on > > mylogin.jsp check the Session variable and if it > is > > valid continue otherwise use javascript to go back > > one > > page. This would stop people from typing > > mylogin.jsp > > in the Address of the browser. > > > > Hope this helps. > > > > -- Chad > > > > > > --- [EMAIL PROTECTED] wrote: > > > I'm using FORM authentication and I would like > to > > > hide the login JSP files > > > so the users don't access them directly. For > > > example, I don't want the user > > > to be able to enter the URL > > > http://myserver/mywebapp/mylogin.jsp since this > > > will not work (since there is no original url to > > > redirect them to they get > > > redirected to j_security_check). > > > > > > I've tried putting my login files in WEB-INF but > > > then when they try to > > > access a page in my webapp they get file not > found > > > error. > > > > > > I've tried putting the login files in a secured > > > directory under my webapp > > > but this puts the ContextManager in an infinite > > > loop. > > > > > > Any ideas? > > > > > > Thanks, > > > Dave > > > > > > > > > > > > __ > > Do You Yahoo!? > > Make international calls for as low as $.04/minute > > with Yahoo! Messenger > > http://phonecard.yahoo.com/ > > > > > > > > > > > > > > > __ > Do You Yahoo!? > Make international calls for as low as $.04/minute > with Yahoo! Messenger > http://phonecard.yahoo.com/ > > > > > > __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/