servlet-mappings

2001-11-03 Thread Dr. Evil


I'm trying to do some fancy stuff with servlet mappings.  This
mechanism leaves a lot to be desired; specificly, it would be
amazingly useful to be able to do a getRequestDispatcher in some way
that bypasses the servlet mappings in the web.xml file.  Alternatively
it would be extremely useful to be able to call the jsp servlet from
within another servlet, but this doesn't seem to be possible.  rd =
request.getRequestDispatcher("jsp") never seems to work.

Anyway, here's the question:

I know there are prefix mappings, such as /foo/bar/, and extension
mappings such as *.foo, but it doesn't seem like it's possible to do
mappings like /foo/bar/*.baz.  This mapping seems to never hit.  Is
there a way to do that?

Thanks

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Strange problem in Tomcat 3.2.1

2001-11-03 Thread sudhir agrawal

Hi all,

I am facing a very strange problem with tomcat 3.2.1
 i have integrated it with Apache 1.3.12

whenever i made a request to load a jsp file from
browser .browser open a popup window to download the
file.

What my be the problem.My browser Mime Type is
configured to accept jsp file. I think there is some
problem in configuring web.xml.

Is there any option for configuring MIME type in
tomcat configuration file.

or this is a bug in tomcat??

Please help me
Thanks in Advance

__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




MVC in Tomcat is hard

2001-11-03 Thread Dr. Evil


I'm trying to use the Model-View-Controler design approach in Tomcat.
Here's what I'm trying to do:

I'll put the Model stuff in a servlet.  The View stuff will go into a
jsp page (actually a custom tag lib).  What I need to do is, when I
view a page like foo.jsp, the servlet needs to get invoked to set up
some state, so the tags can then dispaly it.  So, let's say the client
requests

http://host/dir/foo.jsp

I want to have a servlet, let's call it controler.class, be called,
do its stuff, and then get a RequestDispatcher, and then do
rd.forward() to foo.jsp.  This doesn't seem to be possible.  Is there
a way to do this?

Thanks

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Mod_webapp configuration

2001-11-03 Thread Adam Fowler

Hello,

OK Pier - I'll take a look, but I'm not promising anything.

I need to get more familiar with TC4 and its bits anyway. 8o)

Cheers,

Adam.

On Sat, 2001-11-03 at 02:58, Pier Fumagalli wrote:
> (Ok, today I _have_ to say this :) There is no time frame... Some of the
> code is already there (like, Apache already knows whether he should serve a
> file or delegate its execution to the servlet container). If it itches you
> scratch it :) :) Meaning, you're more than welcome to figure out how it
> works and send a patch to the tomcat-dev mailing list...
> 
> ATM, I'm way more interested in figuring out how to remove the concept of
>  from the WebApp portion of Tomcat, allowing you to deploy application
> to a container without having to configure virtual hosts both in httpd.conf
> and server.xml... That's my itch :) :)
> 
> Pier
> 
> Parashar, Hitesh at [EMAIL PROTECTED] wrote:
> 
> > What is the time-frame for this change to be in?
> > 
> >> It will be supported in upcoming releases by mod_webapp, all static content
> >> (so the one not associated with a filter, with a servlet, or with security
> >> constraints) will be served automagically by Apache.
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
-- 

--
-
|  Adam Fowler 
|
| Third year undergraduate  | TomcatBook Project   
|
| Computer Science  | Author and Administrator 
|
| University of Wales, Aberystwyth  | http://tomcatbook.sourceforge.net
|
| Web: http://users.aber.ac.uk/aff9 | E-mail: [EMAIL PROTECTED] 
|
-



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: MVC in Tomcat is hard

2001-11-03 Thread Sriram Narayanan

Hi,

Umm... What I do in such cases is contact a servlet, let it to all the state related 
stuff, and then it forwards the request to the JSP.
The JSP then uses the Object placed into the session by the servlet, and renders it.

I don't know if this is acceptable as MVC though.

Sriram

03/11/2001 3:25:22 PM, "Dr. Evil" <[EMAIL PROTECTED]> wrote:

>
>I'm trying to use the Model-View-Controler design approach in Tomcat.
>Here's what I'm trying to do:
>
>I'll put the Model stuff in a servlet.  The View stuff will go into a
>jsp page (actually a custom tag lib).  What I need to do is, when I
>view a page like foo.jsp, the servlet needs to get invoked to set up
>some state, so the tags can then dispaly it.  So, let's say the client
>requests
>
>http://host/dir/foo.jsp
>
>I want to have a servlet, let's call it controler.class, be called,
>do its stuff, and then get a RequestDispatcher, and then do
>rd.forward() to foo.jsp.  This doesn't seem to be possible.  Is there
>a way to do this?
>
>Thanks
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: MVC in Tomcat is hard

2001-11-03 Thread Sriram Narayanan

I've not tried this yet, but here's another idea (Note : I'm absolutely new to Web 
related stuff, and have not idea on how to use taglibs...)

-> Submit a request to the JSP with a parameter. Perhaps a hidden field.
-> The JSP examines the request for this field, and then forwards to the servlet if 
the field values so indicates.
-> The servlet receives the request, does some processing, and then forwards back to 
the jsp, after setting a new value for the hidden field.
-> the JSP receives this request, checks the field, decides that it now has to do some 
new stuff,
-> Gets the info the servlet had placed into the session, and uses this info to rencer 
the page.

Childish, perhaps, but I can't think of anything else. (Must read up on taglibs...)

Sriram

03/11/2001 3:25:22 PM, "Dr. Evil" <[EMAIL PROTECTED]> wrote:

>
>I'm trying to use the Model-View-Controler design approach in Tomcat.
>Here's what I'm trying to do:
>
>I'll put the Model stuff in a servlet.  The View stuff will go into a
>jsp page (actually a custom tag lib).  What I need to do is, when I
>view a page like foo.jsp, the servlet needs to get invoked to set up
>some state, so the tags can then dispaly it.  So, let's say the client
>requests
>
>http://host/dir/foo.jsp
>
>I want to have a servlet, let's call it controler.class, be called,
>do its stuff, and then get a RequestDispatcher, and then do
>rd.forward() to foo.jsp.  This doesn't seem to be possible.  Is there
>a way to do this?
>
>Thanks
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: MVC in Tomcat is hard

2001-11-03 Thread Mika Goeckel

Hi Dr.Evil,

have you had a look on the jakarta-struts project? At a first glance it may
look a little bit complicated, but it implements a MVC approach and could
possibly deliver a bunch of already written code for your project. Getting
started is very easy, it's sufficient to place (one of) the example WARs
into tomcat (4.*) webapps.

Cheers, Mika
[EMAIL PROTECTED]

- Original Message -
From: "Dr. Evil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 03, 2001 10:55 AM
Subject: MVC in Tomcat is hard


>
> I'm trying to use the Model-View-Controler design approach in Tomcat.
> Here's what I'm trying to do:
>
> I'll put the Model stuff in a servlet.  The View stuff will go into a
> jsp page (actually a custom tag lib).  What I need to do is, when I
> view a page like foo.jsp, the servlet needs to get invoked to set up
> some state, so the tags can then dispaly it.  So, let's say the client
> requests
>
> http://host/dir/foo.jsp
>
> I want to have a servlet, let's call it controler.class, be called,
> do its stuff, and then get a RequestDispatcher, and then do
> rd.forward() to foo.jsp.  This doesn't seem to be possible.  Is there
> a way to do this?
>
> Thanks
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: MVC in Tomcat is hard

2001-11-03 Thread Sriram Narayanan

Hi,

I'd just visited the jakarta site, and they have something called "Struts". Looks like 
this project may have taken care of most of your requirements.

Sriram

03/11/2001 3:25:22 PM, "Dr. Evil" <[EMAIL PROTECTED]> wrote:

>
>I'm trying to use the Model-View-Controler design approach in Tomcat.
>Here's what I'm trying to do:
>
>I'll put the Model stuff in a servlet.  The View stuff will go into a
>jsp page (actually a custom tag lib).  What I need to do is, when I
>view a page like foo.jsp, the servlet needs to get invoked to set up
>some state, so the tags can then dispaly it.  So, let's say the client
>requests
>
>http://host/dir/foo.jsp
>
>I want to have a servlet, let's call it controler.class, be called,
>do its stuff, and then get a RequestDispatcher, and then do
>rd.forward() to foo.jsp.  This doesn't seem to be possible.  Is there
>a way to do this?
>
>Thanks
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Additionnal classpath

2001-11-03 Thread Sriram Narayanan

Hi,

This works under Windows for batch files, should work for unix shell scripts too.

If you are using the batch file to load Tomcat, you might have to alter this file, as 
the batch file sets aside the system classpath and sets up it's own class path.

When you use the shutdown batchfile, the Tomcat sepcific classpath is cleared and the 
previous classpath is restored.

Sriram

02/11/2001 7:53:44 PM, "Xavier NOPRE" <[EMAIL PROTECTED]> wrote:

>Hi,
>
>I am compiling my classes in a specific directory. How can I do to tell
>Tomcat to load classes from the classpath, without copying each time the
>classes to web-inf/classes ?
>
>Thanks
>
>Xavier
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat's not running Re: Strange problem in Tomcat 3.2.1

2001-11-03 Thread Sriram Narayanan

Loks like Tomcat's not processing the JSPs , and Apache's just lifting the JSP's and 
service them to you.

A simple check to see it tomcat's been activated is to check the Tomcat logs.

Also, there's no need to configure anything on the browser side when viewing JSPs. 
Jsps are processed on the server side, and send back HTML code to the 
browser. 

In your case, here's what's supposed to happen:
-> You configure Apache so that it loads the Tomcat connector.
-> Start Tomcat first and then Apache http server.
-> If everything's OK, then here's what happens when you ask for a JSP.

1. The apache server receives a request for the JSP.
2. Tomcat takes over because its integrated with Apache (in your case).
3. Tomcat receives the request and response related objects, and passes these to the 
JSP.
4. The JSP receives these, does it's processing, and the resulting HTML is handed back 
to the web server, i.e. Apache httpd.
5. Apache httpd then returns this HTML to the browser.

If tomcat's not configured, then the apache httpd server will just pick up the jsp 
file as if it were an ordinary file, and send this file to the browser.
If the browser can understand this file's type (IE 5 does, this despite us setting the 
content type ), then it renders it. This is for files like gif images, etc.
If the browser does not understand the file's type, then it gives you the download 
prompt. This is what's happening in your case.

Sriram

03/11/2001 3:14:23 PM, sudhir agrawal <[EMAIL PROTECTED]> wrote:

>Hi all,
>
>I am facing a very strange problem with tomcat 3.2.1
> i have integrated it with Apache 1.3.12
>
>whenever i made a request to load a jsp file from
>browser .browser open a popup window to download the
>file.
>
>What my be the problem.My browser Mime Type is
>configured to accept jsp file. I think there is some
>problem in configuring web.xml.
>
>Is there any option for configuring MIME type in
>tomcat configuration file.
>
>or this is a bug in tomcat??
>
>Please help me
>Thanks in Advance
>
>__
>Do You Yahoo!?
>Find a job, post your resume.
>http://careers.yahoo.com
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0/Apache 1.3.22/WebApp problem

2001-11-03 Thread Ilic Aleksandar



HI,
I have posted several days ago the same question with same
problem. I try today again to connect apache and tomcat and everything I
got are errors in tomcat'log for Service Tocmat-Apache :

2001-11-03 15:22:46 [org.apache.catalina.connector.warp.WarpConnector]
Connection from localhost/127.0.0.1:3531 to localhost/127.0.0.1:8008
2001-11-03 15:22:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
2001-11-03 15:22:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
2001-11-03 15:22:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
2001-11-03 15:22:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
2001-11-03 15:22:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
2001-11-03 15:23:03 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.io.IOException: Premature packet header end
at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown
Source)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

ANd of course , I still can't connect to tocmat apps via apache, and I
even recompile mod_webapp.
Any hint?
Ilic Aleksandar



> I have a problem connecting Tomcat 4.0.1 and Appache HTTP Server 1.3.22
> through WebApp module. They however seem to connect but the HTTP server
> doesn't seem to redirect the servlet calls to the Tomcat Engine.
>
> I have loaded the WebbApp module and added it in the httpd.conf. Here is
> also how I define the connection between the two in that file:
> 
>   WebAppConnection conn  warp  doinap:8008
>   WebAppDeploy   sivadocconn  /sivadoc
> 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0/Apache 1.3.22/WebApp problem

2001-11-03 Thread Ilic Aleksandar



Hi,
I found some solution that works for me. I make link in apache
document dir that points to dir of some tomcat app and it works
fantasticly:))
ln -s $TOMCAT_HOME/webapps/examples /var/www/html/examples

Ilic Aleksandar



> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
> mappings (2)
> 2001-11-03 15:22:47
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
> mappings (2)
> 2001-11-03 15:22:47
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
> mappings (2)
> 2001-11-03 15:23:03 [org.apache.catalina.connector.warp.WarpConnection]
> Exception on socket
> java.io.IOException: Premature packet header end
> at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown
> Source)
> at
> org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
> Source)
> at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
> Source)
> at java.lang.Thread.run(Thread.java:484)
>
> ANd of course , I still can't connect to tocmat apps via apache, and I
> even recompile mod_webapp.
>   Any hint?
>   Ilic Aleksandar
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




MySQL DataSource param in server.xml (TC 4.0.1)

2001-11-03 Thread Andrius

Hi, I'm using MySQL and i need to configure DataSource resource parameter in
server.xml. I wonder what to input here:
driverName
 ? 
..

thanx for any response.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Mod_webapp configuration

2001-11-03 Thread Nikola Milutinovic

Parashar, Hitesh wrote:

> What is the time-frame for this change to be in?
> 
> 
>>It will be supported in upcoming releases by mod_webapp, all static content
>>(so the one not associated with a filter, with a servlet, or with security
>>constraints) will be served automagically by Apache.

Pier, can you give us a time-frame on this?

I know that you don't like to do that - you got your share of "friendly fire" on 
this list regarding the existing mod_webapp, but you could still give us some 
idea...

Currently, I'm not even using any connector, so I could wait a bit - a month or 
two, but then I'll have to serve my web application integrated into our intranet 
web server. Since mod_jk is out of the question for me (Digital UNIX), I'll have 
to build mod_webapp. Is it working with Apache 2.0?

Nix.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




MySQL datasource configuration in server.xml

2001-11-03 Thread Andrius

Hello,
I'm newbie and i need help. can anyone tell me how to configure JNDI
resource in server.xml for database connection factory.
DB: MySQL; TC: 4.0.1).
This is an example of such config for Hypersonic:


  
usersa
password
serverName
  192.168.0.66
databaseName
  telisweb

  

How to write it for MySQL?

Thanks for any response.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: MVC in Tomcat is hard

2001-11-03 Thread Micael Padraig Og mac Grene

Lo, Evil.  You can look at Struts, as suggested, or take a look at David
Geary's new book on taglibs, with it's sample app in the last (I think)
chapter.  He has everything you are asking for precoded.  Micael


-Original Message-
From: Dr. Evil <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, November 03, 2001 2:00 AM
Subject: MVC in Tomcat is hard


>
>I'm trying to use the Model-View-Controler design approach in Tomcat.
>Here's what I'm trying to do:
>
>I'll put the Model stuff in a servlet.  The View stuff will go into a
>jsp page (actually a custom tag lib).  What I need to do is, when I
>view a page like foo.jsp, the servlet needs to get invoked to set up
>some state, so the tags can then dispaly it.  So, let's say the client
>requests
>
>http://host/dir/foo.jsp
>
>I want to have a servlet, let's call it controler.class, be called,
>do its stuff, and then get a RequestDispatcher, and then do
>rd.forward() to foo.jsp.  This doesn't seem to be possible.  Is there
>a way to do this?
>
>Thanks
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Mod_webapp configuration

2001-11-03 Thread Pier Fumagalli

Nikola Milutinovic at [EMAIL PROTECTED] wrote:

> Parashar, Hitesh wrote:
> 
>> What is the time-frame for this change to be in?
>> 
>> 
>>> It will be supported in upcoming releases by mod_webapp, all static content
>>> (so the one not associated with a filter, with a servlet, or with security
>>> constraints) will be served automagically by Apache.
> 
> Pier, can you give us a time-frame on this?
> 
> I know that you don't like to do that - you got your share of "friendly fire"
> on this list regarding the existing mod_webapp, but you could still give us
> some idea...

I can't. As I told you, I don't care much about it, since in most scenarios
my web applications are 100% dynamic. From the look of it, the patch
shouldn't take more than 4/5 hours + testing, but I'd rather go out and find
a new job (since I lost mine yesterday) than do it :)

> Currently, I'm not even using any connector, so I could wait a bit - a month
> or two, but then I'll have to serve my web application integrated into our
> intranet web server. Since mod_jk is out of the question for me (Digital
> UNIX), I'll have to build mod_webapp.

A month or two is probably fine... From the look of it it was supposed to
come out by Nov. 9th, but for sure we can't make it for then (J.F. Is on
vacation, and next week I'll have to start looking around).

> Is it working with Apache 2.0?

Yes, the Apache 2.0 team ported the 1.3 module to the new web server, but
the build is kinda flaky since even in the last releases of Apache 2.0 APXS
is still broken... Maybe it would be easier to build it as a statically
compiled module...

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




javascript access protection.

2001-11-03 Thread Thierry RAIBAUT

Hello,

could somebody explain me how is it possible to protect some ressources from direct 
access.

I think about a javascript directory.
This directory has to be accessed by some JSP pages, but I do not want the user to 
access this directory
directly with the browser by setting the javascript file url.

I move my javascript directory under web-inf but by doing this, js files are no longer 
available even for jsp pages.

thanks a lot for your help.

Thierry



Newbie-Installation

2001-11-03 Thread Joel

Dear,

 I am trying to install Tomcat 3.3 in Linux.

I have downloaded Tomcat 3.3 tar.gz
Need I download "jakarta-servletapi.tar.gz"
What is it meant for?

Also I need to integrate Tomcat with Apache using mod_jk

My processor is  AMD K6 with the type i586.

>From where I will get   a mod_jk.so for i586.
In Apache website it is given for i386. Can I use the same mod_jk.so for
i586.

Regards

Joel


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: javascript access protection.

2001-11-03 Thread Pier Fumagalli

Thierry RAIBAUT at [EMAIL PROTECTED] wrote:

> Hello,
> 
> could somebody explain me how is it possible to protect some ressources from
> direct access.
> 
> I think about a javascript directory.
> This directory has to be accessed by some JSP pages, but I do not want the
> user to access this directory
> directly with the browser by setting the javascript file url.
> 
> I move my javascript directory under web-inf but by doing this, js files are
> no longer available even for jsp pages.
> 
> thanks a lot for your help.

Javascripts are interpreted BY THE CLIENT, not by the server, so no matter
what, the client NEEDS to se that .js file, and needs to be able to download
it.

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Newbie-Installation

2001-11-03 Thread Charles Webber

Check out the web for mod_jk.
Here's a link to the jakarta site that may help.
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html

It's easier than you think to integrate Tomcat with Apache.  In your
httpd.conf, include a line like:
Include $TOMCAT_HOME/conf/mod_jk.conf-auto
Make sure that the mod_jk.conf-auto points to mod_jk.so
There are probably better ways of doing this, but it worked for me.
Good luck.

- Original Message -
From: Joel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 03, 2001 8:04 AM
Subject: Newbie-Installation


> Dear,
>
>  I am trying to install Tomcat 3.3 in Linux.
>
> I have downloaded Tomcat 3.3 tar.gz
> Need I download "jakarta-servletapi.tar.gz"
> What is it meant for?
>
> Also I need to integrate Tomcat with Apache using mod_jk
>
> My processor is  AMD K6 with the type i586.
>
> From where I will get   a mod_jk.so for i586.
> In Apache website it is given for i386. Can I use the same mod_jk.so for
> i586.
>
> Regards
>
> Joel
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




javax.servlet.ServletException

2001-11-03 Thread Hostmaster of the day

I'm still trying to remote access to our mySQL database in Baltimore.

The following error occurs

Cannot connect to MySQL server on www.domain.com:3306. Is there a
MySQL server running on the machine/port you are trying to connect
to? (java.security.AccessControlException)

Yes of course it is.

I tried to modify the tomcat.policy file as follows :

permission java.net.SocketPermission
"IP-address:1024-","accept,listen,resolve";

But this code gets lost after the next Tomcat 3.2.1 restart

I don't know what I could do to get rid of that problem.

Your help would really be appreciated.

Thank you very much,
Mark (HotD*)


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: javascript access protection.

2001-11-03 Thread Deacon Marcus

Hi,

> -Original Message-
> From: Thierry RAIBAUT [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 03, 2001 12:08 PM
> To: [EMAIL PROTECTED]
> Subject: javascript access protection.
>
>
> Hello,
>
> could somebody explain me how is it possible to protect some
> ressources from direct access.
>
> I think about a javascript directory.
> This directory has to be accessed by some JSP pages, but I do not
> want the user to access this directory
> directly with the browser by setting the javascript file url.
>
> I move my javascript directory under web-inf but by doing this,
> js files are no longer available even for jsp pages.
>
> thanks a lot for your help.
>
> Thierry
>

There's no "real" protection since the files in question would end up in
browser's cache, no matter disk or memory, anyway.
Try setting a filter on the directory containing the .js files and checking
for "referer" http header. It's not a real solution, you could still telnet
:80 and write GET /dir/file.js2 HTTP/1.1 [enter] Referer:
http://server/file.jsp [enter] [enter] and get the file, but it's the best
you can do. Filters are 2.3 of course.

Greetings, deacon Marcus


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




NoClassDefFoundError ..?

2001-11-03 Thread Terje Torkelsen


I've just installed Tomcat 4.0.1 on a Linux system with Apache 1.3.20
running. But when Im trying to start Tomcat it wont work. When I run
dtomcat4 debug I get this message:

Using CLASSPATH:
/var/tomcat4/bin/bootstrap.jar:/usr/local/j2sdk1.3.1/lib/tools.jar
Using CATALINA_BASE: /var/tomcat4
Using CATALINA_HOME: /var/tomcat4
Using JAVA_HOME: /usr/local/j2sdk1.3.1
Initializing job...
> run
run org.apache.catalina.start.Bootstrap start
>
VM Started:
Execption occured: java.lang.NoClassDefFoundError (uncaught)
thread="main", org.apache.xerces.framework.XMLParser.parse(). line=1094,
bci=68

main[1] exit
Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java)
at
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java)
at
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)

Does anyone know what the cause of this problem could be? Tomcat 3.3
worked fine on my system. I was just going to upgrade..



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




tomcat archive location?

2001-11-03 Thread Eric Strain

I need to search the archives for information on TC, anyone here know the 
address? Thanks.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JOnAS Application Server

2001-11-03 Thread Ray Madigan

Has anyone attempted to connect the Tomcat 4.0 server to a JOnAS application
server.  If you have tired i could use some guidance.  Any help would be
appreciated.

Thanks
RayM


--
To unsubscribe:   
For additional commands: 
Troubles with the list: