Re: Tomcat 3.3 CVS: class/jar reloading

2001-09-12 Thread Bojan Smojver
Bojan Smojver wrote: > > Still a bit confused with it... > > When I put class files into WEB-INF/classes, Tomcat reports something > like this: > > > DependManager: Added > /home/httpd/html/binarix.dev/WEB-INF/classes/com/binarix

Re: TC4: web.xml and reloading

2001-09-11 Thread Bojan Smojver
Jim Cheesman wrote: > I have to back this statement up - jar reloading on TC4/Win2000 is a risky > business, to say the least. Sometimes it works, sometimes not... I wonder > if it's anything to do with the server checking for a new jar at the same > time as the filesystem overwrites the old one?

Tomcat 3.3 CVS: class/jar reloading

2001-09-11 Thread Bojan Smojver
Still a bit confused with it... When I put class files into WEB-INF/classes, Tomcat reports something like this: DependManager: Added /home/httpd/html/binarix.dev/WEB-INF/classes/com/binarix/velocity/PumpServlet.class class com.binarix.velocity.PumpServlet --

Re: TC4: web.xml and reloading

2001-09-11 Thread Bojan Smojver
Remy Maucherat wrote: > Essentially, yes. > > JAR reloading is not very reliable on my Windows box, though (and you can't > remove JARs; but strangely you can ovewrite them). Sometimes, the changes > get picked up, sometimes they do not. I have yet to find the reasons for > this, unfortunately :

Re: Can TC4 work with JBoss ?

2001-09-11 Thread Bojan Smojver
SongDongsheng wrote: > > My question is: > > 1) Can TC4 work with jboss ? > 2) is so, how can I do it ? > > Thanks, > > Dongsheng Song Although I don't use that combination, I don't see any reason why not. Unless, of course you want to run them in the same JVM. JBoss manual mentions that Cata

Re: TC4: web.xml and reloading

2001-09-11 Thread Bojan Smojver
"Craig R. McClanahan" wrote: > When you set an application's entry to say "reloadable='true'", > Tomcat starts a background task that watches for changes to *any* class > that was originally loaded from /WEB-INF/classes or /WEB-INF/lib. If such > a change is detected, the app will be reloaded.

Re: TC4: web.xml and reloading

2001-09-11 Thread Bojan Smojver
Remy Maucherat wrote: > > > Remy Maucherat wrote: > > > > > > > My question was about web.xml, not the classes and jars (that's > > > > explained in Loader docs). If web.xml changes, TC3.3 will dump the app > > > > and reload because web.xml gets stored in the DependManager (from > > > > memory).

Re: TC4: web.xml and reloading

2001-09-11 Thread Bojan Smojver
Remy Maucherat wrote: > > > My question was about web.xml, not the classes and jars (that's > > explained in Loader docs). If web.xml changes, TC3.3 will dump the app > > and reload because web.xml gets stored in the DependManager (from > > memory). Does TC4 behave the same? > > No web.xml reloa

Re: JSP/Servlet <-->EJB

2001-09-11 Thread Bojan Smojver
Huaxin wrote: > > A little bit off topic, sorry about that. > > I see most of the examples using EJB from Servlet. > However, is there any example of using JSP with > EJB directly? (without too much scriplet, and > hopefully more efficient than create a bean to > interact with the EJB) > > than

Re: TC4: web.xml and reloading

2001-09-11 Thread Bojan Smojver
"Craig R. McClanahan" wrote: > > On Wed, 12 Sep 2001, Bojan Smojver wrote: > > > Date: Wed, 12 Sep 2001 10:40:21 +1000 > > From: Bojan Smojver <[EMAIL PROTECTED]> > > Reply-To: [EMAIL PROTECTED] > > To: Tomcat User List <[EMAIL PROTECTED

TC4: web.xml and reloading

2001-09-11 Thread Bojan Smojver
I looked through the source code and in the documentation of the Loader to see if the change of web.xml will cause an application reload in TC4 when relaodable is set to true, but I couldn't find anything that would tell me that explicitly. I'm sure this is the case in TC3.3, I was just trying to

Re: Binding to a single IP

2001-08-03 Thread Bojan Smojver
It's explained in the server.xml file... Promise to brush up on my reading skills :-) Bojan Bojan Smojver wrote: > > 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), > whi

Re: Using Tomcat with MSAccess

2001-08-03 Thread Bojan Smojver
What's the actual error message? Maybe you can print out the SQL statement to see if the syntax is OK. It could be invalid SQL. Are you running this under Windows NT/2000 or 9x/ME? Maybe the user Tomcat runs under doesn't have access rights on this database? I don't really use Access, I'm just t

Re: FW: IIS+Tomcat Q

2001-08-03 Thread Bojan Smojver
Maybe you can use getRemoteUser, isUserInRole, getUserPrincipal etc. from HttpServletRequest interface to find out who's logged on? Once the user is authenticated, you'll always get its info from the above and Tomcat will make sure that this guy is part of the correct session. Does that answer yo

Re: ServletContext access question

2001-08-03 Thread Bojan Smojver
Maybe you can use application init parameters instead? Bojan Viktors Krebss wrote: > > Hello, > > Does anyone know how can I access servlet init parameters form another > servlet ? > I mean I can access servlet context ( ) using > getServletContext().getContext("/some_servlet") > but what I ne

Binding to a single IP

2001-08-02 Thread Bojan Smojver
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: mod_webapp (Tomcat 4.0 b2, b3): compilation quick fix

2001-04-06 Thread Bojan Smojver
inating file is wa_connection.c. Since the WebAppConnection has been defined in the first pass, it won't accept the same one in the second pass because it checks for duplicate connections. Bojan Bojan Smojver wrote: > > I've posted to this list a few days ago a message related t

mod_webapp (Tomcat 4.0 b2, b3): compilation quick fix

2001-04-06 Thread Bojan Smojver
I've posted to this list a few days ago a message related to the compilation problems of mod_webapp. It seems that the versions that come with b2 and b3 of Tomcat 4.0 are screwed (even after cleaning double new lines in Makefiles). I didn't have the patience to go through the code to determine why

mod_webapp compilation

2001-04-04 Thread Bojan Smojver
Anyone out there had any luck compiling the mod_webapp? Even after removing double new lines from the Makefiles, there is a whole heap of compilation error messages (mostly undeclared stuff)... And if mod_webapp is not ready, can mod_jk be used with Tomcat 4.0? Configuration: RedHat Linux 7.0 T

Re: sdk 1.3.0 fcs and netscape plugin problem

2000-12-18 Thread Bojan Smojver
Try to put the plugin in ~/.netscape/plugins instead. Bojan "Robert B. Easter" wrote: > cd /usr/local/netscape/plugins > ln -s /usr/local/j2sdk1.3.0/jre/plugin/i386/javaplugin.so javaplugin.so

Re: Disable directory indexes

2000-12-17 Thread Bojan Smojver
conf/web.xml is not used in Tomcat 3.2.x. Try this in server.xml: Bojan James Bromberger wrote: > > Hello all, > > I and a colleague have been looking through the list archives, trying to find out >how to disable the welcome-file feature. I have edited /conf/web.xml and altered the >welc

Re: Passwod Protecting a directory

2000-12-16 Thread Bojan Smojver
In tomcat's conf directory there is a file called tomcat-users.xml. There are a few user accounts already there (Tomcat 3.2.1), one is called 'tomcat', having a role 'tomcat' (a bit confusing but Java Servlet API Spec 2.2 might clear that up for you). Next set you web.xml file up. Something like:

Re: separate tomcat instance??

2000-12-16 Thread Bojan Smojver
All the answers about virtual hosting are in mod_jk HOWTO documentation: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html JDK's, huh, hard one... JDK 1.3.0 from http://www.blackdown.org/ and Sun's JDK 1.3.0_01 do the job most of the time on Linux... Maybe IBM's 1.3.0? B

Re: Tomcat 3.2 - Default web.xml not being read

2000-12-14 Thread Bojan Smojver
I just compiler the attached file into a class, put the class into the webserver.jar (to avoid changing CLASSPATH for testing) and modified server.xml file with: after the WebXmlReader section and restarted Tomcat and Apache. The errors are still going to the browser and generated java files a

JSP engine init parameters

2000-12-14 Thread Bojan Smojver
I've been trying for a while to implement the init parameters for JSP engine mentioned in Tomcat FAQ's but without much luck. First, I think the 'org.apache.jasper.runtime.JSPServlet' is wrong, there is no such class in Tomcat 3.2.1. It should probably be 'org.apache.jasper.servlet.JspServlet' in

Re: mod_jk vs. statically linked Apache

2000-12-04 Thread Bojan Smojver
This is *FAR* from being a good set of instructions. A few of the scripts are also extremely primitive. All of this applies to RedHat Linux 7.0. Please note that I still haven't received confirmation from the developers of mod_jk if static linking of the module is a technically sound option. Her

Re: Which JDK version to use for Tomcat?

2000-12-03 Thread Bojan Smojver
How about HotSpot 2.0... Bojan "Robert B. Easter" wrote: > > I'm running Linux and so far have used Blackdown.org JDK 1.2.2 FCS with > Tomcat 3.2 final. > > JDK 1.3.0 FCS is also available from blackdown.org. Are there any good > reasons for upgrading or not upgrading to JDK 1.3.0? > > -- >

Re: mod_jk vs. statically linked Apache

2000-12-02 Thread Bojan Smojver
I didn't actually say that the configuration works. It'll be some time before I know that for sure. But it does compile and link :-) If I understand correctly, DSO is described in Apache INSTALL file as optional. I have seen references in the jk code to dl related functions (and actually -ldl ne

mod_jk vs. statically linked Apache

2000-12-01 Thread Bojan Smojver
I've noticed that there aren't any instructions about compiling and then statically linking mod_jk.so into Apache (mod_jk HOWTO from Tomcat 3.2). Is this intentional (ie. do you want to move people away from doing that) or is it just missing because most people prefer DSO? I've been able to compi