Re: Urgent: Strange Exception in my jsp file

2003-06-09 Thread Holger Klawitter

> help me to solve this strange problem at my project. The rodrigo2.jsp file
> ( CODE BELOW ) runs fine in JDeveloper but returns an strange exception in
> TomCat 4.1.18. 

Servlets are not in the same package as jsp files; at least not by default. 
"Dica" may be visible in your servlet, but not in your jsp file. In older 
versions of Tomcat (and perhaps JDeveloper) jsp files were in the "root" 
package; which is likely to be your servlet package as well.

Mit freundlichem Gruß / With kind regards
Holger Klawitter
--
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL client authentication with tomcat 4.1.24

2003-06-09 Thread Mario Ivankovits
It works!

Thank you 

- Original Message - 
From: "Bill Barker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 5:33 AM
Subject: Re: SSL client authentication with tomcat 4.1.24


> I believe that the Sun 1.4 JVM ships with the certs for Verisign and
Thawte
> (to verify this, search the java.sun.com site).  To allow OpenExchange
> signed certs, you need to get the signing cert (not hard), and import it
> into cacerts.
>
> "Mario Ivankovits" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > For me, it looks like some certificates cant be read by tomcat/ssl.
> >
> > So, my Thawte FreeMail Member certificate works, but the certificate
> > generated by SuSE OpenExchange wont work.
> >
> > I havent figured out what the difference could be for now.
> >
> > Mario
> >
> > - Original Message -
> > From: "Duma Rolando" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, June 06, 2003 1:40 PM
> > Subject: Re: SSL client authentication with tomcat 4.1.24
> >
> >
> > > I have already imported my certificate.This is correctly showed if I
> > connect
> > > to an apache + mod-ssl server with "SSLVerifyClient require"
directive,
> so
> > I
> > > think the problem belongs to Tomcat SSL implementation or its
> > configuration.
> > > That's why I'm looking for people with positive experience on this
kind
> of
> > > setup.
> > >
> > >
> > > - Original Message -
> > > From: "Bodycombe, Andrew" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > Sent: Friday, June 06, 2003 12:58 PM
> > > Subject: RE: SSL client authentication with tomcat 4.1.24
> > >
> > >
> > > > You need to import your personal certificate into your browser.
> > > >
> > > > In IE:
> > > > Select 'Internet Options' from the Tools Menu
> > > > Select the Content tab
> > > > Press the certificates button
> > > >
> > > > This takes you to the screen showing all your certificates
> > > > Select the 'Personal' tab
> > > > Press Import to import your certificate
> > > >
> > > > Andy
> > > >
> > > > -Original Message-
> > > > From: Duma Rolando [mailto:[EMAIL PROTECTED]
> > > > Sent: 06 June 2003 11:31
> > > > To: Tomcat Mailing List
> > > > Subject: SSL client authentication with tomcat 4.1.24
> > > >
> > > >
> > > > Is there anyone that have a running tomcat 4.1.24 standalone server
> with
> > > SSL
> > > > and clientAuth="true"?
> > > > My current config doesn't work ( i.e. Internet Explorer doesn't
> display
> > my
> > > > personal certificate, Mozilla displays an error message ).I tried
with
> > > only
> > > > one SSL connector on port 443 and with also an http connector on
port
> 80
> > > > without success.I would like to know if I'm wasting time or there
are
> > > > "success stories" about this in this community.
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] document.createElement("textarea") how to invoke events on this

2003-06-09 Thread Vijay Pawar
Hi All,

I would be obliged if someone helps me in this.

I am dynamically creating rows in my jsp by using the dom-tree functions

To create a text field i use :-

document.createElement("");

The above code works fine and on double clicking, the the alert is invoked.

Now to create a text area using dom i use the following code :-

var td5 =   document.createElement("textarea");
td5.setAttribute("name","mytextarea");
td5.setAttribute("cols","10");
td5.setAttribute("rows","2");
td5.setAttribute("wrap","PHYSICAL");

Now i wish to add a javascript event to this text area and so i tried the
following
td5.setAttribute("ondblClick=alert('hello')");

But this does not work. Can anyone please tell me how to add javascript
events to a text area that is generated like this.

Thanking in advance,
Vijay



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Servlet thread safety

2003-06-09 Thread Bill Barker
If your servlet doesn't implement SingleThreadModel, then it is actually
guaranteed by the Spec that there will be exactly one instance (per-Context)
that executes the request.

"John Corrigan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> No.
>
> Concurrent requests will most likely be be processed by the same instance
of
> your Servlet class, however it is not guarantted.
>
> -Original Message-
> From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2003 9:43 AM
> To: Tomcat Users List
> Subject: Re: Servlet thread safety
>
>
> How about the flip side? Is instance data guaranteed separate for each
> request?
>
> I Have some code that relies on instance data and I just had the
> horrible realization that I have assumed that no two concurrent
> requests will be talking to the same object.
>
> Thanks again,
> G. Wade
>
> "Shapira, Yoav" wrote:
> >
> > Howdy,
> > You didn't miss it.  No such guarantee exists for normal servlets.  See
> > the javax.servlet.SingleThreadModel interface for one approach to this
> > issue.
> >
> > However, many people will tell you to avoid SingleThreadModel for
> > various reasons.  I tend to agree.  The design and implementation of
> > your servlets should not depend on the synchronization of their service
> > methods by the container.  If you have shared resources put them in
> > objects (often singletons) outside the servlets.
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> > >-Original Message-
> > >From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, June 09, 2003 12:08 PM
> > >To: Tomcat Users List
> > >Subject: Servlet thread safety
> > >
> > >This may be an obvious question, but is there any guarantee one way or
> > >the other about whether there is a separate servlet object for each
> > >concurrent request.
> > >
> > >In other words, is there any chance that instance data would be shared
> > >between two requests? If so, are we guaranteed if the instance data
> > will
> > >always be shared between two requests.
> > >
> > >I didn't see any, but I may just have missed it.
> > >
> > >G. Wade
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MBeanServer Fails - Admin Tool Won't Work

2003-06-09 Thread Bill Barker
I'm not a Windows user myself, but it looks like you are missing the JMX
jars.In your %CATALINA_HOME%\server\lib their should be either a
'mx4j-jmx.jar' or a 'jmxri.jar'.  If missing, you can grab the first from
, and the second from
http://java.sun.com/products/JavaManagement/.

"Michael Duffy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've installed Tomcat 4.1.24 using the install .exe.
> I'm running Tomcat as a service on Windows 2000 using
> JDK 1.4.1.
>
> The install was smooth, and Tomcat itself runs just
> fine. I can use the manager tool without problem, and
> my Web apps are running nicely.
>
> But I get this exception in stdout.log when I start
> the service:
>
> Bootstrap: Service started
> javax.servlet.UnavailableException: MBeanServer is not
> available
>
> The admin tool does not work.  I can bring it up and
> log in, but the UI doesn't show Tomcat Server.  If I
> click on Resources->Data Sources, I get an HTTP 500 in
> the right frame.  From that point on, everything in
> the admin tool brings back an HTTP 500 response.
>
> I think the MBeanServer and the admin tool failures
> are related.  Does anyone have any advice for me on
> how to get the admin tool up and running?
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing data files via APPLET tags in JSP pages

2003-06-09 Thread Susan Hoddinott
On this same subject, I was wondering if there is any way of forcing an
APPLET to access a server file, e.g. via socket connection, etc.?

Regards,
Susan Hoddinott
http://www.hexworx.com

- Original Message -
From: "Magne Skjeret" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, June 09, 2003 9:30 PM
Subject: Re: Accessing data files via APPLET tags in JSP pages


> man, 09.06.2003 kl. 12.48 skrev Susan Hoddinott:
> > Hello,
> >
> > I am restricted in that my web hoster does not have an installed
> > graphics environment (therefore any attempts to draw graphics
> > offscreen in a servlet results in a null pointer from
> > getLocalGraphicsEnvironment).  In order to bypass this problem I have
> > attempted to replace my servlet with an applet and I call this via an
> > APPLET HTML tag in a JSP.  It works fine except for the fact that any
> > attempt to read a data file on the server seems instead to be
> > interpreted as an attempt to read the file in a directory of the same
> > name on the client, despite passing in such parameters as
> > request.getRealPath(/) and request.getServletPath().  It also seems to
> > use the JVM in any plug-in on the client machine rather than my
> > preferred JVM environment on the server.
> >
> > Has anyone encountered these problems and found a way around them?
>
>   An applet is running on the client machine, not on the server.
> If the server is using java1.4 you can set the server to be headless,
> making it possible to create images and such on a server without a
> graphichs environment.
>
> -Djava.awt.headless=true on the startup script will make it run
> headless.
>
> I hope this can help.
> Magne Skjeret
>
> >
> > Regards,
> > Susan Hoddinott
> > http://www.hexworx.com
> >
> >
> > __
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing data files via APPLET tags in JSP pages

2003-06-09 Thread Susan Hoddinott
Thanks,

I'll try that.  The component toolkit methods and awt toolkit stuff were all
looking for X11 and there did not seem to be anything else as you are
probably aware.  It does seems strange to me that the APPLETS will read
sound and graphics files on the server but not a simple data file.

Regards,
Susan Hoddinott
http://www.hexworx.com

- Original Message -
From: "Magne Skjeret" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, June 09, 2003 9:30 PM
Subject: Re: Accessing data files via APPLET tags in JSP pages


> man, 09.06.2003 kl. 12.48 skrev Susan Hoddinott:
> > Hello,
> >
> > I am restricted in that my web hoster does not have an installed
> > graphics environment (therefore any attempts to draw graphics
> > offscreen in a servlet results in a null pointer from
> > getLocalGraphicsEnvironment).  In order to bypass this problem I have
> > attempted to replace my servlet with an applet and I call this via an
> > APPLET HTML tag in a JSP.  It works fine except for the fact that any
> > attempt to read a data file on the server seems instead to be
> > interpreted as an attempt to read the file in a directory of the same
> > name on the client, despite passing in such parameters as
> > request.getRealPath(/) and request.getServletPath().  It also seems to
> > use the JVM in any plug-in on the client machine rather than my
> > preferred JVM environment on the server.
> >
> > Has anyone encountered these problems and found a way around them?
>
>   An applet is running on the client machine, not on the server.
> If the server is using java1.4 you can set the server to be headless,
> making it possible to create images and such on a server without a
> graphichs environment.
>
> -Djava.awt.headless=true on the startup script will make it run
> headless.
>
> I hope this can help.
> Magne Skjeret
>
> >
> > Regards,
> > Susan Hoddinott
> > http://www.hexworx.com
> >
> >
> > __
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Jens Skripczynski
At 10:29 AM 6/9/2003, Dean Fantham wrote:
> The only potential method that can catch most (but not all) of these
> would be to create a separate image handling jsp/servlet, say
> imageHandler.  When imageHanlder servlet recieves an image request it
> can check the http-referrer header and ensure that the referrer is the
> url of the page to which the images are supposed to load, i.e. is the
> page containing the images in /servlet/somepage then the http-referrer
> that imageHandler see should be able to checked that it is
> /servlet/somepage.  Someone can circumvent this control by the Internet,
> but just manually setting this header themselves (via a program or the
> like) and then having access directly to the images
>
> You would then have to update all image referrences on the somepage
> servelt/jsp however to something like  src="/servlet/imagehandler?gif=somerefernce">.
This may not work, since there may be Browsers out there, that do not sent a
referer or a forged referer String (e.g. privoxy is a proxy that can change
referers, cookies...)

Justin Ruthenbeck:
> Without more information about the intended application, this discussion 
> will continue to become more academic and less directly useful ... but, 
> really, what's wrong with that?  ;)
> 
> If your app needs to serve images for non-authenticated users, but you want 
> to approximate security (as if you're trying to avoid direct links to your 
> images, as someone else had surmised), another option is to issue 
> time-sensitive keys with your generated HTML such that your  tags look 
> like:
> 
>  "/images/nolinking.jpg" is your protected resource, and "f5c78x" is a key 
> that the servlet or jsp generating this code has created and stored.  Such 
> a key would be valid for, say, 60 seconds during which imgSentinel would 
> grant access.
This approach is better since the authentification is done on the server side
not requiring any tecnical funtionality on the clientside.



Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

Always say what I really think. But nowadays this is a serious error
since one risks being misunderstood.
  -- Oscar Wild


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running Struts in Eclipse w/ Sysdeo Plugin: Digester Error on Startup

2003-06-09 Thread Watson, Jake
Apologies if this has been answered, but I've already searched the archives and have 
found no answer. I have also posted to the Struts list ...

I get the following error when starting up my Web app in Eclipse (2.1) using the 
latest version of the Sysdeo plugin:

841 [main] ERROR digester.Digester  - Digester.getParser: 
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.apache.commons.digester.Digester.getFactory(Digester.java:518)
at org.apache.commons.digester.Digester.getParser(Digester.java:692)
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:908)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at 
org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202)

To make it this far, I had to put the j2ee.jar in Tomcat's common/lib dir, and I have 
been sure to *not* include the servlet.jar in both places--it's only in Tomcat's 
common/lib dir. Also, I have put the xerces.jar in this dir, but to no avail ...

Has anyone else encountered such errors?

__
Jake Watson
Trendwest Resorts
425.498.2731 (v)
425.922.5104 (c)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to unsubscribe - tried twice!

2003-06-09 Thread Jens Skripczynski
I _belief_ you have to have it in the To: line.
So
---
To: [EMAIL PROTECTED]
Subject: anything
---
in the Email header would work
---
To: anything
Subject: [EMAIL PROTECTED]
---
won't.

Tomcat User:
> I have as well...anyone have any ideas??
> 
> Dan LeBaron, CSSA
> Ingenuit Technologies, Inc
> Complete Business Technology Solutions
> 
> P 503.267.4089
> F 888.861.9051
> www.ingenuittechnologies.com
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Keith Adams [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 09, 2003 8:25 AM
> To: Tomcat Users List
> Subject: how to unsubscribe - tried twice!
> 
> I tried twice, with the subject line:
> [EMAIL PROTECTED], on Friday, and I'm still
> receiving the emails. I even received a confirmation that I'd been
> unsubscribed.  Has anybody else experienced this?
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
 

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

There is a fantasy in Redmond that Microsoft products are innovative, but this
is based entirely on a peculiar confusion of the words »innovative« and
»successful«. Microsoft products are successful -- they make a lot of money --
but that doesn't make them innovative, or even particularly good.
-- Robert X. Cringely


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: question on creating a file download servlet

2003-06-09 Thread budi

check this out:

http://www.fawcette.com/javapro/2002_03/online/online_eprods/servlets_03_08/

budi


   ---Original Message---
   > From: Mark W. Webb 
   > Subject: question on creating a file download servlet
   > Sent: 09 Jun 2003 19:33:37
   >
   >
   >  I need to write a servlet that handles file downloads, so that I can audit who 
downloaded from where, when..etc.  
   >
   >  When I click on the link to download a file, the "Save As" window comes up in my 
browser(Netscape), and as a default filename I get the servlet name.  Is there a way 
to list the actual filename in the "Save As" window ?
   >
   >
   >
   >  -
   >  To unsubscribe, e-mail: [EMAIL PROTECTED]
   >  For additional commands, e-mail: [EMAIL PROTECTED]
   >
   ---Original Message---




RE: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Jeffrey Cummings

Excuse my ignorance, but I am not sure which file these lines belong to. Is
it the uriworkermap.properties file? What is shm.file a log file? Could I
have the file parameter point to C:\Jakarta-4.1.24\logs\shm.file since all
my log files are in that directory?

Jeff


-Original Message-
From: Dominic Parry [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 1:52 PM
To: Tomcat Users List
Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config

Hi

Sure can, here is an examples of mine:

# Define the communication channel
[shm]
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file
size=1048576

[channel.socket:127.0.0.1:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

[uri:/admin/*]

[uri:/manager/*]

[uri:/DynaServlet/*]

[uri:/HamiltonBank/*]

hope this helps.

Dom
  - Original Message -
  From: John Turner
  To: Tomcat Users List
  Sent: Monday, June 09, 2003 6:25 PM
  Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config



  I'm pretty sure Jeffrey did...at least as far as I can tell.  Do you have
  some examples of the correct way?

  John

  On Mon, 9 Jun 2003 18:16:49 +0200, Dominic Parry <[EMAIL PROTECTED]>
  wrote:

  > you need to specify your uri's in workers.properties
  > - Original Message - From: John Turner To: Tomcat Users List
  > Sent: Monday, June 09, 2003 6:13 PM
  > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  >
  >
  >
  > Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help
  > out with nitty gritty stuff.  Hopefully someone else has more insight.
  >
  > John
  >
  > On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]>
  > wrote:
  >
  > > Yes I did install the filter and it does have the green arrow.
  > > This as the log file, mod_jk_iis.log when I start IIS
  > > [jk_uri_worker_map.c (156)]: Into >
  > jk_uri_worker_map_t::uri_worker_map_alloc
  > > [jk_uri_worker_map.c (196)]: Into >
  > jk_uri_worker_map_t::uri_worker_map_open
  > > [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open,
  > > rule
  > > map size is 5
  > > [jk_uri_worker_map.c (267)]: Into >
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /servlet/=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into >
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /examples/=ajp13 was added
  > > [jk_uri_worker_map.c (256)]: Into >
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > suffix rule /examples/.jsp=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into >
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /examples/servlet/=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into >
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /admin/=ajp13 was added
  > > [jk_uri_worker_map.c (296)]: Into >
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > there are 5 rules
  > > [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open,
  > > done
  > > [jk_worker.c (82)]: Into wc_open
  > > [jk_worker.c (207)]: Into build_worker_map, creating 1 workers
  > > [jk_worker.c (213)]: build_worker_map, creating worker ajp13
  > > [jk_worker.c (138)]: Into wc_create_worker
  > > [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13
  > of
  > > ajp13
  > > [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
  > > [jk_worker.c (161)]: wc_create_worker, about to validate and init
ajp13
  > > [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
  > > [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 >
  > contact
  > > is localhost:8009
  > > [jk_ajp13_worker.c (425)]: Into jk_worker_t::init
  > > [jk_worker.c (177)]: wc_create_worker, done
  > > [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
  > > [jk_worker.c (235)]: build_worker_map, done
  > > [jk_worker.c (102)]: wc_open, done
  > >
  > >
  > > Jeff
  > >
  > >
  > > -Original Message-
  > > From: John Turner [mailto:[EMAIL PROTECTED]
  > > Sent: Monday, June 09, 2003 9:00 AM
  > > To: Tomcat Users List
  > > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  > >
  > >
  > > Thanks.  Did you install the filter?
  > >
  > > AFAIK, this is the best tutorial on Tomcat + IIS:
  > >
  > > http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html
  > >
  > > John
  > >
  > > On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> >
  > wrote:
  > >
  > >> Thanks for the help. There is the information request
  > >>
  > >> My worker.propqerties file is: -
  > >>
  > >> worker.list=ajp13
  > >> worker.ajp13.port=8009
  > >> worker.ajp13.host=localhost
  > >> worker.ajp13.type=ajp13
  > >>
  > >> my uriworkermap.properties file is:-
  > >>
  > >> /servlet/*=ajp13
  > >> /examples/*=ajp13
  > >> /examples/*.jsp=ajp13
  > >> /examples/servlet/*=ajp13
  > >> /admin/*=ajp13
  > >>
  > >> 

Problem with request scope example

2003-06-09 Thread Julien Martin
Hello,

I am trying to understand the use of the request scope.

I have two jsp and a bean class as follows:

***first jsp





First Page




 here
 




***second jsp
<%@ page import="paquet.Person" %>

<%
p = (Person)request.getAttribute("person");
%>


Second Page










***java bean
package paquet;
public class Person {
private int age;
private String name;
public int getAge() {
return age;
}
public String getName() {
return name;
}
public void setAge(int i) {
age = i;
}
public void setName(String string) {
name = string;
}
}


I am trying to display on jsp two the properties set in jsp one. It is not
working. Can anyone help?

Thanks in advance,

Julien.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread Liying Huang
Yeah, I realized that I should diable the directory-listing instead of
enabling it. Thanks for the website, I will play there to see if I
could get my page. 

Liying



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mod_jk, ssl, java, and certificates question

2003-06-09 Thread Jeff Owens
Thanks Bill,

Armed with your confirmation and some searching, I figured out that the Java
(I'm using 1.4.1) X509TrustManager class can be overridden to make it think
all certificates are ok.  I'll remove the override once I get setup with a
CA issued certificate.

Anyway, thanks again!

Jeff Owens


- Original Message -
From: "Bill Barker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2003 8:26 PM
Subject: Re: Mod_jk, ssl, java, and certificates question


> The client only needs to deal with Apache-ssl.  Apache with mod_jk
> (configured correctly, e.g. the default config) will pass the SSL
variables
> to Tomcat, but all of the SSL handling (including server-cert) will be
done
> by Apache.
>
> "Jeff Owens" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> I have a system setup running the Apache Web Server with a self-generated
> SSL Certificate for using Https.  I have another system setup running
> Tomcat.  I have successfully connected them using mod_jk (which is
great!).
>
> I have a servlet application running and am adding another, but the second
> one is a little different.  Basically its a swing client that will run on
> client's computers and transmit data to a servlet running under Tomcat.
> I've tested it with HTTP, but am now ready to move to HTTPS and am having
> some problems and confusion.
>
> Question:  Does my client software have to deal with Tomcat and SSL, or
just
> the Apache Web Server SSL?
>
> If anyone uses/has used a setup similar to this, please reply.
>
> Thanks very much,
> Jeff Owens
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread John Turner
You want to disable it, not enable it.  Keep in mind that Tomcat 5 is 
alpha-almost-beta.  Are you sure you want to be playing with it?  It's not 
ready for production.

Regarding directory listing and welcome files:

http://tomcatfaq.sourceforge.net/configure.html

John

On Mon, 9 Jun 2003 17:08:18 -0400, Liying Huang <[EMAIL PROTECTED]> 
wrote:

Thanks,

I have welcome file, maybe directory listing is not enabled.
I am new to this, can you tell me What I shall do  to enable it?
Tnaks,
Liying
- Original Message -
From: "John Turner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, June 09, 2003 5:01 PM
Subject: Re: What could be wrong if I see a list of files instead of
generating the webpage

Directory listing is enabled and no default page (welcome-file) is
defined.
John

On Mon, 9 Jun 2003 16:59:01 -0400, Liying Huang <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I am new to tomcat5 and I had the following problem.
>
> I have downloaded nightly build tomcat5. When I put my project
> project.war in webapps folder, and startup tomcat, and go to
> http://localhost:8080/project, instead of generating the webpage,
> I got to see list of files showing in that folder. I don't have
> this problem with tomcat4. What could I do wrong?
>
> Thanks,
> Liying
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread Liying Huang
Sorry, I meant my directory listing is enabled, how to disable it?

Liying



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread Liying Huang
Thanks,

I have welcome file, maybe directory listing is not enabled.
I am new to this, can you tell me What I shall do  to enable it?

Tnaks,
Liying

- Original Message -
From: "John Turner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, June 09, 2003 5:01 PM
Subject: Re: What could be wrong if I see a list of files instead of
generating the webpage


>
> Directory listing is enabled and no default page (welcome-file) is
defined.
>
> John
>
> On Mon, 9 Jun 2003 16:59:01 -0400, Liying Huang <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> >
> > I am new to tomcat5 and I had the following problem.
> >
> > I have downloaded nightly build tomcat5. When I put my project
> > project.war in webapps folder, and startup tomcat, and go to
> > http://localhost:8080/project, instead of generating the webpage,
> > I got to see list of files showing in that folder. I don't have
> > this problem with tomcat4. What could I do wrong?
> >
> > Thanks,
> > Liying
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



log level set to DEBUG for serviceRequest

2003-06-09 Thread Angelov, Rossen
Hi,

Tomcat 4.1.12 and Solaris 5.7 and JDK 1.4

Is there a way to change the log level to INFO or completely remove or
change the location of bin/serviceRequest.log?

Currently it prints out tons of lines that I don't really need in the bin
directory.
I was searching for serviceRequest in the conf directory but didn't find
anything. 

Ross


Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread John Turner
Directory listing is enabled and no default page (welcome-file) is defined.

John

On Mon, 9 Jun 2003 16:59:01 -0400, Liying Huang <[EMAIL PROTECTED]> 
wrote:

Hi,

I am new to tomcat5 and I had the following problem.

I have downloaded nightly build tomcat5. When I put my project
project.war in webapps folder, and startup tomcat, and go to
http://localhost:8080/project, instead of generating the webpage,
I got to see list of files showing in that folder. I don't have
this problem with tomcat4. What could I do wrong?
Thanks,
Liying


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: question on creating a file download servlet

2003-06-09 Thread Mark W. Webb
...thank you.

Shapira, Yoav wrote:

Howdy,
Use the content-disposition header:
http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Mark W. Webb [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 3:34 PM
To: [EMAIL PROTECTED]
Subject: question on creating a file download servlet
I need to write a servlet that handles file downloads, so that I can
   

audit
 

who downloaded from where, when..etc.

When I click on the link to download a file, the "Save As" window comes
   

up
 

in my browser(Netscape), and as a default filename I get the servlet
   

name.
 

Is there a way to list the actual filename in the "Save As" window ?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread Liying Huang
Hi,

I am new to tomcat5 and I had the following problem.

I have downloaded nightly build tomcat5. When I put my project
project.war in webapps folder, and startup tomcat, and go to
http://localhost:8080/project, instead of generating the webpage,
I got to see list of files showing in that folder. I don't have
this problem with tomcat4. What could I do wrong?

Thanks,
Liying



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Yes, it does! It has 2 constructors, one of then has no-args. I ve already
taken it off, but this error message goes on...
Thanks again,
Euclides.

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 9 de junho de 2003 17:31
Para: [EMAIL PROTECTED]
Assunto: RE: What does this crazy error message mean?



Howdy,
This error is different than what you got before.

Does your Dica bean have a public no-arguments constructor?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 4:25 PM
>To: 'Tomcat Users List'; Shapira, Yoav
>Subject: RES: What does this crazy error message mean?
>
>Dear Yoav,
>i ve already done it. But i always get the following error:
>
>HTTP Status 500 -
>
>---

>-
>
>
>type Exception report
>
>message
>
>description The server encountered an internal error () that prevented
it
>from fulfilling this request.
>
>exception
>
>org.apache.jasper.JasperException: Cannot create bean of class Dica
>   at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
>2
>48)
>   at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
)
>   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat
cher
>.
>java:684)
>   at
>org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis
patc
>h
>er.java:432)
>   at
>org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa
tche
>r
>.java:356)
>   at BancoServlet.recuperaDicaTopico(BancoServlet.java:135)
>   at BancoServlet.service(BancoServlet.java:65)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
>n
>FilterChain.java:247)
>   at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
>h
>ain.java:193)
>   at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>a
>va:260)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
>a
>va:191)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
15)
>   at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
>0
>)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
>.
>java:170)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
>2
>)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
>a
>:174)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>   at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4
32)
>   at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
>e
>ction(Http11Protocol.java:386)
>   at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
34)
>   at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
>v
>a:530)
>   at java.lang.Thread.run(Thread.java:536)
>
>
>root cause
>
>javax.servlet.ServletException: Cannot create bean of class Dica
>   at org.apache.jsp.rodrigo2_j

RE: JSTL and EL question - SOLVED

2003-06-09 Thread Karr, David
This behavior is described in the JSP 1.2 specification, in section
JSP.7.3 (not in one single place in the section).

> -Original Message-
> From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED]
> 
> Hi David.
> This method works great. Thanks
> Is there any downside to using it? Is it still considered "standard"?
> 
> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> 
> The setup can be a little simpler than this.  The taglib jar can
contain
> the TLD for the taglib in the "META-INF" directory of the jar.  If it
is
> present there, you do not have to deploy the TLD separately.  In
> addition, if the TLD is present there, you do not have to have the
> explicit taglib map in your "web.xml" file.  In this case, your
"taglib"
> directive in the JSP page needs to specify the URI that is specified
in
> the TLD in  the taglib jar file, which is hopefully documented in the
> taglib documentation (so you don't have to open the file in the jar
> file).
> 
> If this is done correctly, you can skip steps 2 and 3 of this process.
> 
> > -Original Message-
> > From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
> >
> > > I thought I liked the idea of having the taglib in the web.xml
file.
> > > When I try it I'm getting "This absolute uri
> > > (http://java.sun.com/jstl/core) cannot be resolved in either
web.xml
> or
> > > the jar files deployed with this application". Do I have to
download
> it
> > > somewhere in order to use it in the web.xml file? Any ideas?
> >
> > :-)
> >
> > OK, four things when dealing with ANY tag library:
> >
> > 1. PLACE JAR FILES
> >
> > Place JAR files that hold implementation of the tag library in a
> directory
> > where Tomcat will pick it up. Either make it "WEB-INF/lib/"
(private)
> or
> > "${CATALINA_HOME}/shared/lib" (all web-apps will have access to it).
> You
> > could place it in "${CATALINA_HOME}/common/lib", but I don't see the
> point
> > in Tomcat having access to those JARs. There was a discussion
recently
> > naming pros/cons of each choice (Craig), so look up the archives.
> >
> > 2. PLACE TLD
> >
> > Place TLD files (Tag Library Descriptor) in either "WEB-INF/" or (if
I
> > recall correctly) "WEB-INF/taglibs/". The first placement will
require
> for
> > "location" in "web.xml" file to be absolute: "/WEB-INF/.tld",
> while
> > the second will allow for relative links: ".tld"
> >
> > 3. DECLARE TLD IN WEB.XML
> >
> > This part you've already seen.
> >
> > 
> >http://java.sun.com/jstl/core
> >/WEB-INF/c.tld
> > 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread John Turner
Thanks!  Jeffrey, does this help?

John

On Mon, 9 Jun 2003 19:51:39 +0200, Dominic Parry <[EMAIL PROTECTED]> 
wrote:

Hi

Sure can, here is an examples of mine:

# Define the communication channel
[shm]
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file
size=1048576
[channel.socket:127.0.0.1:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp
[uri:/admin/*]

[uri:/manager/*]

[uri:/DynaServlet/*]

[uri:/HamiltonBank/*]

hope this helps.

Dom
- Original Message - From: John Turner To: Tomcat Users List 
Sent: Monday, June 09, 2003 6:25 PM
Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config



I'm pretty sure Jeffrey did...at least as far as I can tell.  Do you have 
some examples of the correct way?

John

On Mon, 9 Jun 2003 18:16:49 +0200, Dominic Parry <[EMAIL PROTECTED]> 
wrote:

> you need to specify your uri's in workers.properties
> - Original Message - From: John Turner To: Tomcat Users List > 
Sent: Monday, June 09, 2003 6:13 PM
> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
>
>
>
> Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help 
> out with nitty gritty stuff.  Hopefully someone else has more insight.
>
> John
>
> On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> > 
wrote:
>
> > Yes I did install the filter and it does have the green arrow.
> > This as the log file, mod_jk_iis.log when I start IIS
> > [jk_uri_worker_map.c (156)]: Into > > 
jk_uri_worker_map_t::uri_worker_map_alloc
> > [jk_uri_worker_map.c (196)]: Into > > 
jk_uri_worker_map_t::uri_worker_map_open
> > [jk_uri_worker_map.c (211)]: 
jk_uri_worker_map_t::uri_worker_map_open, > > rule
> > map size is 5
> > [jk_uri_worker_map.c (267)]: Into > > 
jk_uri_worker_map_t::uri_worker_map_open,
> > match rule /servlet/=ajp13 was added
> > [jk_uri_worker_map.c (267)]: Into > > 
jk_uri_worker_map_t::uri_worker_map_open,
> > match rule /examples/=ajp13 was added
> > [jk_uri_worker_map.c (256)]: Into > > 
jk_uri_worker_map_t::uri_worker_map_open,
> > suffix rule /examples/.jsp=ajp13 was added
> > [jk_uri_worker_map.c (267)]: Into > > 
jk_uri_worker_map_t::uri_worker_map_open,
> > match rule /examples/servlet/=ajp13 was added
> > [jk_uri_worker_map.c (267)]: Into > > 
jk_uri_worker_map_t::uri_worker_map_open,
> > match rule /admin/=ajp13 was added
> > [jk_uri_worker_map.c (296)]: Into > > 
jk_uri_worker_map_t::uri_worker_map_open,
> > there are 5 rules
> > [jk_uri_worker_map.c (317)]: 
jk_uri_worker_map_t::uri_worker_map_open, > > done
> > [jk_worker.c (82)]: Into wc_open
> > [jk_worker.c (207)]: Into build_worker_map, creating 1 workers
> > [jk_worker.c (213)]: build_worker_map, creating worker ajp13
> > [jk_worker.c (138)]: Into wc_create_worker
> > [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 
> of
> > ajp13
> > [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
> > [jk_worker.c (161)]: wc_create_worker, about to validate and init 
ajp13
> > [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
> > [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 
> > contact
> > is localhost:8009
> > [jk_ajp13_worker.c (425)]: Into jk_worker_t::init
> > [jk_worker.c (177)]: wc_create_worker, done
> > [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
> > [jk_worker.c (235)]: build_worker_map, done
> > [jk_worker.c (102)]: wc_open, done
> >
> >
> > Jeff
> >
> >
> > -Original Message-
> > From: John Turner [mailto:[EMAIL PROTECTED]
> > Sent: Monday, June 09, 2003 9:00 AM
> > To: Tomcat Users List
> > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
> >
> >
> > Thanks.  Did you install the filter?
> >
> > AFAIK, this is the best tutorial on Tomcat + IIS:
> >
> > http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html
> >
> > John
> >
> > On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> 
> > wrote:
> >
> >> Thanks for the help. There is the information request
> >>
> >> My worker.propqerties file is: -
> >>
> >> worker.list=ajp13
> >> worker.ajp13.port=8009
> >> worker.ajp13.host=localhost
> >> worker.ajp13.type=ajp13
> >>
> >> my uriworkermap.properties file is:-
> >>
> >> /servlet/*=ajp13
> >> /examples/*=ajp13
> >> /examples/*.jsp=ajp13
> >> /examples/servlet/*=ajp13
> >> /admin/*=ajp13
> >>
> >> Jeff
> >>
> >>
> >>
> >> -Original Message-
> >> From: John Turner [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, June 09, 2003 8:25 AM
> >> To: Tomcat Users List
> >> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
> >>
> >>
> >> I don't use IIS, but:
> >>
> >> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting 
to
> >> map
> >> URI '/localhost/tomcat/isapi_redirect.dll'
> >> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
> >> jk_uri_worker_map_t::map_uri_to_worker, done without a match
> >>
> >> Look

RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav

Howdy,
This error is different than what you got before.

Does your Dica bean have a public no-arguments constructor?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 4:25 PM
>To: 'Tomcat Users List'; Shapira, Yoav
>Subject: RES: What does this crazy error message mean?
>
>Dear Yoav,
>i ve already done it. But i always get the following error:
>
>HTTP Status 500 -
>
>---

>-
>
>
>type Exception report
>
>message
>
>description The server encountered an internal error () that prevented
it
>from fulfilling this request.
>
>exception
>
>org.apache.jasper.JasperException: Cannot create bean of class Dica
>   at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
>2
>48)
>   at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
)
>   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat
cher
>.
>java:684)
>   at
>org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis
patc
>h
>er.java:432)
>   at
>org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa
tche
>r
>.java:356)
>   at BancoServlet.recuperaDicaTopico(BancoServlet.java:135)
>   at BancoServlet.service(BancoServlet.java:65)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
>n
>FilterChain.java:247)
>   at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
>h
>ain.java:193)
>   at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>a
>va:260)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
>a
>va:191)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
15)
>   at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
>0
>)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
>.
>java:170)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
>2
>)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
>a
>:174)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>   at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4
32)
>   at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
>e
>ction(Http11Protocol.java:386)
>   at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
34)
>   at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
>v
>a:530)
>   at java.lang.Thread.run(Thread.java:536)
>
>
>root cause
>
>javax.servlet.ServletException: Cannot create bean of class Dica
>   at org.apache.jsp.rodrigo2_jsp._jspService(rodrigo2_jsp.java:65)
>   at
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
>2
>04)
>   at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(Js

RE: ClassNotFoundException and FileNotFoundException

2003-06-09 Thread Shapira, Yoav

Howdy,

>Question:
>Is there a tag I need to place in a config file, web.xml file, or
somewhere
>else to allow an applet access to use/find data/class (non-servlet)
files
>in a local (non-ROOT) WEB-INF subdirectory?

No such option exists: it would be a violation of the servlet
specification for an applet (or a browser) to directly access anything
under the WEB-INF directory.

If an applet needs a certain jar, you need to place that jar outside the
WEB-INF directory.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dear Yoav,
i ve already done it. But i always get the following error:

HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Cannot create bean of class Dica
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at BancoServlet.recuperaDicaTopico(BancoServlet.java:135)
at BancoServlet.service(BancoServlet.java:65)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException: Cannot create bean of class Dica
at org.apache.jsp.rodrigo2_jsp._jspService(rodrigo2_jsp.java:65)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at BancoServlet.recuperaDicaTopico(BancoServlet.java:135)
at BancoServ

ClassNotFoundException and FileNotFoundException

2003-06-09 Thread Robert Wray


Question:
Is there a tag I need to place in a config file, web.xml file, or somewhere 
else to allow an applet access to use/find data/class (non-servlet) files 
in a local (non-ROOT) WEB-INF subdirectory?



Problem:
For non-servlets or servlets that have dependencies on other local 
classes/files, I am not able to locate files other than servlets specified 
in the local WEB-INF/web.xml file.
Files found in the webapps/ROOT/WEB-INF/lib and 
webapps/ROOT/WEB-INF/classes are being found and used by my server. So I am 
able to make an applet dependant on certain .jar .xml or .class files work 
if I place those files in the proper subdirectory under ROOT/WEB-INF . The 
applet will work if files are place in the same base local directory as the 
applets' .html file, but it will not work when placed in the local WEB-INF 
subdirectories.



Example:
Using: Windows2K Pro. SP3 ; Tomcat 4.1.18 ; Java 2 SDK, SE, 1.4.0
I have a file "arc.war" with a structure as follows:
META-INF/
META-INF/MANIFEST.MF
Time.html
index.html
WEB-INF/
WEB-INF/data/Time.xml
WEB-INF/lib/
WEB-INF/lib/jcommon-0.8.0.jar
WEB-INF/classes/
WEB-INF/classes/connectionServlet.class
WEB-INF/classes/arcChart.class
WEB-INF/web.xml
I place the .war file into the webapps directory and it expands on startup 
assuming it hasn't already.

index.html refers to the servlet connectionServlet returning html and 
having no dependencies. This servlet works.

Time.html containing an applet using archive="jcommon-0.8.0.jar" and 
code="arcChart"
arcChart.class uses the file Time.xml
The applet gives a java.lang.ClassNotFoundException or 
FileNotFoundException for the .jar .class and .xml files.
If I move these 3 files to the arc.war base directory or the same 
subdirectories but using webapps/ROOT as the base directory, the applet works.

From the localhost_log I get messages including:

HostConfig[localhost]: Expanding web application archive arc.war
StandardHost[localhost]: Installing web application at context path /arc 
from URL file:c:/jakarta-tomcat-4.1.18/webapps/arc
WebappLoader[/arc]: Deploying class repositories to work directory 
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\arc
WebappLoader[/arc]: Deploy class files /WEB-INF/classes to 
c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\classes
WebappLoader[/arc]: Deploy JAR /WEB-INF/lib/jcommon-0.8.0.jar to 
c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\lib\jcommon-0.8.0.jar
StandardManager[/arc]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/arc]: Seeding of random number generator has been completed
StandardWrapper[/arc:default]: Loading container servlet default
StandardWrapper[/arc:invoker]: Loading container servlet invoker

So I know the .jar file is being loaded without any error messages...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Redirecting directories according to domain

2003-06-09 Thread Raphael
I have tomcat 4 installed in a Windows NT server, 

There are 2 domains (www.teste1.com.br, www.teste2.com.br) pointing to my Windows NT 
Server.

I have one directory called "portal"  ( in webapps directory ) and inside this 
directory I have a file called

redirect.jsp, I need to call this file like that:

www.teste1.com.br - redirect.jsp?id=1

www.teste2.com.br - redirect.jsp?id=2

I tryed this using the Tomcat Web Server Administration Tool, but it didn´t work

thanks


--
Raphael Winckler de Bettio M.Eng
Laboratório de Ensino a Distância - UFSC
ICQ: 97050977
email: [EMAIL PROTECTED]
--


RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav

Howdy,

>I did it. I ve created a package ( named euc ) under my app directory,
but
>TomCat didnt find it - " package euc does not exist... " - TomCat
returns
>me. Classpath is setted correctly.

Under your webapp root, you have a WEB-INF directory, which has a
classes directory, which has a euc directory, which has your bean
(Dica.class), right?  Dica.java starts with the line
package euc;
right?

You don't need to modify the environment $CLASSPATH nor the CLASSPATH in
tomcat's startup scripts.  Tomcat automatically picks up classes from
WEB-INF/lib and WEB-INF/classes for your webapp.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
ok, la vai. Me ajude. Att,Euclides.


I did it. I ve created a package ( named euc ) under my app directory, but
TomCat didnt find it - " package euc does not exist... " - TomCat returns
me. Classpath is setted correctly.
I guess i need more help.
Thanks, Euclides.
-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 9 de junho de 2003 16:25
Para: Tomcat Users List
Assunto: RE: What does this crazy error message mean?



Howdy,
Perhaps you should place Dica in a package:
http://tomcatfaq.sourceforge.net/classnotfound.html


-Mensagem original-
De: Marco Rojas [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 9 de junho de 2003 16:38
Para: Tomcat Users List
Assunto: RE: What does this crazy error message mean?


Euclides,

Eu não recebi o código...
Vc. poderia me enviar zipado?

Abs.
Marco


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 9 de junho de 2003 16:18
To: '[EMAIL PROTECTED]'
Subject: What does this crazy error message mean?


Hi everybody, i cant stand without solve this problem:
whenever Rodrigo2.jsp runs, I always get  the bellow message, but the bean
Dica is there What should i do? The jsp complete code is attached.
Regards, Euclides.

An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:54:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
  Dica dica = null;
  ^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:56:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica) pageContext.getAttribute("dica",
PageContext.PAGE_SCOPE);
^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:59:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
^

 <> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I did it. I ve created a package ( named euc ) under my app directory, but
TomCat didnt find it - " package euc does not exist... " - TomCat returns
me. Classpath is setted correctly.
I guess i need more help.
Thanks, Euclides.
-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 9 de junho de 2003 16:25
Para: Tomcat Users List
Assunto: RE: What does this crazy error message mean?



Howdy,
Perhaps you should place Dica in a package:
http://tomcatfaq.sourceforge.net/classnotfound.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 3:18 PM
>To: '[EMAIL PROTECTED]'
>Subject: What does this crazy error message mean?
>
>Hi everybody, i cant stand without solve this problem:
>whenever Rodrigo2.jsp runs, I always get  the bellow message, but the
bean
>Dica is there What should i do? The jsp complete code is attached.
>Regards, Euclides.
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>[javac] Compiling 1 source file
>
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
4:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>  Dica dica = null;
>  ^
>
>
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
6:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>dica = (Dica) pageContext.getAttribute("dica",
>PageContext.PAGE_SCOPE);
>^
>
>
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
9:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>dica = (Dica)
>java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
>^
>
> <>




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: What Oracle is best?

2003-06-09 Thread Jason Bainbridge
Oracle is an enterprise level commercial Database Management System ie. $$$ 
where MySQL is an Open Source alternative designed mainly for web application 
uses (although this may change with their partnership with SAP).  These 
DBMS's can be used within servlets and JSP's by using the appropriate JDBC 
driver.

I believe the current release of Oracle is 9iR2, if you have a requirement to 
use Oracle you would want to look into using that version but it isn't just a 
download and install type affair, there are licenses to worry about and the 
actual install can be a real pain at times.

Do you want to just use a database backend for your web application? In that 
case you're best of with MySQL or PostgresSQL depending on what sort of 
featureset you require.

Regards,
-- 
Jason Bainbridge
http://jblinux.org

On Tue, 10 Jun 2003 03:36, Jonathan Michael Nowacki wrote:
> Just wondering what kind of oracle programs do I need to get Tomcat to
> access an SQL database.  I have servlets already written that work on
> another Sun OS machine that I still have access to.  Is there a way I can
> query the OS to find out what versions of oracle are installed?  The RPM
> command obviously doesn't work (since it is a Sun OS), and I don't have
> root permissions of course.
> If I can't query the Sun OS what versions of Oracle do you recommend.
> I tried browsing the oracle homepage and google searches but that just
> made me more confused from the vast number of choices.  Also do I need
> sqlplus or JDBC if I have j2sdk, tomcat, and MySQL?
>
>
> This is whats already installed:
> ---
> tomcat4-webapps-4.1.24-full.2jpp
> tomcat4-4.1.24-full.2jpp
> tomcat4-admin-webapps-4.1.24-full.2jpp
> j2re1.4.1_02
> j2sdkee1.4
> j2sdk1.4.1_02
> redhat 8
> standard MySQL that comes with Redhat 8 Linux
>
>
>
> Sample Servlet code that works on another computer
> 
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.util.*;
> import java.sql.*;
> public class MultiServlet extends HttpServlet {
>   /**
>* Initialize global variables
>*/
>   public void init(ServletConfig config) throws ServletException {
> super.init(config);
>   }
>   /**
>* Process the HTTP Post request
>*/
>   public void doPost(HttpServletRequest request, HttpServletResponse
> response)
> throws ServletException, IOException {
>
> String category = request.getParameter("category");
>
> response.setContentType("text/html");
> PrintWriter out = new PrintWriter (response.getOutputStream());
> out.println("");
> out.println("Advanced Search");
> out.println("");
>
> try
> {
> System.out.println ("\n before registering driver \n");
>   DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
> System.out.println (" before GET Connection  \n");
>   Connection conn = DriverManager.getConnection
> ("jdbc:oracle:thin:@dbserv.uits.indiana.edu:1521:OED1","s3jm013","s3jm013")
>; System.out.println (" before STatement  \n");
>   Statement stmt = conn.createStatement();
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What Oracle is best?

2003-06-09 Thread Schwartz, David (CHR)
if you have only one machine to run it on then get oracle 9i lite. Its great
for dev & testing locally.
I'm using it with oracle jdbc drivers, tomcat 4.1.24

-Original Message-
From: Jonathan Michael Nowacki [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 3:36 PM
To: Tomcat Users List
Subject: What Oracle is best?


Just wondering what kind of oracle programs do I need to get Tomcat to
access an SQL database.  I have servlets already written that work on
another Sun OS machine that I still have access to.  Is there a way I can
query the OS to find out what versions of oracle are installed?  The RPM
command obviously doesn't work (since it is a Sun OS), and I don't have 
root permissions of course.  
If I can't query the Sun OS what versions of Oracle do you recommend.
I tried browsing the oracle homepage and google searches but that just
made me more confused from the vast number of choices.  Also do I need
sqlplus or JDBC if I have j2sdk, tomcat, and MySQL?


This is whats already installed:
---
tomcat4-webapps-4.1.24-full.2jpp
tomcat4-4.1.24-full.2jpp
tomcat4-admin-webapps-4.1.24-full.2jpp
j2re1.4.1_02
j2sdkee1.4
j2sdk1.4.1_02
redhat 8
standard MySQL that comes with Redhat 8 Linux



Sample Servlet code that works on another computer

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class MultiServlet extends HttpServlet {
  /**
   * Initialize global variables
   */
  public void init(ServletConfig config) throws ServletException {
super.init(config);
  }
  /**
   * Process the HTTP Post request
   */
  public void doPost(HttpServletRequest request, HttpServletResponse
response) 
throws ServletException, IOException {

String category = request.getParameter("category");

response.setContentType("text/html");
PrintWriter out = new PrintWriter (response.getOutputStream());
out.println("");
out.println("Advanced Search");
out.println("");

try
{
System.out.println ("\n before registering driver \n");
  DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
System.out.println (" before GET Connection  \n");
  Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@dbserv.uits.indiana.edu:1521:OED1","s3jm013","s3jm013");
System.out.println (" before STatement  \n");
  Statement stmt = conn.createStatement();



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What Oracle is best?

2003-06-09 Thread Michael Duffy

I believe you'd just need the JDBC driver jars.  I'm
connecting to Oracle from a servlet, and that's all
I'm using.  

Installing the Oracle client SQL-Plus might be helpful
for working directly with the database tables, but
it's not necessary if someone else has already done
that for you.  

You don't need TNSNAMES or the client - just the thin
driver URL, the same way you've spelled it out in the
example you provided.

I think the most current version of Oracle is 9.2.0.1.

MySQL is another flavor of database, so you don't need
that if you have Oracle.  Each database will have its
own JDBC drivers, so you'll need to get them from the
database vendor for your version.

Just put the JDBC jars in the TOMCAT_HOME/common/lib
directory and you're good to go.


--- Jonathan Michael Nowacki <[EMAIL PROTECTED]>
wrote:
> Just wondering what kind of oracle programs do I
> need to get Tomcat to
> access an SQL database.  I have servlets already
> written that work on
> another Sun OS machine that I still have access to. 
> Is there a way I can
> query the OS to find out what versions of oracle are
> installed?  The RPM
> command obviously doesn't work (since it is a Sun
> OS), and I don't have 
> root permissions of course.  
> If I can't query the Sun OS what versions of
> Oracle do you recommend.
> I tried browsing the oracle homepage and google
> searches but that just
> made me more confused from the vast number of
> choices.  Also do I need
> sqlplus or JDBC if I have j2sdk, tomcat, and MySQL?
> 
> 
> This is whats already installed:
> ---
> tomcat4-webapps-4.1.24-full.2jpp
> tomcat4-4.1.24-full.2jpp
> tomcat4-admin-webapps-4.1.24-full.2jpp
> j2re1.4.1_02
> j2sdkee1.4
> j2sdk1.4.1_02
> redhat 8
> standard MySQL that comes with Redhat 8 Linux
> 
> 
> 
> Sample Servlet code that works on another computer
> 
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.util.*;
> import java.sql.*;
> public class MultiServlet extends HttpServlet {
>   /**
>* Initialize global variables
>*/
>   public void init(ServletConfig config) throws
> ServletException {
> super.init(config);
>   }
>   /**
>* Process the HTTP Post request
>*/
>   public void doPost(HttpServletRequest request,
> HttpServletResponse
> response) 
> throws ServletException, IOException {
> 
> String category =
> request.getParameter("category");
> 
> response.setContentType("text/html");
> PrintWriter out = new PrintWriter
> (response.getOutputStream());
> out.println("");
> out.println("Advanced
> Search");
> out.println(" 5 cellspacing = 0>");
> 
> try
> {
> System.out.println ("\n before registering driver
> \n");
>   DriverManager.registerDriver(new
> oracle.jdbc.driver.OracleDriver());
> System.out.println (" before GET Connection  \n");
>   Connection conn = DriverManager.getConnection
>
("jdbc:oracle:thin:@dbserv.uits.indiana.edu:1521:OED1","s3jm013","s3jm013");
> System.out.println (" before STatement  \n");
>   Statement stmt = conn.createStatement();
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What does this crazy error message mean?

2003-06-09 Thread Marco Rojas
Euclides,

Eu não recebi o código...
Vc. poderia me enviar zipado?

Abs.
Marco


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 9 de junho de 2003 16:18
To: '[EMAIL PROTECTED]'
Subject: What does this crazy error message mean?


Hi everybody, i cant stand without solve this problem:
whenever Rodrigo2.jsp runs, I always get  the bellow message, but the bean Dica is 
there What should i do? The jsp complete code is attached. Regards, Euclides.

An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:54:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
  Dica dica = null;
  ^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:56:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica) pageContext.getAttribute("dica", PageContext.PAGE_SCOPE);
^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:59:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
^

 <> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: question on creating a file download servlet

2003-06-09 Thread Shapira, Yoav

Howdy,
Use the content-disposition header:
http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark W. Webb [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 3:34 PM
>To: [EMAIL PROTECTED]
>Subject: question on creating a file download servlet
>
>I need to write a servlet that handles file downloads, so that I can
audit
>who downloaded from where, when..etc.
>
>When I click on the link to download a file, the "Save As" window comes
up
>in my browser(Netscape), and as a default filename I get the servlet
name.
>Is there a way to list the actual filename in the "Save As" window ?
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What Oracle is best?

2003-06-09 Thread Jonathan Michael Nowacki
Just wondering what kind of oracle programs do I need to get Tomcat to
access an SQL database.  I have servlets already written that work on
another Sun OS machine that I still have access to.  Is there a way I can
query the OS to find out what versions of oracle are installed?  The RPM
command obviously doesn't work (since it is a Sun OS), and I don't have 
root permissions of course.  
If I can't query the Sun OS what versions of Oracle do you recommend.
I tried browsing the oracle homepage and google searches but that just
made me more confused from the vast number of choices.  Also do I need
sqlplus or JDBC if I have j2sdk, tomcat, and MySQL?


This is whats already installed:
---
tomcat4-webapps-4.1.24-full.2jpp
tomcat4-4.1.24-full.2jpp
tomcat4-admin-webapps-4.1.24-full.2jpp
j2re1.4.1_02
j2sdkee1.4
j2sdk1.4.1_02
redhat 8
standard MySQL that comes with Redhat 8 Linux



Sample Servlet code that works on another computer

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class MultiServlet extends HttpServlet {
  /**
   * Initialize global variables
   */
  public void init(ServletConfig config) throws ServletException {
super.init(config);
  }
  /**
   * Process the HTTP Post request
   */
  public void doPost(HttpServletRequest request, HttpServletResponse
response) 
throws ServletException, IOException {

String category = request.getParameter("category");

response.setContentType("text/html");
PrintWriter out = new PrintWriter (response.getOutputStream());
out.println("");
out.println("Advanced Search");
out.println("");

try
{
System.out.println ("\n before registering driver \n");
  DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
System.out.println (" before GET Connection  \n");
  Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@dbserv.uits.indiana.edu:1521:OED1","s3jm013","s3jm013");
System.out.println (" before STatement  \n");
  Statement stmt = conn.createStatement();



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



question on creating a file download servlet

2003-06-09 Thread Mark W. Webb
I need to write a servlet that handles file downloads, so that I can audit who downloaded from where, when..etc.  

When I click on the link to download a file, the "Save As" window comes up in my browser(Netscape), and as a default filename I get the servlet name.  Is there a way to list the actual filename in the "Save As" window ?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav

Howdy,
Perhaps you should place Dica in a package:
http://tomcatfaq.sourceforge.net/classnotfound.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 3:18 PM
>To: '[EMAIL PROTECTED]'
>Subject: What does this crazy error message mean?
>
>Hi everybody, i cant stand without solve this problem:
>whenever Rodrigo2.jsp runs, I always get  the bellow message, but the
bean
>Dica is there What should i do? The jsp complete code is attached.
>Regards, Euclides.
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>[javac] Compiling 1 source file
>
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
4:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>  Dica dica = null;
>  ^
>
>
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
6:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>dica = (Dica) pageContext.getAttribute("dica",
>PageContext.PAGE_SCOPE);
>^
>
>
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
9:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>dica = (Dica)
>java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
>^
>
> <>




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi everybody, i cant stand without solve this problem:
whenever Rodrigo2.jsp runs, I always get  the bellow message, but the bean
Dica is there What should i do? The jsp complete code is attached.
Regards, Euclides.

An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:54:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
  Dica dica = null;
  ^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:56:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica) pageContext.getAttribute("dica",
PageContext.PAGE_SCOPE);
^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:59:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
^

 <> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Is possible to run JAX-RPC under Tomcat?

2003-06-09 Thread Shapira, Yoav

Howdy,
Tomcat is a servlet container.  It doesn't support all the web services
APIs by itself.  You can download JAX-RPC and a JAX-RPC implementation
and use them in your tomcat-served webapp by putting the relevant jars
in the WEB-INF/lib directory of your webapp.

In the future, if JAX-RPC (the API at least) becomes part of the JDK,
tomcat may provide its own implementation or (more likely) come bundled
with a JAX-RPC implementation such as the one from Axis.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Vy Ho [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 1:51 PM
>To: Tomcat Users List
>Subject: Is possible to run JAX-RPC under Tomcat?
>
>
>
>Is JAX-RPC supported under Tomcat (out of the box)?  Do I have to
>download
>some module for it?  Or I have to run a separate server (such as Sun's
>J2EE or JBoss)?  Is there some documents that you can point me to?
Thank
>you very much in advanced.
>
>Vy Ho
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MBeanServer Fails - Admin Tool Won't Work

2003-06-09 Thread Michael Duffy
I've installed Tomcat 4.1.24 using the install .exe.
I'm running Tomcat as a service on Windows 2000 using
JDK 1.4.1. 

The install was smooth, and Tomcat itself runs just
fine. I can use the manager tool without problem, and
my Web apps are running nicely. 

But I get this exception in stdout.log when I start
the service: 

Bootstrap: Service started
javax.servlet.UnavailableException: MBeanServer is not
available

The admin tool does not work.  I can bring it up and
log in, but the UI doesn't show Tomcat Server.  If I
click on Resources->Data Sources, I get an HTTP 500 in
the right frame.  From that point on, everything in
the admin tool brings back an HTTP 500 response.

I think the MBeanServer and the admin tool failures
are related.  Does anyone have any advice for me on
how to get the admin tool up and running?



__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Justin Ruthenbeck
Without more information about the intended application, this discussion 
will continue to become more academic and less directly useful ... but, 
really, what's wrong with that?  ;)

If your app needs to serve images for non-authenticated users, but you want 
to approximate security (as if you're trying to avoid direct links to your 
images, as someone else had surmised), another option is to issue 
time-sensitive keys with your generated HTML such that your  tags look 
like:



Note that this is one step further than simply requiring the user to have a 
valid session before serving the image -- it simply makes it more difficult 
for people to get at your images, but certainly not impossible.

Anyways, some food for thought... perhaps your solution lies with a little 
of everything that people have suggested.

justin



At 10:29 AM 6/9/2003, Dean Fantham wrote:
There is no guaranteed way to stop someone directly access a gif image
via a browser url, because this is how an image is accessed by the
browser itself anyways.  The browser just makes a HTTP get request to
the web-server (in this case tomcat) requesting the URL of the image to
be included in the web page.
i.e. in a standard jsp/servlet response to a web request the image
request is embedded in a .  This is
going to cause a browser request directory to the directory containing
the image, which can also be duplicated in the browser.
The only potential method that can catch most (but not all) of these
would be to create a separate image handling jsp/servlet, say
imageHandler.  When imageHanlder servlet recieves an image request it
can check the http-referrer header and ensure that the referrer is the
url of the page to which the images are supposed to load, i.e. is the
page containing the images in /servlet/somepage then the http-referrer
that imageHandler see should be able to checked that it is
/servlet/somepage.  Someone can circumvent this control by the Internet,
but just manually setting this header themselves (via a program or the
like) and then having access directly to the images
You would then have to update all image referrences on the somepage
servelt/jsp however to something like .



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
   See http://www.nextengine.com/confidentiality.php

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Scott Ahten
There is a very cool JSP/Servlet Filter developed for the Open For  
Business project which allows you to control what pages can be directly  
accessed via the address bar or other links. In other words, If someone  
tries to directly access a non authorized URL, instead of being sent  
there by response.sendRedirect("restricted_url.html"), the browser is  
redirected to a default URL instead.

This is so users can't randomly access pages that need to be completed  
in sequence, load a bookmarked order checkout page that could be  
missing state information required to generate the page correctly, etc.  
A great solution to a common problem!

Since this is a stand-alone Filter, you might be able to extend it or  
use it as a starting point for a new filter that meets your  
requirements.

Here is the filter config as defined in web.xml.


ContextSecurityFilter
	ContextSecurityFilter
	org.ofbiz.core.control.ContextSecurityFilter
	
	  allowedPaths
	   
/control:/index.html:/index.jsp:/default.html:/ 
default.jsp:/images:/includes/maincss.css:/includes/datepicker.js
	
	errorCode403
	redirectPath/ 
control/main
  
  
ContextSecurityFilter
	/*
  

~Scott

On Monday, June 9, 2003, at 01:29  PM, Dean Fantham wrote:

There is no guaranteed way to stop someone directly access a gif image
via a browser url, because this is how an image is accessed by the
browser itself anyways.  The browser just makes a HTTP get request to
the web-server (in this case tomcat) requesting the URL of the image to
be included in the web page.
i.e. in a standard jsp/servlet response to a web request the image
request is embedded in a .  This is
going to cause a browser request directory to the directory containing
the image, which can also be duplicated in the browser.
The only potential method that can catch most (but not all) of these
would be to create a separate image handling jsp/servlet, say
imageHandler.  When imageHanlder servlet recieves an image request it
can check the http-referrer header and ensure that the referrer is the
url of the page to which the images are supposed to load, i.e. is the
page containing the images in /servlet/somepage then the http-referrer
that imageHandler see should be able to checked that it is
/servlet/somepage.  Someone can circumvent this control by the  
Internet,
but just manually setting this header themselves (via a program or the
like) and then having access directly to the images

You would then have to update all image referrences on the somepage
servelt/jsp however to something like .


On Mon, 2003-06-09 at 18:32, Syed Nayyer Kamran wrote:

hi there,

I want to restrict the user to access the images directly through the  
web. They should be able to access these images through web pages  
developed as jsp/servlet but should not be able to access these  
images displayed on page by copying the image url to the address bar.  
Is tomcat directly support this functionality. or any other solution.

Thanks in advance for any solution of the problem.

Nayyer Kamran



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Dominic Parry
Hi

Sure can, here is an examples of mine:

# Define the communication channel
[shm]
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file
size=1048576

[channel.socket:127.0.0.1:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

[uri:/admin/*]

[uri:/manager/*]

[uri:/DynaServlet/*]

[uri:/HamiltonBank/*]

hope this helps.

Dom
  - Original Message - 
  From: John Turner 
  To: Tomcat Users List 
  Sent: Monday, June 09, 2003 6:25 PM
  Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config



  I'm pretty sure Jeffrey did...at least as far as I can tell.  Do you have 
  some examples of the correct way?

  John

  On Mon, 9 Jun 2003 18:16:49 +0200, Dominic Parry <[EMAIL PROTECTED]> 
  wrote:

  > you need to specify your uri's in workers.properties
  > - Original Message - From: John Turner To: Tomcat Users List 
  > Sent: Monday, June 09, 2003 6:13 PM
  > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  >
  >
  >
  > Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help 
  > out with nitty gritty stuff.  Hopefully someone else has more insight.
  >
  > John
  >
  > On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> 
  > wrote:
  >
  > > Yes I did install the filter and it does have the green arrow.
  > > This as the log file, mod_jk_iis.log when I start IIS
  > > [jk_uri_worker_map.c (156)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_alloc
  > > [jk_uri_worker_map.c (196)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open
  > > [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, 
  > > rule
  > > map size is 5
  > > [jk_uri_worker_map.c (267)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /servlet/=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /examples/=ajp13 was added
  > > [jk_uri_worker_map.c (256)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > suffix rule /examples/.jsp=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /examples/servlet/=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /admin/=ajp13 was added
  > > [jk_uri_worker_map.c (296)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > there are 5 rules
  > > [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, 
  > > done
  > > [jk_worker.c (82)]: Into wc_open
  > > [jk_worker.c (207)]: Into build_worker_map, creating 1 workers
  > > [jk_worker.c (213)]: build_worker_map, creating worker ajp13
  > > [jk_worker.c (138)]: Into wc_create_worker
  > > [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 
  > of
  > > ajp13
  > > [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
  > > [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
  > > [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
  > > [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 > 
  > contact
  > > is localhost:8009
  > > [jk_ajp13_worker.c (425)]: Into jk_worker_t::init
  > > [jk_worker.c (177)]: wc_create_worker, done
  > > [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
  > > [jk_worker.c (235)]: build_worker_map, done
  > > [jk_worker.c (102)]: wc_open, done
  > >
  > >
  > > Jeff
  > >
  > >
  > > -Original Message-
  > > From: John Turner [mailto:[EMAIL PROTECTED]
  > > Sent: Monday, June 09, 2003 9:00 AM
  > > To: Tomcat Users List
  > > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  > >
  > >
  > > Thanks.  Did you install the filter?
  > >
  > > AFAIK, this is the best tutorial on Tomcat + IIS:
  > >
  > > http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html
  > >
  > > John
  > >
  > > On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> > 
  > wrote:
  > >
  > >> Thanks for the help. There is the information request
  > >>
  > >> My worker.propqerties file is: -
  > >>
  > >> worker.list=ajp13
  > >> worker.ajp13.port=8009
  > >> worker.ajp13.host=localhost
  > >> worker.ajp13.type=ajp13
  > >>
  > >> my uriworkermap.properties file is:-
  > >>
  > >> /servlet/*=ajp13
  > >> /examples/*=ajp13
  > >> /examples/*.jsp=ajp13
  > >> /examples/servlet/*=ajp13
  > >> /admin/*=ajp13
  > >>
  > >> Jeff
  > >>
  > >>
  > >>
  > >> -Original Message-
  > >> From: John Turner [mailto:[EMAIL PROTECTED]
  > >> Sent: Monday, June 09, 2003 8:25 AM
  > >> To: Tomcat Users List
  > >> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  > >>
  > >>
  > >> I don't use IIS, but:
  > >>
  > >> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to
  > >> map
  > >> URI '/localhost/tomcat/isapi_redirect.dll'
  

Is possible to run JAX-RPC under Tomcat?

2003-06-09 Thread Vy Ho


Is JAX-RPC supported under Tomcat (out of the box)?  Do I have to
download
some module for it?  Or I have to run a separate server (such as Sun's
J2EE or JBoss)?  Is there some documents that you can point me to?  Thank
you very much in advanced.

Vy Ho



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Dean Fantham
There is no guaranteed way to stop someone directly access a gif image
via a browser url, because this is how an image is accessed by the
browser itself anyways.  The browser just makes a HTTP get request to
the web-server (in this case tomcat) requesting the URL of the image to
be included in the web page.

i.e. in a standard jsp/servlet response to a web request the image
request is embedded in a .  This is
going to cause a browser request directory to the directory containing
the image, which can also be duplicated in the browser.

The only potential method that can catch most (but not all) of these
would be to create a separate image handling jsp/servlet, say
imageHandler.  When imageHanlder servlet recieves an image request it
can check the http-referrer header and ensure that the referrer is the
url of the page to which the images are supposed to load, i.e. is the
page containing the images in /servlet/somepage then the http-referrer 
that imageHandler see should be able to checked that it is
/servlet/somepage.  Someone can circumvent this control by the Internet,
but just manually setting this header themselves (via a program or the
like) and then having access directly to the images

You would then have to update all image referrences on the somepage
servelt/jsp however to something like .



On Mon, 2003-06-09 at 18:32, Syed Nayyer Kamran wrote:

> hi there,
> 
> I want to restrict the user to access the images directly through the web. They 
> should be able to access these images through web pages developed as jsp/servlet but 
> should not be able to access these images displayed on page by copying the image url 
> to the address bar. Is tomcat directly support this functionality. or any other 
> solution.
> 
> Thanks in advance for any solution of the problem.
> 
> 
> Nayyer Kamran
> 


RE: how to unsubscribe - tried twice!

2003-06-09 Thread Keith Adams
David
 
[EMAIL PROTECTED]
org isn't a valid email address. I sent the email to [EMAIL PROTECTED] on Friday. And 
sent it from the address I used to subscribe.
 
Thanks, Keith
 

-Original Message- 
From: David Legg [mailto:[EMAIL PROTECTED] 
Sent: Mon 6/9/2003 9:49 AM 
To: 'Tomcat Users List' 
Cc: 
Subject: RE: how to unsubscribe - tried twice!



Have you tried sending an email to the following address...

[EMAIL PROTECTED]
org

Maybe the address you are sending from is not the one you subscribed with?

It may take a few hours to have any effect.

David Legg


-Original Message-
From: Tomcat User [mailto:[EMAIL PROTECTED]
Sent: 09 June 2003 17:37
To: 'Tomcat Users List'
Subject: RE: how to unsubscribe - tried twice!


I have as well...anyone have any ideas??

Dan LeBaron, CSSA
Ingenuit Technologies, Inc
Complete Business Technology Solutions

P 503.267.4089
F 888.861.9051
www.ingenuittechnologies.com
[EMAIL PROTECTED]

-Original Message-
From: Keith Adams [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 8:25 AM
To: Tomcat Users List
Subject: how to unsubscribe - tried twice!

I tried twice, with the subject line:
[EMAIL PROTECTED], on Friday, and I'm still
receiving the emails. I even received a confirmation that I'd been
unsubscribed.  Has anybody else experienced this?

Keith






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Servlet thread safety

2003-06-09 Thread G. Wade Johnson
That's what I figured.

Oh well, time for a little minor reorganization of code.

G. Wade

John Corrigan wrote:
> 
> No.
> 
> Concurrent requests will most likely be be processed by the same instance of
> your Servlet class, however it is not guarantted.
> 
> -Original Message-
> From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2003 9:43 AM
> To: Tomcat Users List
> Subject: Re: Servlet thread safety
> 
> How about the flip side? Is instance data guaranteed separate for each
> request?
> 
> I Have some code that relies on instance data and I just had the
> horrible realization that I have assumed that no two concurrent
> requests will be talking to the same object.
> 
> Thanks again,
> G. Wade
> 
> "Shapira, Yoav" wrote:
> >
> > Howdy,
> > You didn't miss it.  No such guarantee exists for normal servlets.  See
> > the javax.servlet.SingleThreadModel interface for one approach to this
> > issue.
> >
> > However, many people will tell you to avoid SingleThreadModel for
> > various reasons.  I tend to agree.  The design and implementation of
> > your servlets should not depend on the synchronization of their service
> > methods by the container.  If you have shared resources put them in
> > objects (often singletons) outside the servlets.
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> > >-Original Message-
> > >From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, June 09, 2003 12:08 PM
> > >To: Tomcat Users List
> > >Subject: Servlet thread safety
> > >
> > >This may be an obvious question, but is there any guarantee one way or
> > >the other about whether there is a separate servlet object for each
> > >concurrent request.
> > >
> > >In other words, is there any chance that instance data would be shared
> > >between two requests? If so, are we guaranteed if the instance data
> > will
> > >always be shared between two requests.
> > >
> > >I didn't see any, but I may just have missed it.
> > >
> > >G. Wade
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential, proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



basic authentication error page

2003-06-09 Thread Vladimer Shioshvili
Can i define the error page for the basic authentication? amd if yes, 
where? i have tried to define error-page for code 401, but realized that i 
am using constraint on everything , thus i am guessing that error page may 
be falling under the constraint as well. (not sure about that though..)

Thus, how can i  modify HTTP Status 401 - Unauthorized to be what i want it 
to be?

PS. i am trying to define security constraint in conf/web.xml for every context

I've tried to look for the solution on the web, but didn't have any luck. 
Any help is greatly appreciated.




Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Servlet thread safety

2003-06-09 Thread John Corrigan
No.

Concurrent requests will most likely be be processed by the same instance of
your Servlet class, however it is not guarantted.

-Original Message-
From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:43 AM
To: Tomcat Users List
Subject: Re: Servlet thread safety


How about the flip side? Is instance data guaranteed separate for each
request?

I Have some code that relies on instance data and I just had the
horrible realization that I have assumed that no two concurrent
requests will be talking to the same object.

Thanks again,
G. Wade

"Shapira, Yoav" wrote:
>
> Howdy,
> You didn't miss it.  No such guarantee exists for normal servlets.  See
> the javax.servlet.SingleThreadModel interface for one approach to this
> issue.
>
> However, many people will tell you to avoid SingleThreadModel for
> various reasons.  I tend to agree.  The design and implementation of
> your servlets should not depend on the synchronization of their service
> methods by the container.  If you have shared resources put them in
> objects (often singletons) outside the servlets.
>
> Yoav Shapira
> Millennium ChemInformatics
>
> >-Original Message-
> >From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
> >Sent: Monday, June 09, 2003 12:08 PM
> >To: Tomcat Users List
> >Subject: Servlet thread safety
> >
> >This may be an obvious question, but is there any guarantee one way or
> >the other about whether there is a separate servlet object for each
> >concurrent request.
> >
> >In other words, is there any chance that instance data would be shared
> >between two requests? If so, are we guaranteed if the instance data
> will
> >always be shared between two requests.
> >
> >I didn't see any, but I may just have missed it.
> >
> >G. Wade
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to unsubscribe - tried twice!

2003-06-09 Thread David Legg
Have you tried sending an email to the following address...

[EMAIL PROTECTED]
org

Maybe the address you are sending from is not the one you subscribed with?

It may take a few hours to have any effect.

David Legg


-Original Message-
From: Tomcat User [mailto:[EMAIL PROTECTED]
Sent: 09 June 2003 17:37
To: 'Tomcat Users List'
Subject: RE: how to unsubscribe - tried twice!


I have as well...anyone have any ideas??

Dan LeBaron, CSSA
Ingenuit Technologies, Inc
Complete Business Technology Solutions

P 503.267.4089
F 888.861.9051
www.ingenuittechnologies.com
[EMAIL PROTECTED]

-Original Message-
From: Keith Adams [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 09, 2003 8:25 AM
To: Tomcat Users List
Subject: how to unsubscribe - tried twice!

I tried twice, with the subject line:
[EMAIL PROTECTED], on Friday, and I'm still
receiving the emails. I even received a confirmation that I'd been
unsubscribed.  Has anybody else experienced this?
 
Keith

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Servlet thread safety

2003-06-09 Thread G. Wade Johnson
How about the flip side? Is instance data guaranteed separate for each
request?

I Have some code that relies on instance data and I just had the
horrible realization that I have assumed that no two concurrent
requests will be talking to the same object.

Thanks again,
G. Wade

"Shapira, Yoav" wrote:
> 
> Howdy,
> You didn't miss it.  No such guarantee exists for normal servlets.  See
> the javax.servlet.SingleThreadModel interface for one approach to this
> issue.
> 
> However, many people will tell you to avoid SingleThreadModel for
> various reasons.  I tend to agree.  The design and implementation of
> your servlets should not depend on the synchronization of their service
> methods by the container.  If you have shared resources put them in
> objects (often singletons) outside the servlets.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> >-Original Message-
> >From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
> >Sent: Monday, June 09, 2003 12:08 PM
> >To: Tomcat Users List
> >Subject: Servlet thread safety
> >
> >This may be an obvious question, but is there any guarantee one way or
> >the other about whether there is a separate servlet object for each
> >concurrent request.
> >
> >In other words, is there any chance that instance data would be shared
> >between two requests? If so, are we guaranteed if the instance data
> will
> >always be shared between two requests.
> >
> >I didn't see any, but I may just have missed it.
> >
> >G. Wade
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to unsubscribe - tried twice!

2003-06-09 Thread Tomcat User
I have as well...anyone have any ideas??

Dan LeBaron, CSSA
Ingenuit Technologies, Inc
Complete Business Technology Solutions

P 503.267.4089
F 888.861.9051
www.ingenuittechnologies.com
[EMAIL PROTECTED]

-Original Message-
From: Keith Adams [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 09, 2003 8:25 AM
To: Tomcat Users List
Subject: how to unsubscribe - tried twice!

I tried twice, with the subject line:
[EMAIL PROTECTED], on Friday, and I'm still
receiving the emails. I even received a confirmation that I'd been
unsubscribed.  Has anybody else experienced this?
 
Keith

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread Shapira, Yoav

Howdy,
FYI, I do the same thing: JNDI calls from a ServletContextListener's
contextInitialized() event -- no problems.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: James Lewis [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 11:43 AM
>To: Tomcat Users List
>Subject: RE: [tomcat] RE: JNDI datasource non available in
>ServletContextListener.contextInitialized
>
>> always perform such a lookup successfully, but when I try from a
>> ContextListener contextInitialized method it fails: the same code
WILL
>> NOT FAIL contextDestroyed !!!
>
>Hmmm, odd. This is *exactly* what I do pretty much. I have a
>LifeCycleListener specified in the webapps//WEB-INF/web.xml like
this:
>
>  
>
.LifeCycleListenerclass>
>  
>
>and then in the contextInitialized method of the LifeCycleListener I do
a
>bunch of calls to jndiContext.lookup().
>
>Hmm, hmmm, hmmm. You are correctly specifying the listener in web.xml?
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Servlet thread safety

2003-06-09 Thread Shapira, Yoav

Howdy,
You didn't miss it.  No such guarantee exists for normal servlets.  See
the javax.servlet.SingleThreadModel interface for one approach to this
issue.

However, many people will tell you to avoid SingleThreadModel for
various reasons.  I tend to agree.  The design and implementation of
your servlets should not depend on the synchronization of their service
methods by the container.  If you have shared resources put them in
objects (often singletons) outside the servlets.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 12:08 PM
>To: Tomcat Users List
>Subject: Servlet thread safety
>
>This may be an obvious question, but is there any guarantee one way or
>the other about whether there is a separate servlet object for each
>concurrent request.
>
>In other words, is there any chance that instance data would be shared
>between two requests? If so, are we guaranteed if the instance data
will
>always be shared between two requests.
>
>I didn't see any, but I may just have missed it.
>
>G. Wade
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread John Turner
I'm pretty sure Jeffrey did...at least as far as I can tell.  Do you have 
some examples of the correct way?

John

On Mon, 9 Jun 2003 18:16:49 +0200, Dominic Parry <[EMAIL PROTECTED]> 
wrote:

you need to specify your uri's in workers.properties
- Original Message - From: John Turner To: Tomcat Users List 
Sent: Monday, June 09, 2003 6:13 PM
Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config



Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help 
out with nitty gritty stuff.  Hopefully someone else has more insight.

John

On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> 
wrote:

> Yes I did install the filter and it does have the green arrow.
> This as the log file, mod_jk_iis.log when I start IIS
> [jk_uri_worker_map.c (156)]: Into > 
jk_uri_worker_map_t::uri_worker_map_alloc
> [jk_uri_worker_map.c (196)]: Into > 
jk_uri_worker_map_t::uri_worker_map_open
> [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, 
> rule
> map size is 5
> [jk_uri_worker_map.c (267)]: Into > 
jk_uri_worker_map_t::uri_worker_map_open,
> match rule /servlet/=ajp13 was added
> [jk_uri_worker_map.c (267)]: Into > 
jk_uri_worker_map_t::uri_worker_map_open,
> match rule /examples/=ajp13 was added
> [jk_uri_worker_map.c (256)]: Into > 
jk_uri_worker_map_t::uri_worker_map_open,
> suffix rule /examples/.jsp=ajp13 was added
> [jk_uri_worker_map.c (267)]: Into > 
jk_uri_worker_map_t::uri_worker_map_open,
> match rule /examples/servlet/=ajp13 was added
> [jk_uri_worker_map.c (267)]: Into > 
jk_uri_worker_map_t::uri_worker_map_open,
> match rule /admin/=ajp13 was added
> [jk_uri_worker_map.c (296)]: Into > 
jk_uri_worker_map_t::uri_worker_map_open,
> there are 5 rules
> [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, 
> done
> [jk_worker.c (82)]: Into wc_open
> [jk_worker.c (207)]: Into build_worker_map, creating 1 workers
> [jk_worker.c (213)]: build_worker_map, creating worker ajp13
> [jk_worker.c (138)]: Into wc_create_worker
> [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 
of
> ajp13
> [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
> [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
> [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
> [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 > 
contact
> is localhost:8009
> [jk_ajp13_worker.c (425)]: Into jk_worker_t::init
> [jk_worker.c (177)]: wc_create_worker, done
> [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
> [jk_worker.c (235)]: build_worker_map, done
> [jk_worker.c (102)]: wc_open, done
>
>
> Jeff
>
>
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2003 9:00 AM
> To: Tomcat Users List
> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
>
>
> Thanks.  Did you install the filter?
>
> AFAIK, this is the best tutorial on Tomcat + IIS:
>
> http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html
>
> John
>
> On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> > 
wrote:
>
>> Thanks for the help. There is the information request
>>
>> My worker.propqerties file is: -
>>
>> worker.list=ajp13
>> worker.ajp13.port=8009
>> worker.ajp13.host=localhost
>> worker.ajp13.type=ajp13
>>
>> my uriworkermap.properties file is:-
>>
>> /servlet/*=ajp13
>> /examples/*=ajp13
>> /examples/*.jsp=ajp13
>> /examples/servlet/*=ajp13
>> /admin/*=ajp13
>>
>> Jeff
>>
>>
>>
>> -Original Message-
>> From: John Turner [mailto:[EMAIL PROTECTED]
>> Sent: Monday, June 09, 2003 8:25 AM
>> To: Tomcat Users List
>> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
>>
>>
>> I don't use IIS, but:
>>
>> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to
>> map
>> URI '/localhost/tomcat/isapi_redirect.dll'
>> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
>> jk_uri_worker_map_t::map_uri_to_worker, done without a match
>>
>> Looks to me like one of your properties files has a munged up URL 
path.
>> You'll have to post them for us to know more.
>>
>> John
>>
>> On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings <[EMAIL PROTECTED]>
>> wrote:
>>
>>> I am trying to setup tomcat 4.1.24 with IIS. I get the following >>> 
message
>>>
>>>
>>> HTTP Status 404 - /tomcat/isapi_redirect.dll
>>>
>>> _
>>>
>>> type Status report
>>> message /tomcat/isapi_redirect.dll
>>> description The requested resource (/tomcat/isapi_redirect.dll) is 
not
>>> available.
>>> _
>>>
>>>
>>> Apache Tomcat/4.1.24
>>>
>>> My registry settings
>>> Name
>>> Data
>>> extension_uri
>>> /tomcat/isapi_redirector.dll
>>> worker_file
>>> C:\Jakarta-4.1.24\conf\workers.properties
>>> worker_mount_file
>>> C:\Jakarta-4.1.24\conf\uriworkermap.properties
>>> log_file
>>> C:\Jakarta-4.1.24\logs\mod_jk_iis.log
>>> log_level
>>> debug
>>>
>>> I have a virtual directory tomcat -> C:\Jakarta-4.1.24\conf
>>> (isapi_redirector.dll is in t

how to unsubscribe - tried twice!

2003-06-09 Thread Keith Adams
I tried twice, with the subject line: [EMAIL PROTECTED], on Friday, and I'm still 
receiving the emails. I even received a confirmation that I'd been unsubscribed.  Has 
anybody else experienced this?
 
Keith

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Dominic Parry
you need to specify your uri's in workers.properties
  - Original Message - 
  From: John Turner 
  To: Tomcat Users List 
  Sent: Monday, June 09, 2003 6:13 PM
  Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config



  Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help out 
  with nitty gritty stuff.  Hopefully someone else has more insight.

  John

  On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> wrote:

  > Yes I did install the filter and it does have the green arrow.
  > This as the log file, mod_jk_iis.log when I start IIS
  > [jk_uri_worker_map.c (156)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_alloc
  > [jk_uri_worker_map.c (196)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open
  > [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, 
  > rule
  > map size is 5
  > [jk_uri_worker_map.c (267)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > match rule /servlet/=ajp13 was added
  > [jk_uri_worker_map.c (267)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > match rule /examples/=ajp13 was added
  > [jk_uri_worker_map.c (256)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > suffix rule /examples/.jsp=ajp13 was added
  > [jk_uri_worker_map.c (267)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > match rule /examples/servlet/=ajp13 was added
  > [jk_uri_worker_map.c (267)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > match rule /admin/=ajp13 was added
  > [jk_uri_worker_map.c (296)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > there are 5 rules
  > [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, 
  > done
  > [jk_worker.c (82)]: Into wc_open
  > [jk_worker.c (207)]: Into build_worker_map, creating 1 workers
  > [jk_worker.c (213)]: build_worker_map, creating worker ajp13
  > [jk_worker.c (138)]: Into wc_create_worker
  > [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
  > ajp13
  > [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
  > [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
  > [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
  > [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 
  > contact
  > is localhost:8009
  > [jk_ajp13_worker.c (425)]: Into jk_worker_t::init
  > [jk_worker.c (177)]: wc_create_worker, done
  > [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
  > [jk_worker.c (235)]: build_worker_map, done
  > [jk_worker.c (102)]: wc_open, done
  >
  >
  > Jeff
  >
  >
  > -Original Message-
  > From: John Turner [mailto:[EMAIL PROTECTED]
  > Sent: Monday, June 09, 2003 9:00 AM
  > To: Tomcat Users List
  > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  >
  >
  > Thanks.  Did you install the filter?
  >
  > AFAIK, this is the best tutorial on Tomcat + IIS:
  >
  > http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html
  >
  > John
  >
  > On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> 
  > wrote:
  >
  >> Thanks for the help. There is the information request
  >>
  >> My worker.propqerties file is: -
  >>
  >> worker.list=ajp13
  >> worker.ajp13.port=8009
  >> worker.ajp13.host=localhost
  >> worker.ajp13.type=ajp13
  >>
  >> my uriworkermap.properties file is:-
  >>
  >> /servlet/*=ajp13
  >> /examples/*=ajp13
  >> /examples/*.jsp=ajp13
  >> /examples/servlet/*=ajp13
  >> /admin/*=ajp13
  >>
  >> Jeff
  >>
  >>
  >>
  >> -Original Message-
  >> From: John Turner [mailto:[EMAIL PROTECTED]
  >> Sent: Monday, June 09, 2003 8:25 AM
  >> To: Tomcat Users List
  >> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  >>
  >>
  >> I don't use IIS, but:
  >>
  >> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to
  >> map
  >> URI '/localhost/tomcat/isapi_redirect.dll'
  >> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
  >> jk_uri_worker_map_t::map_uri_to_worker, done without a match
  >>
  >> Looks to me like one of your properties files has a munged up URL path.
  >> You'll have to post them for us to know more.
  >>
  >> John
  >>
  >> On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings <[EMAIL PROTECTED]>
  >> wrote:
  >>
  >>> I am trying to setup tomcat 4.1.24 with IIS. I get the following 
  >>> message
  >>>
  >>>
  >>> HTTP Status 404 - /tomcat/isapi_redirect.dll
  >>>
  >>> _
  >>>
  >>> type Status report
  >>> message /tomcat/isapi_redirect.dll
  >>> description The requested resource (/tomcat/isapi_redirect.dll) is not
  >>> available.
  >>> _
  >>>
  >>>
  >>> Apache Tomcat/4.1.24
  >>>
  >>> My registry settings
  >>> Name
  >>> Data
  >>> extension_uri
  >>> /tomcat/isapi_redirector.dll
  >>> worker_file
  >>> C:\Jakarta-4.1.24\conf\workers.properties
  >>> worker_mount_file
  >>> C:\Jakarta-4.1.24\conf\uriworkermap.properties
  >>> log_file
  >>> C:\Jakarta-4.1.24\logs\mod_jk_iis.log
  >>> log_level
  >>>

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread John Turner
Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help out 
with nitty gritty stuff.  Hopefully someone else has more insight.

John

On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> wrote:

Yes I did install the filter and it does have the green arrow.
This as the log file, mod_jk_iis.log when I start IIS
[jk_uri_worker_map.c (156)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (196)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, 
rule
map size is 5
[jk_uri_worker_map.c (267)]: Into 
jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp13 was added
[jk_uri_worker_map.c (267)]: Into 
jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/=ajp13 was added
[jk_uri_worker_map.c (256)]: Into 
jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /examples/.jsp=ajp13 was added
[jk_uri_worker_map.c (267)]: Into 
jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/servlet/=ajp13 was added
[jk_uri_worker_map.c (267)]: Into 
jk_uri_worker_map_t::uri_worker_map_open,
match rule /admin/=ajp13 was added
[jk_uri_worker_map.c (296)]: Into 
jk_uri_worker_map_t::uri_worker_map_open,
there are 5 rules
[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, 
done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp13
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
ajp13
[jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
[jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
[jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 
contact
is localhost:8009
[jk_ajp13_worker.c (425)]: Into jk_worker_t::init
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done

Jeff

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:00 AM
To: Tomcat Users List
Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
Thanks.  Did you install the filter?

AFAIK, this is the best tutorial on Tomcat + IIS:

http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

John

On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> 
wrote:

Thanks for the help. There is the information request

My worker.propqerties file is: -

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
my uriworkermap.properties file is:-

/servlet/*=ajp13
/examples/*=ajp13
/examples/*.jsp=ajp13
/examples/servlet/*=ajp13
/admin/*=ajp13
Jeff



-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 8:25 AM
To: Tomcat Users List
Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
I don't use IIS, but:

[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to
map
URI '/localhost/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
Looks to me like one of your properties files has a munged up URL path.
You'll have to post them for us to know more.
John

On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings <[EMAIL PROTECTED]>
wrote:
I am trying to setup tomcat 4.1.24 with IIS. I get the following 
message

HTTP Status 404 - /tomcat/isapi_redirect.dll

_

type Status report
message /tomcat/isapi_redirect.dll
description The requested resource (/tomcat/isapi_redirect.dll) is not
available.
_
Apache Tomcat/4.1.24

My registry settings
Name
Data
extension_uri
/tomcat/isapi_redirector.dll
worker_file
C:\Jakarta-4.1.24\conf\workers.properties
worker_mount_file
C:\Jakarta-4.1.24\conf\uriworkermap.properties
log_file
C:\Jakarta-4.1.24\logs\mod_jk_iis.log
log_level
debug
I have a virtual directory tomcat -> C:\Jakarta-4.1.24\conf
(isapi_redirector.dll is in the conf directory)
I've set up the filter in the default web site for tomcat ( it has a
green
arrow)
I'm running XP (this is where I test then move to Win2K)
By the way, http://localhost:8080/examples/jsp/index.html works fine
Here is the isapi log when I make the request for
http://localhost/examples/jsp/index.html
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a
match ajp13
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is
a
servlet url - should redirect to ajp13
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.h

Servlet thread safety

2003-06-09 Thread G. Wade Johnson
This may be an obvious question, but is there any guarantee one way or
the other about whether there is a separate servlet object for each
concurrent request.

In other words, is there any chance that instance data would be shared
between two requests? If so, are we guaranteed if the instance data will
always be shared between two requests.

I didn't see any, but I may just have missed it.

G. Wade

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSTL and EL question - SOLVED

2003-06-09 Thread Schwartz, David (CHR)
Hi David.
This method works great. Thanks
Is there any downside to using it? Is it still considered "standard"?

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 11:21 AM
To: Tomcat Users List
Subject: RE: JSTL and EL question - SOLVED


The setup can be a little simpler than this.  The taglib jar can contain
the TLD for the taglib in the "META-INF" directory of the jar.  If it is
present there, you do not have to deploy the TLD separately.  In
addition, if the TLD is present there, you do not have to have the
explicit taglib map in your "web.xml" file.  In this case, your "taglib"
directive in the JSP page needs to specify the URI that is specified in
the TLD in  the taglib jar file, which is hopefully documented in the
taglib documentation (so you don't have to open the file in the jar
file).

If this is done correctly, you can skip steps 2 and 3 of this process.

> -Original Message-
> From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 10:21 PM
> To: Tomcat Users List
> Subject: Re: JSTL and EL question - SOLVED
> 
> > I thought I liked the idea of having the taglib in the web.xml file.
> > When I try it I'm getting "This absolute uri
> > (http://java.sun.com/jstl/core) cannot be resolved in either web.xml
or
> > the jar files deployed with this application". Do I have to download
it
> > somewhere in order to use it in the web.xml file? Any ideas?
> 
> :-)
> 
> OK, four things when dealing with ANY tag library:
> 
> 1. PLACE JAR FILES
> 
> Place JAR files that hold implementation of the tag library in a
directory
> where Tomcat will pick it up. Either make it "WEB-INF/lib/" (private)
or
> "${CATALINA_HOME}/shared/lib" (all web-apps will have access to it).
You
> could place it in "${CATALINA_HOME}/common/lib", but I don't see the
point
> in Tomcat having access to those JARs. There was a discussion recently
> naming pros/cons of each choice (Craig), so look up the archives.
> 
> 2. PLACE TLD
> 
> Place TLD files (Tag Library Descriptor) in either "WEB-INF/" or (if I
> recall correctly) "WEB-INF/taglibs/". The first placement will require
for
> "location" in "web.xml" file to be absolute: "/WEB-INF/.tld",
while
> the second will allow for relative links: ".tld"
> 
> 3. DECLARE TLD IN WEB.XML
> 
> This part you've already seen.
> 
> 
>http://java.sun.com/jstl/core
>/WEB-INF/c.tld
> 
> 
> 4. DECLARE TLD USAGE IN JSP
> 
> This you've seen
> 
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> 
> The prefix is up to you.
> 
> Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Lawrence, Gabriel
There was a config option to stop this and make oracle just use 1521
that I used a couple years back for this very purpose...

Here's a discussion about how the problem and how to get oracle to just
use a single port:

http://www.stunnel.org/examples/oracle.html

-gabe

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 09, 2003 8:01 AM
To: Tomcat Users List
Subject: Re: Why does Oracle in JSP uses multiple ports.

I have just learned that the thin driver uses 1521 to begin the
conversation. 
But that is just a handshake. The handshake then says - "Let's finish
the 
rest of our work on another higher port" where the higher port is a
range of 
ports.

So you need a whole range of ports open. :(

-Tim

Brad Rhoads wrote:
> My client had to open port 1521 between the webserver and Oracle DB
server.
> This makes sense. But he also had to open port 33047 for our
application
> pointing to the test SID and 40147 for the copy of the app pointing to
the
> prod SID. Both ProdApp and TestApp are exactly the same except for the
> Oracle SID.
> 
> Here's part of the log from their Check Point firewall (before they
opened
> up these other ports):
> 
> service sqlnet2-1521 is port 1521
> service WebServer is port 40147
> 
> 
> NumberDateTimeAction  Service Source
Destination Protocol
> 45488  5Jun2003   8:30:17 Accept  sqlnet2-1521WebServer
synapse.berlinind   tcp
> 45489  5Jun2003   8:30:17 DropSynapseWeb
WebServer   synapse.berlinind   tcp
> 45708  5Jun2003   8:31:50 DropSynapseWeb
WebServer   synapse.berlinind   tcp
> 
> 
> Every SQL request sent through one 1521 which was accepted, and 2
40147s
> which were dropped.
> 
> Can anyone explain this?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread James Lewis
> always perform such a lookup successfully, but when I try from a
> ContextListener contextInitialized method it fails: the same code WILL
> NOT FAIL contextDestroyed !!!

Hmmm, odd. This is *exactly* what I do pretty much. I have a
LifeCycleListener specified in the webapps//WEB-INF/web.xml like this:

  
.LifeCycleListener
  

and then in the contextInitialized method of the LifeCycleListener I do a
bunch of calls to jndiContext.lookup().

Hmm, hmmm, hmmm. You are correctly specifying the listener in web.xml?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Jason Bainbridge
Check out this newsgroup post, seems to explain it pretty well:

http://tinyurl.com/dujx

Regards,
-- 
Jason Bainbridge
http://jblinux.org

On Mon, 9 Jun 2003 23:17, Brad Rhoads wrote:
> I originally thought that was the exact issue. If you look at the
> listener.log, the "new" port# is random. In fact even the rang of numbers
> appears to be different on our different servers.
>
> In spite of this, we're getting ports 33047 & 40147 consistantly; it
> appears to be somehow be a function of the sid. We have restarted Tomcat
> many times now and everything is working OK. I guess we should restart the
> box and see if it still works.
>
> Any other ideas or explanations?
>
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2003 10:01 AM
> To: Tomcat Users List
> Subject: Re: Why does Oracle in JSP uses multiple ports.
>-- 
Jason Bainbridge
http://jblinux.org
>
> I have just learned that the thin driver uses 1521 to begin the
> conversation.
> But that is just a handshake. The handshake then says - "Let's finish the
> rest of our work on another higher port" where the higher port is a range
> of ports.
>
> So you need a whole range of ports open. :(
>
> -Tim
>
> Brad Rhoads wrote:
> > My client had to open port 1521 between the webserver and Oracle DB
>
> server.
>
> > This makes sense. But he also had to open port 33047 for our application
> > pointing to the test SID and 40147 for the copy of the app pointing to
> > the prod SID. Both ProdApp and TestApp are exactly the same except for
> > the Oracle SID.
> >
> > Here's part of the log from their Check Point firewall (before they
> > opened up these other ports):
> >
> > service sqlnet2-1521 is port 1521
> > service WebServer is port 40147
> >
> >
> > Number  DateTimeAction  Service Source  Destination
> >  Protocol
> > 454885Jun2003   8:30:17 Accept  sqlnet2-1521WebServer   
> > synapse.berlinind
>
> tcp
>
> > 454895Jun2003   8:30:17 DropSynapseWeb  
> > WebServer   synapse.berlinind   tcp
> > 457085Jun2003   8:31:50 DropSynapseWeb  
> > WebServer   synapse.berlinind   tcp
> >
> >
> > Every SQL request sent through one 1521 which was accepted, and 2 40147s
> > which were dropped.
> >
> > Can anyone explain this?
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread Federico Spinazzi
James Lewis wrote:

- define the resource in server.xml (this is a little 'limitating' for me)
 

- deploy the applications in unpacked format (i.e. not from a war file:
this is quite limiting, however)
   

Yep, not good to stick them in server.xml.

Your .xml file containing your resources should be in the
webapps/ directory along with your packed or unpacked application
You can then access your resources using:
 jndiContext.lookup("java:comp/env/");
Is this what you are doing? Are you using the correct Context
(java:comp/env)?
Yes, and this is my trouble: when the application is running I can 
always perform such a lookup successfully, but when I try from a 
ContextListener contextInitialized method it fails: the same code WILL 
NOT FAIL contextDestroyed !!!
I experience the same failure from the init method of a servlet
Thanks.
Federico

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Assessing Tomcat's State

2003-06-09 Thread Francisco J. Bido
Thanks for the link.   I didn't know about Nagios; it seems like a 
pretty useful tool.  I'll have to take for a spin.

About the Tomcat state issue, I actually got them resolved.  I 
basically followed Tim Funk's tips (see prior posts).
I modified some C code to get the UNIX PIDs straight from the kernel 
and handle the polling for the "shutting down" state, and
also  found some nice URL classes within the Cocoa frameworks 
(Objective-C on Mac OS X) to handle the polling
for the "starting up" state.   I'm a happy camper.

-FB





On Sunday, June 8, 2003, at 07:10  PM, Yoav Shapira wrote:

Howdy,
I use nagios for this: www.nagios.org.
Yoav Shapira

=
Yoav Shapira
[EMAIL PROTECTED]
__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread James Lewis
- define the resource in server.xml (this is a little 'limitating' for me)
> - deploy the applications in unpacked format (i.e. not from a war file:
> this is quite limiting, however)

Yep, not good to stick them in server.xml.

Your .xml file containing your resources should be in the
webapps/ directory along with your packed or unpacked application

You can then access your resources using:
 jndiContext.lookup("java:comp/env/");

Is this what you are doing? Are you using the correct Context
(java:comp/env)?

Cheers,

james


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Brad Rhoads
I originally thought that was the exact issue. If you look at the
listener.log, the "new" port# is random. In fact even the rang of numbers
appears to be different on our different servers.

In spite of this, we're getting ports 33047 & 40147 consistantly; it appears
to be somehow be a function of the sid. We have restarted Tomcat many times
now and everything is working OK. I guess we should restart the box and see
if it still works.

Any other ideas or explanations?

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 10:01 AM
To: Tomcat Users List
Subject: Re: Why does Oracle in JSP uses multiple ports.


I have just learned that the thin driver uses 1521 to begin the
conversation.
But that is just a handshake. The handshake then says - "Let's finish the
rest of our work on another higher port" where the higher port is a range of
ports.

So you need a whole range of ports open. :(

-Tim

Brad Rhoads wrote:
> My client had to open port 1521 between the webserver and Oracle DB
server.
> This makes sense. But he also had to open port 33047 for our application
> pointing to the test SID and 40147 for the copy of the app pointing to the
> prod SID. Both ProdApp and TestApp are exactly the same except for the
> Oracle SID.
>
> Here's part of the log from their Check Point firewall (before they opened
> up these other ports):
>
> service sqlnet2-1521 is port 1521
> service WebServer is port 40147
>
>
> NumberDateTimeAction  Service Source  Destination
>  Protocol
> 45488  5Jun2003   8:30:17 Accept  sqlnet2-1521WebServer   
> synapse.berlinind
tcp
> 45489  5Jun2003   8:30:17 DropSynapseWeb  WebServer  
>  synapse.berlinind   tcp
> 45708  5Jun2003   8:31:50 DropSynapseWeb  WebServer  
>  synapse.berlinind   tcp
>
>
> Every SQL request sent through one 1521 which was accepted, and 2 40147s
> which were dropped.
>
> Can anyone explain this?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT]Changing Oracle ports (was: Re: Servlets not working in my context: SOLVED)

2003-06-09 Thread Jason Bainbridge
On Mon, 9 Jun 2003 23:05, Schwartz, David (CHR) wrote:
> Oracle 9i installs a service on Port 8080. This causes the logon  popup.
> You either have to change tomcats port or disable the oracle feature.
> I changed Tomcat port to 80.
>
> Does anyone know how to disable or change oracle from port 8080?

From memory Oracle uses JServ for something or other not sure what exactly but 
have a look in something like ORA_HOME/Apache/Jserv or just poke around your 
ORA_HOME a bit for the right configuration file, maybe just do a search for 
8080.

Regards,
-- 
Jason Bainbridge
http://jblinux.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread Federico Spinazzi
Hi you all,

I'm trying to build application wide variable from a 
ServletContextListener under Tomcat 4.1.24.
Some of the variables are built with data read from a database.
I've been able to successfully define the JNDI datasources and to list 
them in the contextInitialized method
but I needed to try many possible combinations (see later) to 
succesfully perform the lookup in the contextInitialized call: it seems 
like if Tomcat doesn't make the JNDI completely available during the 
initialization sequence of the web application: infact the following 
behaviour is applicable to an init method of a servlet loaded at start-up.
I would like to share this experience and to ask for help, if I'm doing 
something wrong.

There is only a way I've managed to get the result (to be able to 
estabilish a connection using a DataSource retrieved from a JDNI lookup):
- declare the use of the resource in web.xml
- define the resource in server.xml (this is a little 'limitating' for me)
- deploy the applications in unpacked format (i.e. not from a war file: 
this is quite limiting, however)

I want to list othe options I've tried (sarting from an 'empty' webapps 
directory) without success:
- stop tomcat, copy theApplication.war and theApplication.xml in 
CATALINA_HOME/webapps: theApplication.xml contains the context 
configuration, start tomcat
- deploy theApplication.war with a META-INF/theApplication.xml  in it:
The stack traces look like this:
javax.naming.NamingException: Cannot create resource instance
   at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:189)
   at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
   at 
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
   at javax.naming.InitialContext.lookup(InitialContext.java:347)
   at 
it.masterhouse.termopoli.web.startup.Init.contextInitialized(Init.java:37)
   at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3269)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3598)
   at 
org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:629)
Any feedback would be appreciate
Thank you very much
Federico Spinazzi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Servlets not working in my context: SOLVED

2003-06-09 Thread Schwartz, David (CHR)
Hi All.
I finally got it.

I was using Oracle 9i & Tomcat on port 8080.
Oracle 9i installs a service on Port 8080. This causes the logon  popup. You
either have to change tomcats port or disable the oracle feature.
I changed Tomcat port to 80.

Does anyone know how to disable or change oracle from port 8080?

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 21, 2003 11:45 AM
To: Tomcat Users List
Subject: Re: Servlets not working in my context



No, sorry.  XP Home is a whole other animal...it's not designed or 
configured by default to run any sort of network services whatsoever.  XP 
Pro is different in its default configuration.  I've only used XP Home 
enough to understand that my needs require XP Pro if they require Microsoft 
at all.

John

On Wed, 21 May 2003 09:40:52 -0400, Schwartz, David (CHR) 
<[EMAIL PROTECTED]> wrote:

> Funny thing is that I cant find the "usual" windows permission settings.
> When I right click on the tomcat folder the sharing tab advises to put 
> the
> folder in the "shared docs" folder - but no actual permission settings.
> any ideas?
>
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 21, 2003 8:31 AM
> To: Tomcat Users List
> Subject: Re: Servlets not working in my context
>
>
>
> You're getting the username/password prompt because the 
> permissions/security on that folder are munged up.  This is a Windows XP 
> Home thing, not a Tomcat thing.  I would just give all access to everyone 
> on that folder.
>
> John
>
> On Wed, 21 May 2003 07:52:02 -0400, Schwartz, David (CHR) 
> <[EMAIL PROTECTED]> wrote:
>
>> I installed TomCat 4.1.8 on Windows XP Home. A username/password box 
>> pops up
>> when trying to acess the doc root. What is the default account? Also, 
>> why am
>> I getting this on xp & not nt?
>> Thanks
>> -Original Message-
>> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, May 20, 2003 1:20 PM
>> To: Tomcat Users List
>> Subject: RE: Servlets not working in my context
>>
>>
>>
>> Howdy,
>>
>>
>>> Should I be creating an entry for each (& every) servlet or is there a
>> way
>>> to make one entry for a classes folder? (if that's not against best
>>> practices)
>>
>> No such shortcut exists in the servlet specification.  You have to make
>> an entry for every servlet that's linked to (either by the user/external
>> agent or by your own pages), which is pretty much every servlet.
>>
>> Yoav Shapira
>>
>>
>>
>> This e-mail, including any attachments, is a confidential business
>> communication, and may contain information that is confidential, 
>> proprietary
>> and/or privileged.  This e-mail is intended only for the individual(s) 
>> to
>> whom it is addressed, and may not be saved, copied, printed, disclosed 
>> or
>> used by anyone else.  If you are not the(an) intended recipient, please
>> immediately delete this e-mail from your computer system and notify the
>> sender.  Thank you.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Tim Funk
I have just learned that the thin driver uses 1521 to begin the conversation. 
But that is just a handshake. The handshake then says - "Let's finish the 
rest of our work on another higher port" where the higher port is a range of 
ports.

So you need a whole range of ports open. :(

-Tim

Brad Rhoads wrote:
My client had to open port 1521 between the webserver and Oracle DB server.
This makes sense. But he also had to open port 33047 for our application
pointing to the test SID and 40147 for the copy of the app pointing to the
prod SID. Both ProdApp and TestApp are exactly the same except for the
Oracle SID.
Here's part of the log from their Check Point firewall (before they opened
up these other ports):
service sqlnet2-1521 is port 1521
service WebServer is port 40147
Number  DateTimeAction  Service Source  Destination
 Protocol
454885Jun2003   8:30:17 Accept  sqlnet2-1521WebServer   
synapse.berlinind   tcp
454895Jun2003   8:30:17 DropSynapseWeb  WebServer  
 synapse.berlinind   tcp
457085Jun2003   8:31:50 DropSynapseWeb  WebServer  
 synapse.berlinind   tcp
Every SQL request sent through one 1521 which was accepted, and 2 40147s
which were dropped.
Can anyone explain this?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Urgent: Strange Exception in my jsp file

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
help me to solve this strange problem at my project. The rodrigo2.jsp file (
CODE BELOW ) runs fine in JDeveloper but returns an strange exception in
TomCat 4.1.18. This jsp app creates a reference to a java bean, named DICA,
which is instanced by an previous servlet. What does this message mean?
Should i configure anything else in my TomCat?
Thanks in advance,
Euclides.


HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:54:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
  Dica dica = null;
  ^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:56:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica) pageContext.getAttribute("dica",
PageContext.PAGE_SCOPE);
^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:59:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
^



An error occurred at line: 44 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:100:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica)pega.next(); 
^



An error occurred at line: 45 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:105:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getNM_DICA(;
  ^



An error occurred at line: 47 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:111:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getTE_DESCRICAO_DICA(;
  ^



An error occurred at line: 48 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:114:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getTE_BENEFICIO(;
  ^



An error occurred at line: 49 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:117:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getTE_CONTEXTUALIZACAO(;
  ^



An error occurred at line: 50 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:122:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getNM_AUTOR(;
  ^
9 errors


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDi

Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Brad Rhoads

My client had to open port 1521 between the webserver and Oracle DB server.
This makes sense. But he also had to open port 33047 for our application
pointing to the test SID and 40147 for the copy of the app pointing to the
prod SID. Both ProdApp and TestApp are exactly the same except for the
Oracle SID.

Here's part of the log from their Check Point firewall (before they opened
up these other ports):

service sqlnet2-1521 is port 1521
service WebServer is port 40147


Number  DateTimeAction  Service Source  Destination 
Protocol
454885Jun2003   8:30:17 Accept  sqlnet2-1521WebServer   
synapse.berlinind   tcp
454895Jun2003   8:30:17 DropSynapseWeb  WebServer  
 synapse.berlinind   tcp
457085Jun2003   8:31:50 DropSynapseWeb  WebServer  
 synapse.berlinind   tcp


Every SQL request sent through one 1521 which was accepted, and 2 40147s
which were dropped.

Can anyone explain this?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: clustering

2003-06-09 Thread Ben Ricker
I knew that, but the original message was so ambiguous about what
exactly they were running, I thought a little clarity of terminology
would help; blame my philosophy degree *grin*. I did not mean it in a
condescending way.

Ben Ricker
Wellinx.com

On Fri, 2003-06-06 at 16:17, Filip Hanik wrote:
> you are correct of course with the terminology,
> how ever in the lazy days of today's IT, you say that you cluster your
> tomcat servers when you enable session replication.
> 
> :)
> 
> Filip
> 
> > -Original Message-
> > From: Ben Ricker [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 06, 2003 11:00 AM
> > To: Tomcat Users List
> > Subject: Re: clustering
> >
> >
> > You seem to be confused (or maybe it is me). You are not doing
> > clustering. You are trying to do session replication across Tomcats. If
> > you are not using something like Apache in the front, how will the user
> > ever know to switch from 8000 to 8001? They will never know.
> >
> > Clustering is a totally different thing where you utilize special
> > hardware and software to slave multiple servers into one virtual server
> > which share processing among the CPUs on the servers. it is basically
> > Multi-Processing across servers.
> >
> >
> > Ben Ricker
> > Wellinx.com
> >
> > On Thu, 2003-06-05 at 13:11, Alkesh Badshah wrote:
> > > I'm trying to run multiple instances of tomcat on a single
> > machine listening on different ports. Something to the effect of:
> > >
> > > http://localhost:8000
> > > http://localhost:8001
> > >
> > > I've modified the server.xml file, placed the javagroups.jar
> > and tomcat-javagroups.jar in the server/lib directory, and
> > implement java.io.serializable.
> > >
> > > Unfortunately, its not working as I hoped. Once I have a logged
> > in session, I'm hoping to be able to simply switch port(8000 <->
> > 8001) and have it be seemless to the user. Any idea on what the
> > problem could be?
> > >
> > > AB
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Jeffrey Cummings
Yes I did install the filter and it does have the green arrow.
This as the log file, mod_jk_iis.log when I start IIS
[jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 5
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/=ajp13 was added
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /examples/.jsp=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/servlet/=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /admin/=ajp13 was added
[jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 5 rules
[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp13
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
ajp13
[jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
[jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
[jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 contact
is localhost:8009
[jk_ajp13_worker.c (425)]: Into jk_worker_t::init
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done


Jeff


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:00 AM
To: Tomcat Users List
Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config


Thanks.  Did you install the filter?

AFAIK, this is the best tutorial on Tomcat + IIS:

http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

John

On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> wrote:

> Thanks for the help. There is the information request
>
> My worker.propqerties file is: -
>
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
> my uriworkermap.properties file is:-
>
> /servlet/*=ajp13
> /examples/*=ajp13
> /examples/*.jsp=ajp13
> /examples/servlet/*=ajp13
> /admin/*=ajp13
>
> Jeff
>
>
>
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2003 8:25 AM
> To: Tomcat Users List
> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
>
>
> I don't use IIS, but:
>
> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to
> map
> URI '/localhost/tomcat/isapi_redirect.dll'
> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
> jk_uri_worker_map_t::map_uri_to_worker, done without a match
>
> Looks to me like one of your properties files has a munged up URL path.
> You'll have to post them for us to know more.
>
> John
>
> On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings <[EMAIL PROTECTED]>
> wrote:
>
>> I am trying to setup tomcat 4.1.24 with IIS. I get the following message
>>
>>
>> HTTP Status 404 - /tomcat/isapi_redirect.dll
>>
>> _
>>
>> type Status report
>> message /tomcat/isapi_redirect.dll
>> description The requested resource (/tomcat/isapi_redirect.dll) is not
>> available.
>> _
>>
>>
>> Apache Tomcat/4.1.24
>>
>> My registry settings
>> Name
>> Data
>> extension_uri
>> /tomcat/isapi_redirector.dll
>> worker_file
>> C:\Jakarta-4.1.24\conf\workers.properties
>> worker_mount_file
>> C:\Jakarta-4.1.24\conf\uriworkermap.properties
>> log_file
>> C:\Jakarta-4.1.24\logs\mod_jk_iis.log
>> log_level
>> debug
>>
>> I have a virtual directory tomcat -> C:\Jakarta-4.1.24\conf
>> (isapi_redirector.dll is in the conf directory)
>> I've set up the filter in the default web site for tomcat ( it has a
>> green
>> arrow)
>> I'm running XP (this is where I test then move to Win2K)
>> By the way, http://localhost:8080/examples/jsp/index.html works fine
>>
>> Here is the isapi log when I make the request for
>> http://localhost/examples/jsp/index.html
>> [jk_isapi_plugin.c (408)]: HttpFilterProc started
>> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
>> /examples/jsp/index.html
>> [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
>> [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker,
>> Found a
>> match ajp13
>> [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is
>> a
>> servlet url - should redirect to ajp13
>> [jk_isapi_plugin.c (461)]: HttpFilterProc check if
>> [/examples/jsp/index.html] is 

RE: Hyperthreading and performance

2003-06-09 Thread Shapira, Yoav

Howdy,
I haven't gotten around to benchmarking this, although I'm curious.
It's not as much a tomcat issue as it is a general JVM performance one.
Would you be able to benchmark your system with and without
hyperthreading, and hopefully sharing the results with the list?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 10:34 AM
>To: [EMAIL PROTECTED]
>Subject: Hyperthreading and performance
>
>I realise that this is slightly a JVM dependant question but doe anyone
>have any views on using Hyperthreading on Xeon processors and whether
it
>will affect performance or not?  As far as I can ascertain,
hyperthreading
>essentially splits the processor into two threads internally which
appear
>to the OS as two processors (so on a dual system you get four).  This
>allows for performance equivalent of a dual processor system when you
only
>have one proc, etc etc.
>Will this help or hinder Tomcat?  Ive heard many people saying
essentially
>it's better left turned off unless you have a very specific application
>that might use it (eg Photoshop), but with Tomcat being multi-threaded
I
>cant see why it wouldnt benefit.
>Anyone know anything a bit more definative (currently Im using Sun's
>141_01 and 02 JVM in production).
>thanks
>Pete
>
>Kiss Technologies
>
>http://www.kisstechnologies.co.uk/
>
>Please note, we have moved!
>
>4, Percy Street
>London
>W1T 1DF
>
>New permanent phone numbers:
>
>Phone 020 7692 9922
>Fax 020 7692 9923



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hyperthreading and performance

2003-06-09 Thread pete . storey
I realise that this is slightly a JVM dependant question but doe anyone 
have any views on using Hyperthreading on Xeon processors and whether it 
will affect performance or not?  As far as I can ascertain, hyperthreading 
essentially splits the processor into two threads internally which appear 
to the OS as two processors (so on a dual system you get four).  This 
allows for performance equivalent of a dual processor system when you only 
have one proc, etc etc.
Will this help or hinder Tomcat?  Ive heard many people saying essentially 
it's better left turned off unless you have a very specific application 
that might use it (eg Photoshop), but with Tomcat being multi-threaded I 
cant see why it wouldnt benefit.
Anyone know anything a bit more definative (currently Im using Sun's 
141_01 and 02 JVM in production).
thanks
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

Please note, we have moved!

4, Percy Street
London
W1T 1DF

New permanent phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923

RE: check for session

2003-06-09 Thread Collins, Jim
Hi Brian,

I mainly develop Web apps that are front ends to Documentum and all the apps
I write are JSP/Servlet based apps and I use the Struts framework to help
build these apps. I use struts to help with the apps flow control and
mapping logic and the custom tags that it provides to help with forms and
display. All Documentum specific code is wrapped in beans that my Action
classes call.

If you require any more specific details please let me know.

Regards

Jim.

-Original Message-
From: Brian Menke [mailto:[EMAIL PROTECTED]
Sent: 09 June 2003 15:11
To: Tomcat Users List
Subject: RE: check for session


Hey Jim, I saw this and it intrigued me. Documentum is a document management
system. I'm curious about how you are using struts with it?? Do you mind
sharing briefly?

-Brian

-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 2:14 AM
To: 'Tomcat Users List'
Subject: RE: check for session


Hi Mark,

I use Documentum and struts and had something similar to what you now have
with a Filter determining if a user has a dmSession. I found however that on
a number of occasions when the filter was checking for dmSession it was
returning null (even though I knew it had previously been created) and the
app was recreating the session and saving it. I have now removed the filter
and written a custom tag that checks for the existence of the dmSession and
if it does not exist creates it, if there is a problem creating the
dmSession the user is redirected to an error page.

Regards

Jim.

-Original Message-
From: Mark F [mailto:[EMAIL PROTECTED]
Sent: 06 June 2003 19:42
To: Tomcat Users List
Subject: Re: check for session


Thanks, worked like a charm, never used that before, very nice.  The
filtering mechanism though makes me wish I'd set up the app directory
structure differently but you know hindsight 20/20 and all that...

-Mark


Shapira, Yoav wrote:
| Howdy,
| Consider using a Filter as follows:
|
| public void doFilter(...) {
|   if(request instanceof HttpServletRequest) {
| HttpSession theSession = ((HttpServletRequest)
| request).getSession();
| if(theSession.getAttribute("dmSession") == null) {
|   // Redirect to login page, print out error message, whatever
| }
|   }
|
|   // Pass the request on
|   chain.doFilter(request, response);
| }
|
| Map this filter to whatever you need authenticated (/* is one
| possibility).
|
| Yoav Shapira
| Millennium ChemInformatics
|
|
|| -Original Message-
|| From: Mark F [mailto:[EMAIL PROTECTED]
|| Sent: Friday, June 06, 2003 12:16 PM
|| To: Tomcat Users List
|| Subject: check for session
||
|| We use a content management system (documentum) it operates much
|| like a database as far as authentication.  I save a documentum
|| session object into my httpSession as "dmSession" upon successful
|| logon.  I want to check for the existence of this session on every
|| page after the logon page, or if there is an easier way please let
|| me know?
||
|| Any help would really be appreciated.
||
|| Thanks,
|| -Mark
|
|
|
| This e-mail, including any attachments, is a confidential business
| communication, and may contain information that is confidential,
| proprietary and/or privileged.  This e-mail is intended only for the
| individual(s) to whom it is addressed, and may not be saved, copied,
| printed, disclosed or used by anyone else.  If you are not the(an)
| intended recipient, please immediately delete this e-mail from your
| computer system and notify the sender.  Thank you.
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



---

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread John Turner
Very possible, I was just acknowledging my lack of experience in being able 
to judge whether it was a good design overall or not...it would certainly 
accomplish the "protect images" requirement, but I wasn't sure about any 
others.

John

On Mon, 09 Jun 2003 09:12:49 -0500, Jacob Kjome <[EMAIL PROTECTED]> wrote:

I don't know why this would be any slower than tomcat itself?  Tomcat 
serves images by loading them as a stream from the default servlet and 
returns them to the browser.  It all depends on how you implement this.  
It very well could be faster than Tomcat itself since a servlet dedicated 
to serving images might be even faster than a Tomcat's default servlet 
which must take care of serving all kinds of files and, therefore, 
probably has more overhead.

Jake

At 09:52 AM 6/9/2003 -0400, you wrote:

Could you just put all of the images under WEB-INF, and use a special 
servlet to get them?

The source attribute of the IMG tag would be something like 
/servlet/imgGetter?image=someUniqueKey.

The servlet would just retrieve the image from the WEB-INF directory, 
and spool it out as a stream.

I'm not sure on the performance, though.  High-traffic might be a 
problem.

John

On Mon, 9 Jun 2003 09:43:48 -0400, Shapira, Yoav <[EMAIL PROTECTED]> 
wrote:

Howdy,
That one's tricky (and strange).  When you have a servlet or JSP, the
output the user sees is HTML.  In HTML, you have  tags.  The
browser will request those images normally in HTTP requests.  So from
the server's perspective, the request is the same whether the user 
types
in the image URL or you embed it in one of your pages.

Would something like using a mangled images directory name ($KF_%# or
something) be sufficient?  A name that's hard for users to guess and 
use
directly?

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:33 PM
To: [EMAIL PROTECTED]
Subject: Urgent : Can we restrict access to a directory in tomcat
hi there,

I want to restrict the user to access the images directly through the
web.
They should be able to access these images through web pages developed
as
jsp/servlet but should not be able to access these images displayed on
page
by copying the image url to the address bar. Is tomcat directly 
support
this functionality. or any other solution.

Thanks in advance for any solution of the problem.

Nayyer Kamran




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread John Turner
Not to mention spoofing.

John

On Mon, 09 Jun 2003 08:50:50 -0500, G. Wade Johnson 
<[EMAIL PROTECTED]> wrote:

Unfortunately, this doesn't always work.

In the past, I've had problems with IE not sending the Referer header
on some requests.
G. Wade

Tom Oinn wrote:
The other way to do it would be to check the referer page, this seems to
be quite a common trick and will confound most people trying to link
directly to your images (which is what I imagine you're trying to
prevent). There may be a more elegant way of doing it, but you could
create a servlet that is mapped to your /images mount point which
inspects the referer field in the request and, assuming it is valid,
returns the appropriate content from a directory outside of your web
application. As all requests would go through the servlet you have
access control.
Tom

Shapira, Yoav wrote:
> Howdy,
> That one's tricky (and strange).  When you have a servlet or JSP, the
> output the user sees is HTML.  In HTML, you have  tags.  The
> browser will request those images normally in HTTP requests.  So from
> the server's perspective, the request is the same whether the user 
types
> in the image URL or you embed it in one of your pages.
>
> Would something like using a mangled images directory name ($KF_%# or
> something) be sufficient?  A name that's hard for users to guess and 
use
> directly?
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
>
>>-Original Message-
>>From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED]
>>Sent: Monday, June 09, 2003 9:33 PM
>>To: [EMAIL PROTECTED]
>>Subject: Urgent : Can we restrict access to a directory in tomcat
>>
>>hi there,
>>
>>I want to restrict the user to access the images directly through the
>
> web.
>
>>They should be able to access these images through web pages developed
>
> as
>
>>jsp/servlet but should not be able to access these images displayed on
>
> page
>
>>by copying the image url to the address bar. Is tomcat directly 
support
>>this functionality. or any other solution.
>>
>>Thanks in advance for any solution of the problem.
>>
>>
>>Nayyer Kamran
>
>
>
>
>
> This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: re. to Thomas.Rimmele( I used param tag just as u said)

2003-06-09 Thread Jacob Kjome
First, I think you mean super.init(config) and second, there is no need for 
that if you call the "init()" method rather than init(ServletConfig 
config).  See the javadoc...



public void init()
  throws ServletException
A convenience method which can be overridden so that there's no need to 
call super.init(config).

Instead of overriding init(ServletConfig), simply override this method and 
it will be called by GenericServlet.init(ServletConfig config). The 
ServletConfig object can still be retrieved via getServletConfig().


Jake

At 08:58 AM 6/9/2003 -0400, you wrote:
Don't forget to call super.init() first.

-Original Message-
From: bilal sulehri [mailto:[EMAIL PROTECTED]
Sent: June 9, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: re. to Thomas.Rimmele( I used param tag just as u said)


>From: [EMAIL PROTECTED]
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: RE: having problem with getInitParameter()
>Date: Sat, 7 Jun 2003 18:03:08 +0200
>
>Hy,
>I think your forgot the -tag
>
>Greethings, Thomas
>
>   
> 
> xxx
> 
> 
> yyy
> 
> 
> key
> value
> 
>
> 
>
>-Original Message-
>From: bilal sulehri [mailto:[EMAIL PROTECTED]
>Sent: Samstag, 7. Juni 2003 17:41
>To: [EMAIL PROTECTED]
>Subject: having problem with getInitParameter()
>
>
>Hi, I m having problem with the the get InitParameter method of
>ServletConfig class,
>I m adding tags as following in both tomcat_home/conf/web.xml and
>/tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working
>
>
>   ...
>   ...
>   pname
>   pvalue
>
>
>_
>Tired of spam? Get advanced junk mail protection with MSN 8.
>http://join.msn.com/?page=features/junkmail
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Jacob Kjome
I don't know why this would be any slower than tomcat itself?  Tomcat 
serves images by loading them as a stream from the default servlet and 
returns them to the browser.  It all depends on how you implement this.  It 
very well could be faster than Tomcat itself since a servlet dedicated to 
serving images might be even faster than a Tomcat's default servlet which 
must take care of serving all kinds of files and, therefore, probably has 
more overhead.

Jake

At 09:52 AM 6/9/2003 -0400, you wrote:

Could you just put all of the images under WEB-INF, and use a special 
servlet to get them?

The source attribute of the IMG tag would be something like 
/servlet/imgGetter?image=someUniqueKey.

The servlet would just retrieve the image from the WEB-INF directory, and 
spool it out as a stream.

I'm not sure on the performance, though.  High-traffic might be a problem.

John

On Mon, 9 Jun 2003 09:43:48 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote:

Howdy,
That one's tricky (and strange).  When you have a servlet or JSP, the
output the user sees is HTML.  In HTML, you have  tags.  The
browser will request those images normally in HTTP requests.  So from
the server's perspective, the request is the same whether the user types
in the image URL or you embed it in one of your pages.
Would something like using a mangled images directory name ($KF_%# or
something) be sufficient?  A name that's hard for users to guess and use
directly?
Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:33 PM
To: [EMAIL PROTECTED]
Subject: Urgent : Can we restrict access to a directory in tomcat
hi there,

I want to restrict the user to access the images directly through the
web.
They should be able to access these images through web pages developed
as
jsp/servlet but should not be able to access these images displayed on
page
by copying the image url to the address bar. Is tomcat directly support
this functionality. or any other solution.
Thanks in advance for any solution of the problem.

Nayyer Kamran




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: check for session

2003-06-09 Thread Brian Menke
Hey Jim, I saw this and it intrigued me. Documentum is a document management
system. I'm curious about how you are using struts with it?? Do you mind
sharing briefly?

-Brian

-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 2:14 AM
To: 'Tomcat Users List'
Subject: RE: check for session


Hi Mark,

I use Documentum and struts and had something similar to what you now have
with a Filter determining if a user has a dmSession. I found however that on
a number of occasions when the filter was checking for dmSession it was
returning null (even though I knew it had previously been created) and the
app was recreating the session and saving it. I have now removed the filter
and written a custom tag that checks for the existence of the dmSession and
if it does not exist creates it, if there is a problem creating the
dmSession the user is redirected to an error page.

Regards

Jim.

-Original Message-
From: Mark F [mailto:[EMAIL PROTECTED]
Sent: 06 June 2003 19:42
To: Tomcat Users List
Subject: Re: check for session


Thanks, worked like a charm, never used that before, very nice.  The
filtering mechanism though makes me wish I'd set up the app directory
structure differently but you know hindsight 20/20 and all that...

-Mark


Shapira, Yoav wrote:
| Howdy,
| Consider using a Filter as follows:
|
| public void doFilter(...) {
|   if(request instanceof HttpServletRequest) {
| HttpSession theSession = ((HttpServletRequest)
| request).getSession();
| if(theSession.getAttribute("dmSession") == null) {
|   // Redirect to login page, print out error message, whatever
| }
|   }
|
|   // Pass the request on
|   chain.doFilter(request, response);
| }
|
| Map this filter to whatever you need authenticated (/* is one
| possibility).
|
| Yoav Shapira
| Millennium ChemInformatics
|
|
|| -Original Message-
|| From: Mark F [mailto:[EMAIL PROTECTED]
|| Sent: Friday, June 06, 2003 12:16 PM
|| To: Tomcat Users List
|| Subject: check for session
||
|| We use a content management system (documentum) it operates much
|| like a database as far as authentication.  I save a documentum
|| session object into my httpSession as "dmSession" upon successful
|| logon.  I want to check for the existence of this session on every
|| page after the logon page, or if there is an easier way please let
|| me know?
||
|| Any help would really be appreciated.
||
|| Thanks,
|| -Mark
|
|
|
| This e-mail, including any attachments, is a confidential business
| communication, and may contain information that is confidential,
| proprietary and/or privileged.  This e-mail is intended only for the
| individual(s) to whom it is addressed, and may not be saved, copied,
| printed, disclosed or used by anyone else.  If you are not the(an)
| intended recipient, please immediately delete this e-mail from your
| computer system and notify the sender.  Thank you.
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Jason Bainbridge
On Mon, 9 Jun 2003 21:52, John Turner wrote:
> Could you just put all of the images under WEB-INF, and use a special
> servlet to get them?
>
> The source attribute of the IMG tag would be something like
> /servlet/imgGetter?image=someUniqueKey.
>
> The servlet would just retrieve the image from the WEB-INF directory, and
> spool it out as a stream.

That is the way I would do it and I've just done something similar but with 
PHP instead... 

Basically you store the images either outside the document root ie. in WEB-INF 
for Tomcat or if using Apache you can use a .htaccess to deny from all 
instead, then you have your usual security framework within your web app and 
only allow authorised users to see the images.

Although once you have served that image there is nothing you can do to stop 
people from using it, I wouldn't even waste your time looking at Javascript 
to block right clicks or anything like that, a quick disable of javascript 
gets around that one...

Regards,
-- 
Jason Bainbridge
http://jblinux.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat does not release connections

2003-06-09 Thread Phillip Qin
I do it in my init servlet's destroy method. When I "start" my application,
I use an init Servlet to initialize logger, connection pool etc. When Tomcat
is shutting down, it automatically executes my init servlet's destroy method
where I close the connection pool.

-Original Message-
From: Vijay Pawar [mailto:[EMAIL PROTECTED] 
Sent: June 9, 2003 7:56 AM
To: [EMAIL PROTECTED]
Subject: tomcat does not release connections

Hi All,

i have a small query, am using dbcp for connection pooling  and am opening
3 connection to the database and having 1 connection as idle.
now..when i restart the tomcat container , sometime it does not release the
3 connections ( this is when i check it using the query select
count(SADDR)
from v$session where username='ACBD' and machine='lmpx00028' )

can something be done in the conf files for tomcat so that
the container releases all the connections when it is
restarted

Cheers

Vijay Pawar
-
On behalf of
Amit J Malhotra
(RIL.com)




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Newbie Q:How to prevent Directory listing in Tomcat?

2003-06-09 Thread Phillip Qin
Having gone thru the source code, I figured out that this init param will
only work with DefaultServlet. I wish we could have something similar to
apache's per-directory disable/enable.

-Original Message-
From: David Legg [mailto:[EMAIL PROTECTED] 
Sent: June 9, 2003 5:50 AM
To: 'Tomcat Users List'
Subject: RE: Newbie Q:How to prevent Directory listing in Tomcat?

Hi Bob,

In version 4.x Tomcat look for the file /conf/web.xml

This file sets all the default web application settings.  Look for the tag
sequence: -

  listings

And change the  tag below it from 'true' (the default setting)
to false.

Hope that helps.


David Legg


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 June 2003 00:02
To: [EMAIL PROTECTED]
Subject: Newbie Q:How to prevent Directory listing in Tomcat?


How can I prevent a client from listing the contents of my web appl. 
directories without having to put an 'index.html' in the base of each
directory?

Thanks.

Bob.

P.s.: I can find any solution(s) in the Tomcat-user archive:

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: re. to Thomas.Rimmele( I used param tag just as u said)

2003-06-09 Thread Phillip Qin
Don't forget to call super.init() first.

-Original Message-
From: bilal sulehri [mailto:[EMAIL PROTECTED] 
Sent: June 9, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: re. to Thomas.Rimmele( I used param tag just as u said)




>From: [EMAIL PROTECTED]
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: RE: having problem with getInitParameter()
>Date: Sat, 7 Jun 2003 18:03:08 +0200
>
>Hy,
>I think your forgot the -tag
>
>Greethings, Thomas
>
>   
> 
> xxx
> 
> 
> yyy
> 
> 
> key
> value
> 
>
> 
>
>-Original Message-
>From: bilal sulehri [mailto:[EMAIL PROTECTED]
>Sent: Samstag, 7. Juni 2003 17:41
>To: [EMAIL PROTECTED]
>Subject: having problem with getInitParameter()
>
>
>Hi, I m having problem with the the get InitParameter method of
>ServletConfig class,
>I m adding tags as following in both tomcat_home/conf/web.xml and
>/tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working
>
>
>   ...
>   ...
>   pname
>   pvalue
>
>
>_
>Tired of spam? Get advanced junk mail protection with MSN 8.
>http://join.msn.com/?page=features/junkmail
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Clear user session

2003-06-09 Thread Phillip Qin
Is this a re-post? I saw some pal posted a very good explaination why you
cann't do it. Are you not reading those posts?.

My suggestion is to use session.removeAttribute(attr_name) or simply set
those attributes to null.

-Original Message-
From: shyam [mailto:[EMAIL PROTECTED] 
Sent: June 6, 2003 2:40 PM
To: Tomcat Users List
Subject: Clear user session

Hi All,

I just moved my webapp from jrun to tomcat. I have a method which clears the
user session. The code snippet is

 Enumeration session_var = session.getAttributeNames();

 while(session_var.hasMoreElements())
 {
 String key=(String)session_var.nextElement();

I am getting an error here and the exception is

java.util.ConcurrentModificationException at
java.util.HashMap$HashIterator.nextEntry

How can I resolve this error.

Thanks a lot in advance
shyam



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat configuring for email

2003-06-09 Thread Phillip Qin
Tomcat has this nice feature called Resource mail/Session. Without this
feature, in your code, you get a mail session by:

Properties props = new Properties();
props.put("mail.smtp.host", "mysmtphost");
Session mailsession = Session.getDefaultInstance(props, null);

With Tomcat's jndi lookup, you can get session by:

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
Session session = (Session) envCtx.lookup("mail/Session");

But you still need to setup the sending params, such as

Message m = new MimeMessage(session);
m.setFrom("sender");
m.addRecipient(Message.RecipientType.TO, "recipient");
m.setSentDate("date");
m.setSubject("subject");
m.setText("text");

Transport.send(m);

-Original Message-
From: Clement [mailto:[EMAIL PROTECTED] 
Sent: June 6, 2003 11:30 PM
To: Tomcat Users List
Subject: Re: Tomcat configuring for email

Hello.
Sorry for the confusion. What i meant does tomcat have a built in
emailing? As u replied there is .
But is it on by default? when i try running the example inside , it
seems to be a dummy one.
What i am trying to do is to mail a user automatically everytime he
makes a purchase.
inside the default server.xml as shown below, is this the way to enable
emailing or is there more to it?
Thanks..
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  


- Original Message -
From: "Phillip Qin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2003 23:17
Subject: RE: Tomcat configuring for email


> Don't understand your question. Tomcat has built-in mail session jndi
> lookup. You can use it in your program. Is that what you want?
>
> -Original Message-
> From: Clement [mailto:[EMAIL PROTECTED]
> Sent: June 6, 2003 2:53 AM
> To: Tomcat Users List
> Subject: Tomcat configuring for email
>
> Hello...
> I would like to check with for emailing purposes.. how do i enable
> tomcat to send an email to a user? Can version 4.01 do this or do u need a
> newer version? ?
> Thanks..
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread John Turner
Could you just put all of the images under WEB-INF, and use a special 
servlet to get them?

The source attribute of the IMG tag would be something like 
/servlet/imgGetter?image=someUniqueKey.

The servlet would just retrieve the image from the WEB-INF directory, and 
spool it out as a stream.

I'm not sure on the performance, though.  High-traffic might be a problem.

John

On Mon, 9 Jun 2003 09:43:48 -0400, Shapira, Yoav <[EMAIL PROTECTED]> 
wrote:

Howdy,
That one's tricky (and strange).  When you have a servlet or JSP, the
output the user sees is HTML.  In HTML, you have  tags.  The
browser will request those images normally in HTTP requests.  So from
the server's perspective, the request is the same whether the user types
in the image URL or you embed it in one of your pages.
Would something like using a mangled images directory name ($KF_%# or
something) be sufficient?  A name that's hard for users to guess and use
directly?
Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:33 PM
To: [EMAIL PROTECTED]
Subject: Urgent : Can we restrict access to a directory in tomcat
hi there,

I want to restrict the user to access the images directly through the
web.
They should be able to access these images through web pages developed
as
jsp/servlet but should not be able to access these images displayed on
page
by copying the image url to the address bar. Is tomcat directly support
this functionality. or any other solution.
Thanks in advance for any solution of the problem.

Nayyer Kamran




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread G. Wade Johnson
Unfortunately, this doesn't always work.

In the past, I've had problems with IE not sending the Referer header
on some requests.

G. Wade

Tom Oinn wrote:
> 
> The other way to do it would be to check the referer page, this seems to
> be quite a common trick and will confound most people trying to link
> directly to your images (which is what I imagine you're trying to
> prevent). There may be a more elegant way of doing it, but you could
> create a servlet that is mapped to your /images mount point which
> inspects the referer field in the request and, assuming it is valid,
> returns the appropriate content from a directory outside of your web
> application. As all requests would go through the servlet you have
> access control.
> 
> Tom
> 
> Shapira, Yoav wrote:
> > Howdy,
> > That one's tricky (and strange).  When you have a servlet or JSP, the
> > output the user sees is HTML.  In HTML, you have  tags.  The
> > browser will request those images normally in HTTP requests.  So from
> > the server's perspective, the request is the same whether the user types
> > in the image URL or you embed it in one of your pages.
> >
> > Would something like using a mangled images directory name ($KF_%# or
> > something) be sufficient?  A name that's hard for users to guess and use
> > directly?
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> >
> >
> >>-Original Message-
> >>From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, June 09, 2003 9:33 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: Urgent : Can we restrict access to a directory in tomcat
> >>
> >>hi there,
> >>
> >>I want to restrict the user to access the images directly through the
> >
> > web.
> >
> >>They should be able to access these images through web pages developed
> >
> > as
> >
> >>jsp/servlet but should not be able to access these images displayed on
> >
> > page
> >
> >>by copying the image url to the address bar. Is tomcat directly support
> >>this functionality. or any other solution.
> >>
> >>Thanks in advance for any solution of the problem.
> >>
> >>
> >>Nayyer Kamran
> >
> >
> >
> >
> >
> > This e-mail, including any attachments, is a confidential business communication, 
> > and may contain information that is confidential, proprietary and/or privileged.  
> > This e-mail is intended only for the individual(s) to whom it is addressed, and 
> > may not be saved, copied, printed, disclosed or used by anyone else.  If you are 
> > not the(an) intended recipient, please immediately delete this e-mail from your 
> > computer system and notify the sender.  Thank you.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Tom Oinn
The other way to do it would be to check the referer page, this seems to 
be quite a common trick and will confound most people trying to link 
directly to your images (which is what I imagine you're trying to 
prevent). There may be a more elegant way of doing it, but you could 
create a servlet that is mapped to your /images mount point which 
inspects the referer field in the request and, assuming it is valid, 
returns the appropriate content from a directory outside of your web 
application. As all requests would go through the servlet you have 
access control.

Tom

Shapira, Yoav wrote:
Howdy,
That one's tricky (and strange).  When you have a servlet or JSP, the
output the user sees is HTML.  In HTML, you have  tags.  The
browser will request those images normally in HTTP requests.  So from
the server's perspective, the request is the same whether the user types
in the image URL or you embed it in one of your pages.
Would something like using a mangled images directory name ($KF_%# or
something) be sufficient?  A name that's hard for users to guess and use
directly?
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:33 PM
To: [EMAIL PROTECTED]
Subject: Urgent : Can we restrict access to a directory in tomcat
hi there,

I want to restrict the user to access the images directly through the
web.

They should be able to access these images through web pages developed
as

jsp/servlet but should not be able to access these images displayed on
page

by copying the image url to the address bar. Is tomcat directly support
this functionality. or any other solution.
Thanks in advance for any solution of the problem.

Nayyer Kamran




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Schwartz, David (CHR)
Store the images in your database & then your jsp can retrieve & show them.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:44 AM
To: Tomcat Users List
Subject: RE: Urgent : Can we restrict access to a directory in tomcat



Howdy,
That one's tricky (and strange).  When you have a servlet or JSP, the
output the user sees is HTML.  In HTML, you have  tags.  The
browser will request those images normally in HTTP requests.  So from
the server's perspective, the request is the same whether the user types
in the image URL or you embed it in one of your pages.

Would something like using a mangled images directory name ($KF_%# or
something) be sufficient?  A name that's hard for users to guess and use
directly?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 9:33 PM
>To: [EMAIL PROTECTED]
>Subject: Urgent : Can we restrict access to a directory in tomcat
>
>hi there,
>
>I want to restrict the user to access the images directly through the
web.
>They should be able to access these images through web pages developed
as
>jsp/servlet but should not be able to access these images displayed on
page
>by copying the image url to the address bar. Is tomcat directly support
>this functionality. or any other solution.
>
>Thanks in advance for any solution of the problem.
>
>
>Nayyer Kamran




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Shapira, Yoav

Howdy,
That one's tricky (and strange).  When you have a servlet or JSP, the
output the user sees is HTML.  In HTML, you have  tags.  The
browser will request those images normally in HTTP requests.  So from
the server's perspective, the request is the same whether the user types
in the image URL or you embed it in one of your pages.

Would something like using a mangled images directory name ($KF_%# or
something) be sufficient?  A name that's hard for users to guess and use
directly?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 9:33 PM
>To: [EMAIL PROTECTED]
>Subject: Urgent : Can we restrict access to a directory in tomcat
>
>hi there,
>
>I want to restrict the user to access the images directly through the
web.
>They should be able to access these images through web pages developed
as
>jsp/servlet but should not be able to access these images displayed on
page
>by copying the image url to the address bar. Is tomcat directly support
>this functionality. or any other solution.
>
>Thanks in advance for any solution of the problem.
>
>
>Nayyer Kamran




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.net.SocketException: Connection reset

2003-06-09 Thread Mindaugas Genutis

Hello,

I am getting the java.net.SocketException and my JSP application crashes. 
I have pasted the exception below. It comes from the catalina sockets 
engine. Does anyone have an idea where should I go further for fixing this 
socket problem?

My server configuration: Redhat Linux, Tomcat 4.1.24, Java 1.4.1

2003-06-09 12:24:38 StandardWrapperValve[default]: Servlet.service() for 
servlet default threw exception
java.net.SocketException: Connection reset
at 
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at 
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
at 
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:160)
at 
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
at org.apache.coyote.Response.doWrite(Response.java:524)
at 
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384)
at 
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359)
at 
org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411)
at 
org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398)
at 
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110)
at 
org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996)
at 
org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745)
at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073)
at 
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)

Thanks,

-- 
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt


-
To uns

RE: Off Topic: JSP that reads and creates links to file directory

2003-06-09 Thread Tom Lyle
I'd say that the String path
="../dirList.jsp?path=//\\corportateFileServer\department\team\communication
s\statusreports\monthlyConsolidatedReport&title=Team+Monthly+Status+Report"
isnt a valid file path for

File file =  new File(path)

> -Original Message-
> From: Michele Emmi [mailto:[EMAIL PROTECTED]
> Sent: 09 June 2003 14:18
> To: [EMAIL PROTECTED]
> Subject: Off Topic: JSP that reads and creates links to file directory
>
>
> Hi,
> I have created the jsp (below) that reads and creates links to file
> directory(intranet, windows nt os).  It works in ie to the extent that it
> will read the file server directory and create the links, but
> when I follow
> the link I get an error from the browser (ie) saying the page was not
> found...Any help would be greatly appreciated!
>
> Example of link that calls the jsp:
>  href="../dirList.jsp?path=//\\corportateFileServer\department\team
> \communications\status
> reports\monthlyConsolidatedReport&title=Team+Monthly+Status+Report
> ">Monthly
> Report
>
> 
> <%@ page import="java.io.*" %>
> <%@ page import="java.net.*" %>
> <%@ page import="javax.servlet.*" %>
> <%@ page import="javax.servlet.ServletException"%>
> <%@ page import="javax.servlet.http.*"%>
> <%@ page import="java.util.*" %>
> <% String path = request.getParameter("path");
>   File file = new File( path );
>   String title = request.getParameter("title");
> %>
>
> 
>
>   
>   
>rel="stylesheet">
>src="/xxx/scripts/dateScript.js">
>   
>   
>
> 
> 
> 
> 
> <% out.println( "" + title +
> "Files Located at: " + path ); %>
> 
> 
> 
> 
>
> <% if( !file.exists() || !file.canRead()){
>   out.println( "Can't Read " + file );
>   return;
>   }
>   if( file.isDirectory()) {
>   String [] files = file.list();
>   for (int i=0; i< files.length; i++)
>   out.println( "" + files[i] +
> "");
>   }
>   else
>   try{
>   FileReader fr = new FileReader (file);
>   BufferedReader in = new BufferedReader( fr );
>   String line;
>   while ((line = in.readLine()) != null)
>   out.println( line );
>   }
>   catch ( FileNotFoundException e ){
>   out.println( "File(s) not found" );
>   }
> %>
>
> 
> 
> 
> 
>
> 
>
> _
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >