Re: JK2 Officially Unsupported - Should I Avoid JK2?

2004-12-23 Thread Sean Dockery
Thanks for the reply, Dennis.

I did some reading in the list archives on the subject, and we decided to go 
with mod_jk.

"Dennis Payne" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> It looks like things regarding a connector are still in flux... probably
> not time to panic yet.  JK2 works.  mod_jk works. Choose one.
>
 [EMAIL PROTECTED] 12-22-2004 17:03 >>>
> On November 15th, there was an announcement that JK2 is officially
> unsupported.
>
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#20041115.1
>
>
> We're in the process of configuring new servers and integrating Apache
> with
> Tomcat.  We are migrating applications from servers running Apache w/
> mod_jk
> against Tomcat 4 w/ JK (not JK2).
>
> I had been under the impression that JK2 was superior to JK.  In light
> of
> the announcement, should we be sticking with JK from here-on-in?
>
>
>
>
>
> -
> 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]



JK2 Officially Unsupported - Should I Avoid JK2?

2004-12-22 Thread Sean Dockery
On November 15th, there was an announcement that JK2 is officially 
unsupported.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#20041115.1

We're in the process of configuring new servers and integrating Apache with 
Tomcat.  We are migrating applications from servers running Apache w/ mod_jk 
against Tomcat 4 w/ JK (not JK2).

I had been under the impression that JK2 was superior to JK.  In light of 
the announcement, should we be sticking with JK from here-on-in?





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



Re: Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-18 Thread Sean Dockery
We won't be going to Tomcat 5 at work for a couple of months yet, but I'll 
try it out at home when I have some spare time.

"Shapira, Yoav" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

Hi,
What happens with Tomcat 5.x?  (To which JSP Spec 2.0, not 1.2,
applies).

The reason I ask is that while you can file away bugs against 4.x to
your heart's content, it's not being actively developed and you
shouldn't hold your breath waiting for a fix.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sean Dockery
>Sent: Thursday, November 18, 2004 11:21 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Custom tag attribute runtime expression containing and
>delimited by quotes. Supported in Tomcat, but not other JSP containers.
>What is the standard?
>
>Hmmm...  We found in section JSP 2.6 (page 41) in the Core Syntax and
>Semantics chapter of the JSP 1.2 specification that this...
>
>" />
>
>...is expressly illegal.
>
>Should this be considered to be a bug in Jasper?
>
>"Sean Dockery" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]
>> Hello,
>>
>> We recently came upon an issue in migrating our web application from
>> Tomcat 4.1.x to SAP Web AS 6.4 SP7.
>>
>> Here is an example of the offending code (which involves indexed
beans
>> managed by a Struts ActionForm):
>>
>> 
>>Name: "/>
>> 
>>
>> The quotes embedded in the property attribute's runtime expression
work
>> fine under Tomcat, but failed under SAP Web AS during JSP
translation.
>> The Web AS JSP compiler sees the quote before the word people as the
>> closing delimiter for the property attribute value.
>>
>> We found that the following variations work in both Tomcat and SAP
Web
>> AS.
>>
>> 
>> (using apostrophes instead of quotes to delimit the attribute values)
>>
>> "/>
>> (escaping the embedded quotes)
>>
>> The former solution seems to be sanctioned (according to Google,
anyway).
>> The latter solution (though looking to be pure evil) seems to solve a
>> situation where you would have both quotes and apostrophes in the
same
>> attribute value.
>>
>> Is there anything in the (current or previous) JSP specification
dealing
>> with quotes embedded in runtime expressions?  (It is an unfortunately
>> happy coincidence that Jasper supports embedded quotes; anyone else
>> enjoying this behaviour should be aware that it may not be supported
by
>> other containers.)
>>
>> Thanks for your precious time.




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



Re: Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-18 Thread Sean Dockery
Hmmm...  We found in section JSP 2.6 (page 41) in the Core Syntax and 
Semantics chapter of the JSP 1.2 specification that this...

" />

...is expressly illegal.

Should this be considered to be a bug in Jasper?

"Sean Dockery" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hello,
>
> We recently came upon an issue in migrating our web application from 
> Tomcat 4.1.x to SAP Web AS 6.4 SP7.
>
> Here is an example of the offending code (which involves indexed beans 
> managed by a Struts ActionForm):
>
> 
>Name: "/>
> 
>
> The quotes embedded in the property attribute's runtime expression work 
> fine under Tomcat, but failed under SAP Web AS during JSP translation. 
> The Web AS JSP compiler sees the quote before the word people as the 
> closing delimiter for the property attribute value.
>
> We found that the following variations work in both Tomcat and SAP Web 
> AS.
>
> 
> (using apostrophes instead of quotes to delimit the attribute values)
>
> "/>
> (escaping the embedded quotes)
>
> The former solution seems to be sanctioned (according to Google, anyway). 
> The latter solution (though looking to be pure evil) seems to solve a 
> situation where you would have both quotes and apostrophes in the same 
> attribute value.
>
> Is there anything in the (current or previous) JSP specification dealing 
> with quotes embedded in runtime expressions?  (It is an unfortunately 
> happy coincidence that Jasper supports embedded quotes; anyone else 
> enjoying this behaviour should be aware that it may not be supported by 
> other containers.)
>
> Thanks for your precious time. 




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



Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-17 Thread Sean Dockery
Hello,

We recently came upon an issue in migrating our web application from Tomcat 
4.1.x to SAP Web AS 6.4 SP7.

Here is an example of the offending code (which involves indexed beans 
managed by a Struts ActionForm):


Name: "/>


The quotes embedded in the property attribute's runtime expression work 
fine under Tomcat, but failed under SAP Web AS during JSP translation.  The 
Web AS JSP compiler sees the quote before the word people as the closing 
delimiter for the property attribute value.

We found that the following variations work in both Tomcat and SAP Web AS.


(using apostrophes instead of quotes to delimit the attribute values)

"/>
(escaping the embedded quotes)

The former solution seems to be sanctioned (according to Google, anyway). 
The latter solution (though looking to be pure evil) seems to solve a 
situation where you would have both quotes and apostrophes in the same 
attribute value.

Is there anything in the (current or previous) JSP specification dealing 
with quotes embedded in runtime expressions?  (It is an unfortunately happy 
coincidence that Jasper supports embedded quotes; anyone else enjoying this 
behaviour should be aware that it may not be supported by other 
containers.)

Thanks for your precious time.




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



Re: Way to get Reference to Servlet from Filter?

2003-12-19 Thread Sean Dockery
"I've got a fever... and the only cure is more cowbell!"

LOL.  :-D

"Tim Funk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You won't be able to get the servlet reference. A possibility is to define
> the filter multiple times with different parameters. For example, here is
the
> same class name defined 4 times as 4 different filters.
>
> 
>filter1
>more.Cowbell
>
>  my
>  attribute
>
> 
> 
>filter2
>more.Cowbell
> 
> 
>filter3
>more.Cowbell
>
>  another
>  some value
>
> 
> 
>filter4
>more.Cowbell
> 
>
> I'll leave it up to you to figure out the mappings according to your
constraints.
>
> -Tim
>




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



Re: Tomcat performance on Windows versus Linux

2003-12-16 Thread Sean Dockery
"David Rees" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

> Not enough difference to make it a deciding factor between the two
> platforms.  IMO, Tim's criteria are spot on when deciding what platform to
> deploy on.  Personally, I prefer Unix as I find it easier to setup and
> administer.  Of course, the majority of my experience with Tomcat is on
> Unix, and not on Windows.

That's fine.  I never disagreed with Tim's reasons to choose one platform
over another.  But, as I have already responded, I am not choosing a
platform on which to deploy my application; so, arguments as to which
platform is better are moot.

> If you haven't looked already, have a look at the Volano benchmarks
> (google for it) for some numbers on the scalability and performance of
> different JVM, but note that those numbers won't necessarily reflect the
> performance of YOUR application running on Tomcat.

Thanks for this tidbit.  It is still very early in the process, but
scalability of JVMs is definitely of interest to me.




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



Re: Tomcat performance on Windows versus Linux

2003-12-15 Thread Sean Dockery
Thanks, Tim, for the even handed response.

I'm not looking for a business case to choose one or the other, however; it
is certain that our customers will be deploying our application on both
Linux and Windows (and even Solaris).  I'm just looking to find out whether
or not OS service (TCP/IP stacks, threads, file I/O, etc...) implementation
differences between Linux and Windows have a significant impact on
performance and thus should be weighed accordingly.

I received a response in email from Peter Lin in which he details his
experience (which was very helpful; thank you, Peter).  I've read Peter's
article about performance tuning and a few other white papers as well, but I
haven't really seen anything in the past that focused on OS differences and
how those differences might affect the recommended approach to profiling and
tuning.

My conclusions from my readings so far:  Slow java code (i.e.: algorithms)
will be slow on any platform; change the implementation to make it faster.
Configurable behaviour dependent upon OS services (TCP/IP stacks, threads,
file I/O, etc...) should be tuned for the platform on which the application
will live.

PS:  I was sad to learn that the Tomcat Performance Handbook publishing date
would be postponed.  I would be thrilled if either you or Peter could tell
me that the book will see a printer's press anytime soon.

PPS:  Is there a wiki for this stuff anywhere?

"Tim Funk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [I hate saying this since its rather very much like flambait but...]
>
> If its worth anything, I haven't had enough load on any of our apps to
know
> whether Linux or Windows is better. Instead, look at:
> *** - Maintenance - If your a windows shop - stay windows ***
> - Debugging - I think troubleshooting is easier on *nix systems (YMMV)
> - Comfort - If your comfortable with unix concepts - linux might be easier
> than windows
>
> -Tim
>
> Sean Dockery wrote:
>
> > I am planning to profile a web application on Windows XP (my development
> > platform).  I am curious as to whether or not different components in
Tomcat
> > and the JVM will behave differently (in a relative comparison) on Linux
> > (production platform) than Windows.
> >
> > For example, I have had a person tell me that threads under Linux are
more
> > performant than threads under Windows--leading to the corollary that web
> > applications under Linux are more performant than web applications under
> > Windows on the same hardware.  My guess is that this claim is based upon
the
> > supposition that thread/context switches under Linux are faster than
under
> > Windows.  I find the claim rather dubious because I've never seen data
to
> > support the claim, but doubt is not certainty.
> >
> > Is there any evidence that this claim and other component performance
> > differences between the Windows and Linux platform exist and are
significant
> > enough to throw my performance measurements out the "window".  :-)
> >
> > My concern is that I'll profile the application under Windows and tune
it,
> > but then find that my gains aren't as significant or maybe even
worthless
> > under Linux.




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



Tomcat performance on Windows versus Linux

2003-12-15 Thread Sean Dockery
I am planning to profile a web application on Windows XP (my development
platform).  I am curious as to whether or not different components in Tomcat
and the JVM will behave differently (in a relative comparison) on Linux
(production platform) than Windows.

For example, I have had a person tell me that threads under Linux are more
performant than threads under Windows--leading to the corollary that web
applications under Linux are more performant than web applications under
Windows on the same hardware.  My guess is that this claim is based upon the
supposition that thread/context switches under Linux are faster than under
Windows.  I find the claim rather dubious because I've never seen data to
support the claim, but doubt is not certainty.

Is there any evidence that this claim and other component performance
differences between the Windows and Linux platform exist and are significant
enough to throw my performance measurements out the "window".  :-)

My concern is that I'll profile the application under Windows and tune it,
but then find that my gains aren't as significant or maybe even worthless
under Linux.





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



Re: Can use Ant to deploy to localhost

2003-11-02 Thread Sean Dockery
Or use 127.0.0.1 instead of localhost as the machine name.

"Mike Klein" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Steven Woody wrote:
>
> >I'v not managed to deploy an application to Tomcat using Ant's 
task.  It always reports a UnknownHostNameException.  I'v checked the 'url'
property, that is 'http://localhost:8080/manager', and be sure that is
right.
> >
> >What do I do?
> >
> >--
> >Steven Woody
> >[EMAIL PROTECTED]
> >
> I've had localhost expanded to localhost.localdomain...make sure this is
> in your hosts file too.
>
>
> mike


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



RE: Re[2]: Virtual host and app

2003-11-02 Thread Sean Dockery
The context path, or simply path, is the logical path under which your
application is deployed.  The context path is part of the URL that is passed
to the web browser.  For example:

http://localhost:8080/path/

docBase is the physical path in the file system where your web application
is located.

I would instead try path="/PruebaJavier" (or perhaps just path="/") in your
Context node.  Then access your web application with
http://pjkt:8080/PurebaJavier (or just http://pjkt:8080/ if you used
path="/").

The JVM_Bind error indicates that something is already listening on port
8080 on your machine.  Is Tomcat already running?


-Original Message-
From: Javier [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 02, 2003 14:28
To: Tomcat Users List
Subject: Re[2]: Virtual host and app


On 02/11/2003 at 13:34 Sean Dockery wrote:

>You need a Context node in your Host for the default context.
>


Thanks for your reply.

I've tried to get a Context setting in many ways but I give up...

If I've my application in

webapps
+--PruebaJavier
   +--images
   +--WEB-INF
  +--classes
 +--listeners
 +--filters
 +--compressionFilters
 +--util

How could I get a well configured context ?

I made



but I really don't understand difference between path and docBase (after
read documentation). Also, I want to know wich is the equivalent setting
for Apache DirectoryIndex.

And as last problem...I receive the following error:

--
Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
:286)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184)
at
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:13
26)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:633
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)

at org.apache.catalina.startup.Catalina.load(Catalina.java:531)
at org.apache.catalina.startup.Catalina.load(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396)
02-nov-2003 22:21:05 org.apache.catalina.startup.Catalina load
GRAVE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:13
28)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:633
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)

at org.apache.catalina.startup.Catalina.load(Catalina.java:531)
at org.apache.catalina.startup.Catalina.load(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396)

--

And I don't know why it's produced...

Any help will be welcome






-
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]



Problems launching Tomcat 4.1.29...

2003-11-02 Thread Sean Dockery
Sorry if this is a mailing list repost, I attempted to post this through
gmane.org and received a message bounced error from the Jakarta list server.

Sean Dockery
Certified Java Web Component Developer
[EMAIL PROTECTED]

"Sean Dockery" wrote in message news:<[EMAIL PROTECTED]>...
> It appears that Tomcat 4.1.29 brings the MBeans architecture (from Tomcat
> 5.x) into its invocation process.  I'm not sure if it was intentional to
> bring the MBeans architecture into Tomcat 4.1.x or not...
>
> I discovered this when I attempted to start Tomcat 4.1.29 using the Sysdeo
> Tomcat Launcher plug-in for Eclipse.  I had to tell the Tomcat Launcher
> (Windows/Preferences/Tomcat) to treat Tomcat 4.1.29 as a Tomcat 5.x
version.
>
> Hypothetical question:  Will application servers which run Tomcat 4.1.x
> embedded break if they are upgraded to Tomcat 4.1.29?  Just a thought (and
> perhaps a caveat).


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



Re: Virtual host and app

2003-11-02 Thread Sean Dockery
You need a Context node in your Host for the default context.

"Javier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi
>
> I'm new to Tomcat 5 and I trying to get my first virtual host working.
>
> Then I tried to make a test by simply make a HelloWorld servlet deployed
in
> PruebaJavier directory (below webapps) and I configured Tomcat like this:
>
> host in server.xml
> 
> autoDeploy="true">
>directory="logs"  prefix="pjkt_access_log." suffix=".txt"
>  pattern="common" resolveHosts="false"/>
>   directory="logs"  prefix="pjkt_error_log." suffix=".txt"
> timestamp="true"/>
>
>
> -
>
>
> pjkt is name asociated with 127.0.0.1 ip address in host files (in my
> WinXP).(it's a dirty way I use to have virtual hosts in my winXP).
>
>
> In webapps/PruebaJavier/WEB-INF I've a web.xml file like this:
>
> -
> 
>
> Prueba Javier
> 
>   Prueba Javier
> 
>
>
> 
> 
> listeners.ContextListener
> 
> 
> listeners.SessionListener
> 
>
> 
>
> 
> HelloWorldExample
> HelloWorldExample
> 
>
>
> 
> 
>
>
> Now I tried to run http://pjkt:8080/HelloWorldExample and nothing happens
> !!! No errors in log...nothing to see
>
>
> What I did wrong ??
>
> How could I configure a simple vhost and how could I configure my servlet
> as default index as I made with Apache with my php applications ? (I dont
> want to make jsp files).
>
> Thank in advance !
>
>
> 




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



Problems launching Tomcat 4.1.29...

2003-11-02 Thread Sean Dockery
It appears that Tomcat 4.1.29 brings the MBeans architecture (from Tomcat
5.x) into its invocation process.  I'm not sure if it was intentional to
bring the MBeans architecture into Tomcat 4.1.x or not...

I discovered this when I attempted to start Tomcat 4.1.29 using the Sysdeo
Tomcat Launcher plug-in for Eclipse.  I had to tell the Tomcat Launcher
(Windows/Preferences/Tomcat) to treat Tomcat 4.1.29 as a Tomcat 5.x version.

Hypothetical question:  Will application servers which run Tomcat 4.1.x
embedded break if they are upgraded to Tomcat 4.1.29?  Just a thought (and
perhaps a caveat).

-- 
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com






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



Re: 4.1.18 won't unpack my .war file

2003-02-18 Thread Sean Dockery
>From what you have described, it is not the WAR file itself that is the
problem.  It is a configuration problem with naming the WAR or deploying the
web application.

What does your build.properties (or build.xml) file define ${context} to be?
(Remember that case matter here.)


"Wendy Smoak" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Any other ideas on why Tomcat doesn't like *this* particular .war file?
>
> It gets weirder.  If while Tomcat is running, I rename 'bendev.war' to
> 'abc.war', Tomcat immediately sees it, expands it and deploys the new
> webapp.
>
> (It was a nice experiment to prove that I have not hard coded the context
> name anywhere in my app, because it all works fine under the 'abc' context
> name. :)
>
> This is on my desktop Win2000 machine, and I'm an administrator on it, so
I
> don't think I could be having file permission problems.  (The file is
> neither hidden nor read-only according to the properties.)
>
> I did have a bendev.xml file in webapps (contents below) but I've tried it
> without that with no change.
> 
>className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_bendev_log."
> suffix=".txt"
> timestamp="true" />
> 
>
> There's nothing in the global web.xml or server.xml that's specific to the
> 'bendev' context.  (The only thing I've changed is the port number from
8081
> to 80, anything else I do in a ${context}.xml file as above or in the
> context-level web.xml file.
>
> It can't not like the *name*, that's just nuts!  (I just know this is
going
> to turn out to be something simple and really embarrassing...)
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
>




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




Re: Is server.xml DTD case-sensitive?

2003-02-18 Thread Sean Dockery
Um.  Why can't it have a DTD?

"Shapira, Yoav" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Howdy,
Also note that server.xml doesn't and can't have a DTD/schema.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Lukasz Szelag [mailto:[EMAIL PROTECTED]]
>Sent: Friday, February 14, 2003 1:57 PM
>To: [EMAIL PROTECTED]
>Subject: Is server.xml DTD case-sensitive?
>
>Hello,
>
>I have noticed that resource parameters are ignored when declared as
>follows:
>
>   type="javax.mail.Session"/>
>
>   
>
>mail.smtp.host
>smtp.dsl.net
>
>
>
>As opposed to:
>
>   type="javax.mail.Session"/>
>
>
>
>mail.smtp.host
>smtp.dsl.net
>
>
>
>(The effect of the first example is that "mail.smtp.host" is not set
and
>still holds its initial value of "localhost").
>
>Although the "parameter" element in Tomcat docs is written in lowercase
I
>thougth that it didn't matter. Does anyone know if
>this behavior is intentional or it is a bug? Looks like it is a bug
since
>there were no parsing errors reported by Tomcat.
>
>Lukasz Szelag



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: JDBC Realm problem

2003-02-18 Thread Sean Dockery
Hello, Barley.

>From the HOW-TO from 4.1's documentation:

"Place a copy of the JDBC driver you will be using inside the
$CATALINA_HOME/server/lib directory (if you do not need it visible to web
applications) or $CATALINA_HOME/common/lib (if it will be used both by
Tomcat 4 and by your apps). Note that only JAR files are recognized!"

>From the HOW-TO from 3.3's documentation:

"- Make sure that the JDBC driver is in the lib/container directory."

By the way, both 3.3 and 4.1 JDBCRealm declarations accept connectionName
and connectionPassword attributes wherein you can assign a database username
and password for the connection.  Try using those attributes instead of
embedding the username and password in connectionURL.

Good luck.

--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Barley" <[EMAIL PROTECTED]> wrote in message
003001c2d774$cfbec780$0100a8c0@glamdring">news:003001c2d774$cfbec780$0100a8c0@glamdring...
> I am unable to start Tomcat with a JDBC Realm
> configured. I am guessing it is because Tomcat can't
> find the JDBC driver, but it should be able to. I have
> the driver in shared/lib and shared/classes. Here is my
> Realm configuration from server.xml:
>
> 
> className="org.apache.catalina.realm.JDBCRealm"
> driverName="org.gjt.mm.mysql.Driver"
>
> connectionURL="jdbc:mysql://localhost/dbmis?user=uname&
> amp;password=pass"
> userTable="users"
> userNameCol="userlogin"
> userCredCol="userpass"
> userRoleName="usergroups"
> roleNameCol="groupname"
> debug="99"
> />
>
> I added the %amp; when Tomcat wouldn't start because of
> an XML error when I had a plain '&' in there.
>
> This is the relevant section of catalina.out:
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.18
> Catalina.start: LifecycleException:  Exception opening
> database connection:  java.sql.SQLException:
> org.gjt.mm.mysql.Driver
> LifecycleException:  Exception opening database
> connection:  java.sql.SQLException:
> org.gjt.mm.mysql.Driver
> at
> org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.jav
> a:681)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerB
> ase.java:1173)
> at
> org.apache.catalina.core.StandardEngine.start(StandardE
> ngine.java:347)
> at
> org.apache.catalina.core.StandardService.start(Standard
> Service.java:497)
> at
> org.apache.catalina.core.StandardServer.start(StandardS
> erver.java:2189)
> at
> org.apache.catalina.startup.Catalina.start(Catalina.jav
> a:512)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.j
> ava:400)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.j
> ava:180)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
> dAccessorImpl.java:61)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
> ingMethodAccessorImpl.java:40)
> at
> java.lang.reflect.Method.invoke(Method.java:335)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
> va:203)
> - Root Cause -
> java.sql.SQLException: org.gjt.mm.mysql.Driver
> at
> org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java
> :606)
> at
> org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.jav
> a:679)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerB
> ase.java:1173)
> at
> org.apache.catalina.core.StandardEngine.start(StandardE
> ngine.java:347)
> at
> org.apache.catalina.core.StandardService.start(Standard
> Service.java:497)
> at
> org.apache.catalina.core.StandardServer.start(StandardS
> erver.java:2189)
> at
> org.apache.catalina.startup.Catalina.start(Catalina.jav
> a:512)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.j
> ava:400)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.j
> ava:180)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
> dAccessorImpl.java:61)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
> ingMethodAccessorImpl.java:40)
> at
> java.lang.reflect.Method.invoke(Method.java:335)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
> va:203)
>
> MySql logs show nothing, so I don't think it's an
> authentication problem or anything like that. I'd
> appreciate any ideas or suggestions anyone has. Thanks
> very much.
>
> Gregg




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




Re: SessionId across webapps in tomcat

2003-02-18 Thread Sean Dockery
Hello, Robin.

What do you mean when you say that your cookie didn't make it across the
divide?  Could you not access your cookie in the other web application?  How
are you trying to synchronize the sessions between the web applications?
Are the web applications running in the same domain?  Are the web
applications running on the same machine in a non-clustered environment?


--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Robin de Villiers" <[EMAIL PROTECTED]> wrote in message
006701c2d79c$b9ba9cc0$dabe24c4@malbec">news:006701c2d79c$b9ba9cc0$dabe24c4@malbec...
Hi

I have a problem with sessions not being carried across multiple webapps.  I
realise that the specification prevents this.  However I have come across
some hacks for this rule.
1. Have a static hashtable in the tomcat classloader space used by
individual webapps.  This works but I have the problem that the JSessionId
isn't carried across webapplications.  So although I can move a value across
the gap, I cannot safely tie a value to a session in order to retrieve the
correct value.
2. Implement the crossContext mechanism used in tomcat. Unfortunately I
don't think this is 'session safe'.  Please correct me if I am wrong.  (So
back to no 1s problem)
3. I've tried adding my own cookie, but my cookie didn't make it across the
'divide' either.
4. carry the value across in the query string.  I can't do this because it
means modifying every link on every application and is a security risk.



I'm thinking of creating a Valve for use with tomcat but I can't afford the
developement time for this.

What I want to do is create an object and place it in the session that
contains user information, group information, skin support, language support
and permissions.

The SingleSignOn doesn't seem to cater for this set of data.  The valve must
filter based on the permissions in this object.  And the object must be in
the session
for web pages to access in order to present only-allowed links.  I'm using
ldap to store all of this information.  Finally I'm not interested in
specifying security constraints in the web.xml file because I want to
specify this stuff in LDAP related to a user's role.

The reason I want this in LDAP is for maintainance purposes.


So please send me any comments either on preserving a session id accross
webapps, or on the applicability of using a Valve or ease or difficulty of
developing one for use in this context.


I would appreciate any help.

Robin

PS I've tried resin, but have had similar results.













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




Re: jsp issues

2003-02-18 Thread Sean Dockery
When you re-installed Tomcat, did you make sure to remove all folders at
$CATALINA_HOME and below?


--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com


"Brian P. McLoughlin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've recently installed Tomcat on my local machine, and I'm having some
> problems.  I'm using tomcat 4.0.4 with j2sdk 1.4.1, and at first it seemed
> to be working, but once I created my own webapp with a virtually empty
> web.xml (), Tomcat started crashing on JSP pages.  I can
no
> longer view any JSP pages, even those that came with Tomcat, and when I
try
> the below message is displayed.  I've tried reinstalling Tomcat, but this
> did not help.  Any suggestions would be appreciated.
>
>
> -Brian
>
> 
> Error:
>
> message Internal Server Error
>
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
> at org.apache.catalina.core.StandardWrapper.loadServlet
> (StandardWrapper.java:946)
> at org.apache.catalina.core.StandardWrapper.allocate
> (StandardWrapper.java:655)
> at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:214)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:943)
> at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:190)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke
> (AuthenticatorBase.java:475)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.valves.CertificatesValve.invoke
> (CertificatesValve.java:246)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:943)
> at org.apache.catalina.core.StandardContext.invoke
> (StandardContext.java:2347)
> at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke
> (ErrorDispatcherValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.valves.AccessLogValve.invoke
> (AccessLogValve.java:468)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:943)
> at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:943)
> at org.apache.catalina.connector.http.HttpProcessor.process
> (HttpProcessor.java:1027)
> at org.apache.catalina.connector.http.HttpProcessor.run
> (HttpProcessor.java:1125)
> at java.lang.Thread.run(Thread.java:536)
>
>
> root cause
>
> java.lang.NoSuchMethodError: javax.servlet.ServletContext.getResourcePaths
> (Ljava/lang/String;)Ljava/util/Set;
> at org.apache.jasper.compiler.TldLocationsCache.processJars
> (TldLocationsCache.java:202)
> at org.apache.jasper.compiler.TldLocationsCache.
> (TldLocationsCache.java:139)
> at org.apache.jasper.EmbededServletOptions.
> (EmbededServletOptions.java:350)
> at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
> at org.apache.catalina.core.StandardWrapper.loadServlet
> (StandardWrapper.java:918)
> at org.apache.catalina.core.StandardWrapper.allocate
> (StandardWrapper.java:655)
> at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperVal

Re: where to put web.xml

2003-02-18 Thread Sean Dockery
Hello, Yasar.

"yasar tekin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 1. where to put web.xml ý tried all directories

You are obviously lying.  If you had indeed tried every directory, you would
have stumbled across the correct directory and it would have worked.  :-)

Put web.xml in your /WEB-INF directory off of the root directory of your web
application.  Note that WEB-INF is case sensitive.

> 2. when we modify a class file to see the changes i need to restart tomcat
> is there a way to stop that

The best way is to "reload" your web application using the Tomcat manager
application.  You can alternatively set Context.reloadable to true for your
web application in your server.xml file.

> thanks


--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com




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




Re: 4.1.18 won't unpack my .war file

2003-02-18 Thread Sean Dockery
Doh!  Forget what I said about Context.unpackWARs--unpackWARs is a Host
thing.  If struts-example.war unpacked successfully under the same Host,
this isn't the problem.

"Sean Dockery" <[EMAIL PROTECTED]> wrote in message
b2ts7v$arm$[EMAIL PROTECTED]">news:b2ts7v$arm$[EMAIL PROTECTED]...
> Hello, Wendy.
>
> What happens if you don't use zipfileset?
>
> Also, confirm that you have unpackWARs set on your Context in
> $CATALINA_HOME/conf/server.xml.  Like this:
>
> 
>   ...
> 
>
> What does zipfileset do?  If it compresses the targets, you can't use
> it--WAR files are not compressed archives.
>
>
> --
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
> "Wendy Smoak" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > First let me say that it _does_ properly deploy and unpack the
> > 'struts-example.war' file, so I know there must be something wrong with
> > mine.
> >
> > I'm using this to build the .war file:
> >
> > 
> >  >  webxml="config/web.xml">
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> > 
> >
> > If I put the resulting .war file into 'webapps' and start Tomcat,
nothing
> > happens.  I see this in the log:
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Starting
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Processing start(),
current
> > available=false
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default
> Resources
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Resources start failed:
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring non-privileged
> > default Loader
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default
Manager
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Processing standard
> container
> > startup
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Context startup failed due
> to
> > previous errors
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Exception during cleanup
> after
> > start failed
> > LifecycleException:  Container StandardContext[/bendev] has not been
> started
> >
> > If I create the webapps/bendev directory and use WinZip to unzip the
.war
> > file into it, then everything works fine.  From this I infer that all
the
> > parts of my .war file are in the right place.
> >
> > What could be stopping it from unpacking just this one .war file?
> >
> > --
> > Wendy Smoak
> > Applications Systems Analyst, Sr.
> > Arizona State University PA Information Resources Management
> >




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




Re: 4.1.18 won't unpack my .war file

2003-02-18 Thread Sean Dockery
Hello, Wendy.

What happens if you don't use zipfileset?

Also, confirm that you have unpackWARs set on your Context in
$CATALINA_HOME/conf/server.xml.  Like this:


  ...


What does zipfileset do?  If it compresses the targets, you can't use
it--WAR files are not compressed archives.


--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Wendy Smoak" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> First let me say that it _does_ properly deploy and unpack the
> 'struts-example.war' file, so I know there must be something wrong with
> mine.
>
> I'm using this to build the .war file:
>
> 
>   webxml="config/web.xml">
>   
>   
>   
>   
>   
>   
>   
> 
>
> If I put the resulting .war file into 'webapps' and start Tomcat, nothing
> happens.  I see this in the log:
> 2003-02-18 10:38:37 StandardContext[/bendev]: Starting
> 2003-02-18 10:38:37 StandardContext[/bendev]: Processing start(), current
> available=false
> 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default
Resources
> 2003-02-18 10:38:37 StandardContext[/bendev]: Resources start failed:
> 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring non-privileged
> default Loader
> 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default Manager
> 2003-02-18 10:38:37 StandardContext[/bendev]: Processing standard
container
> startup
> 2003-02-18 10:38:37 StandardContext[/bendev]: Context startup failed due
to
> previous errors
> 2003-02-18 10:38:37 StandardContext[/bendev]: Exception during cleanup
after
> start failed
> LifecycleException:  Container StandardContext[/bendev] has not been
started
>
> If I create the webapps/bendev directory and use WinZip to unzip the .war
> file into it, then everything works fine.  From this I infer that all the
> parts of my .war file are in the right place.
>
> What could be stopping it from unpacking just this one .war file?
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
>




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




Re: AW: modified jsp-files and jasper2

2003-02-16 Thread Sean Dockery
Hello, Sven.

Try setting Context.reloadable to true, restart Tomcat, and see if that
works for you.



"Sven Köhler" <[EMAIL PROTECTED]> wrote in message
b2m0cd$9pb$[EMAIL PROTECTED]">news:b2m0cd$9pb$[EMAIL PROTECTED]...
> >> I just checked the web.xml file in $CATALINA_HOME/conf/web.xml.  It
> >> suggests
> >> the "development" is the default mode in which Jasper operates.  Have
you
> >> tried leaving development, reloading, and checkInterval out of your
> >> web.xml
> >> file to see if the standard behavior works?
> >
> > The tomcat-docs also state, that development should be false in
> > production-environment. background should be used, because it's more
> > efficient.
>
> Today i uploaded new pages, and there we're compiled fine, than i
> uploaded some updated pages, and they weren't compiled at all.
> I tried the reload-button in the manager-app, nothing happened.
>
> > Even with development=true i remember some cases, where tomcat didn't
> > reload the pages, and i had to hit the reload-button.
>
> I thought of what you said, and set the development-option to true, and
> restarted tomcat.
> It didn't help. I still saw the old pages. Even after that restart
> Tomcat didn't recompile my pages!!!
>
> >>> Hitting the reload-button in the manager-app always helps.
>
> As i know now, this doesn't help always, but nearly always.
>
> As development==false implied, that background-compilation is disabled,
> nothing should keep me from seeing the new page!
> the opposite of background-compilation (development=true) is that the
> page is recompiled before the http-request is executed.
>
> Any hints?
>
> I think i will submit a Bug-Report.




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




Re: help with client certificates

2003-02-16 Thread Sean Dockery
No.  I was talking about uploading a file through the HTML file upload.

"Tony Dahbura" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks Sean.  I am not sure how to have them upload their cert through a
form
> upload.  Is there a standard API (works in most browsers to cause this?)
>
> I remember netscape had a javascript call to do form signing.
>
> Tony
>
>
> Sean Dockery wrote:
>
> > With regard to providing a certificate to the web site, but not
> > authenticating per se:
> >
> > With regard to writing your own custom realm, it seems reasonable--but I
> > would not have thought something like this would be so difficult.
> >
> > Instead of having CLIENT-CERT authentication, you might consider simply
> > having users submit their certificates through a form upload.  It might
> > avoid some of the problems that you're facing.
> >
> > With regard to logging out a user:
> >
> > The method that I presented works for FORM authentication only, as
BASIC,
> > DIGEST, and CLIENT-CERT deal with (usually) readily available
credentials.
> > That, Internet Explorer and Netscape will remember usernames and
passwords
> > and continue to use the same authentication information until it
> > fails--before prompting you for a new username and password.  I would
> > speculate that they behave in the same manner with respect to a
certificate
> > credential.  I'm not sure how to get browsers to reset their sessions on
the
> > client-side.
> >
> > - Original Message -
> > From: "Tony Dahbura" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 11, 2003 16:37
> > Subject: Re: help with client certificates
> >
> > > That is correct!  It is prompting me for my certificate it is just
telling
> > the
> > > following on a tomcat error page:
> > >
> > > type Status report
> > >
> > > message Access to the requested resource has been denied
> > >
> > > description Access to the specified resource (Access to the requested
> > resource
> > > has been denied) has been forbidden.
> > >
> > >
> > > I am thinking I may need to write a custom realm module that takes a
> > certificate
> > > and just assigns a dummy role to any user.  Little bit convoluted to
get
> > this
> > > done.?
> > >
> > >
> > > The second thing I am trying to do is logout the user (once they come
in
> > with
> > > their cert).  Doing a session.invalidate() does not cause the browser
to
> > > reprompt the user for their certificate information upon rehitting the
> > site-was
> > > wondering how to do that as well.
> > >
> > > Tony
> > >
> > >
> > > Sean Dockery wrote:
> > >
> > > > Let me see if I understand what problem you are experiencing...
> > > >
> > > > By not having role-names, CLIENT-CERT authentication is not being
> > enforced?
> > > > Is that what you mean?
> > > >
> > > > Sean Dockery
> > > > [EMAIL PROTECTED]
> > > > Certified Java Web Component Developer
> > > > Certified Delphi Programmer
> > > > SBD Consultants
> > > > http://www.sbdconsultants.com
> > > >
> > > > - Original Message -
> > > > From: "Tony Dahbura" <[EMAIL PROTECTED]>
> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, February 11, 2003 10:57
> > > > Subject: Re: help with client certificates
> > > >
> > > > > Sean:
> > > > > This matches my xml file to a tea except I also have:
> > > > > 
> > > > >   CLIENT-CERT
> > > > >  
> > > > >
> > > > > The problem I am trying to solve is the fact that I do not have
any
> > > > > role-names.  I need to have the application request a certificate
from
> > the
> > > > user
> > > > > when they hit a servlet and just accept it.  I basically want to
> > blindly
> > > > let a
> > > > > user in but require them to present a certificate.  The purpose of
the
> > > > > application I am writing needs to access data within the
certificate
> > and I
> > > > do
> > > > > not know who the users are until they present the certificat

Re: how to creat a developer dirctory

2003-02-14 Thread Sean Dockery
Can you find the admin.xml and manager.xml files in your webapps folder?

- Original Message -
From: "Xiongfei Wang" <[EMAIL PROTECTED]>
To: "Turner, John" <[EMAIL PROTECTED]>
Cc: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 15:52
Subject: RE: how to creat a developer dirctory


> Thanks
>
> But what i can not find /manager or /admin in server.xml?
>
> I use
> "grep manager server.xml"
> and
> "grep admin server.xml"
>
> both return nothing. where can i find how /manager and /admin are set up?
>
>
> J. P.
>
> On Fri, 14 Feb 2003, Turner, John wrote:
>
> >
> > A Context can be anywhere.  For example, check out the /admin and the
> > /manager Contexts in Tomcat.  They're not under CATALINA_HOME/webapps at
> > all.
> >
> > Point your Context wherever you want.
> >
> > John
> >
> > -Original Message-
> > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 14, 2003 2:42 PM
> > To: Tomcat Users List
> > Subject: RE: how to creat a developer dirctory
> >
> >
> > Thank you for your respone.
> > I read the document it helps a lot.
> > but i hava one more qestion. It seems to me that all servlet class must
got
> > someplace under $CATLANA_HOME/webapps, my question is can i set my
> > development directory somewhere outside the $CATALANA_HOME?
> >
> >
> > On Fri, 14 Feb 2003, Turner, John wrote:
> >
> > >
> > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
> > >
> > > John
> > >
> > > -Original Message-
> > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, February 14, 2003 12:43 PM
> > > To: Tomcat Users List
> > > Subject: how to creat a developer dirctory
> > >
> > >
> > >
> > > I have redhat 7.3  linux wiht apache(1.3.27)-tomcat(4.1.18) on it. is
> > > there a way i can put my develop servlets on directory say
> > > /var/www/servlets instead of
> > > /usr/local/jakarta-tomcat-4.1.18-LE-jdk14/webapps?
> > > if i can how can i do it. Can somebody point to some website i can
learn
> > how
> > > to do that?
> > >
> > > Thanks
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > ---
> > >
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
> > >
> > >
> > > ---
> > >
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
> > >
> > >
> > > -
> > > 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]
> >
> > ---
> >
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
> >
> >
> > ---
> >
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
> >
> >
> > -
> > 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: Is server.xml DTD case-sensitive?

2003-02-14 Thread Sean Dockery
Yes.  server.xml is case sensitive.  All XML documents are case sensitive.

Tomcat may not have reported parsing errors because it isn't an XML
validator and your server.xml is well-formed.  Tomcat constructed its XML
DOM and simply looked for the nodes "name" and "value" under parameter.
That there were "Name" and "Value" nodes may be in violation of the DTD, but
it is still a well-formed document...

You could run an XML validator against to server.xml yourself to detect
errors.

- Original Message -
From: "Lukasz Szelag" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 11:57
Subject: Is server.xml DTD case-sensitive?


Hello,

I have noticed that resource parameters are ignored when declared as
follows:

   

   

mail.smtp.host
smtp.dsl.net



As opposed to:

   



mail.smtp.host
smtp.dsl.net



(The effect of the first example is that "mail.smtp.host" is not set and
still holds its initial value of "localhost").

Although the "parameter" element in Tomcat docs is written in lowercase I
thougth that it didn't matter. Does anyone know if
this behavior is intentional or it is a bug? Looks like it is a bug since
there were no parsing errors reported by Tomcat.

Lukasz Szelag



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




Re: Form based security

2003-02-14 Thread Sean Dockery
I could not see an easy way to determine if you were authenticated, however,
using the struts tag libraries.  The request tag library in the commons
project does provide a means for creating a request bean, which you could
then logic:test "remoteUser" against "", but that's not exactly obvious when
you want to do a simple...


Welcome, !


Welcome, Guest!


:-)

- Original Message -
From: "Raible, Matt" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 08:56
Subject: RE: Form based security


> Struts can hook into container-managed security - it has support for roles
> in it's  tag, in a "roles" attribute on it's action
> mappings, and also in Tiles for displaying different pages based on roles.
> It really does nothing special - just hooks into what's already there.  If
> you're using form-based authentication - Struts will play nicely with it.
>
> HTH,
>
> Matt
>
> > -Original Message-
> > From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 13, 2003 8:52 AM
> > To: Tomcat Users List
> > Subject: Re: Form based security
> >
> >
> > Ok, I've got it now...
> >
> > Thanks for the information.
> >
> > Now my manager is saying he wasnted it all done in Struts and
> > that Struts
> > has a security model that I should be using.  Is he wrong?  I
> > though struts
> > was just tag libs and an MVC for hitting business logic.
> >
> > Time for me to learn struts now I guess...
> >
> > --
> > Sloan
> >
> > - Original Message -
> > From: "Barney Hamish" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Thursday, February 13, 2003 10:33 AM
> > Subject: RE: Form based security
> >
> >
> > > I think you've got the wrong idea about how the form-based
> > security works.
> > > It is counter-intuitive I agree but anyway...
> > >
> > > Firstly the login form should not be in the secure area.
> > > Define as the default page something in the secure area.
> > > When the user tries to go to this default page tomcat will
> > redirect them
> > to
> > > the login page.
> > > After they've logged in successfully Tomcat wil redirect
> > them to the page
> > > they originally asked for (i.e. the default page).
> > >
> > > You don't need a filter to do this. Tomcat does it
> > automatically for you.
> > >
> > > Hamish
> > >
> > > > -Original Message-
> > > > From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, February 13, 2003 4:32 PM
> > > > To: Tomcat Users List
> > > > Subject: Re: Form based security
> > > >
> > > >
> > > > Ok,  I figured most of the things out.
> > > >
> > > > My next question (along the same lines) is this:
> > > >
> > > > I have a link to the login.jsp which is now in a
> > > > security-constraint area.
> > > > When they use the login.jsp successfully it complains about:
> > > > Invalid direct reference to form login page
> > > >
> > > > How do I use the login page and define a page for a
> > successful login?
> > > >
> > > > Thanks!
> > > >
> > > > --
> > > > Sloan
> > > >
> > > > - Original Message -
> > > > From: "Sloan Seaman" <[EMAIL PROTECTED]>
> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > Sent: Thursday, February 13, 2003 10:01 AM
> > > > Subject: Re: Form based security
> > > >
> > > >
> > > > > I have a filter set up so that if they don't go to the
> > index.jsp or
> > > > > login.jsp it will redirect them to the login.jsp.
> > > > > (is that the best way?)
> > > > >
> > > > > So basically they either go to the index.jsp or login.jsp
> > > > page. How do I
> > > > > list a page as secure?
> > > > >
> > > > > Do I have to wirte code for the j_security_check or is this
> > > > something
> > > > within
> > > > > tomcat?
> > > > >
> > > > > - Original Message -
> > > > > From: "Barney Hamish" <[EMAIL PROTECTED]>
> > > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > > Sent: Thursday, February 13, 2003 9:50 AM
> > > > > Subject: RE: Form based security
> > > > >
> > > > >
> > > > > > Are you going directly to the login page? If so then you
> > > > need to go to a
> > > > > > page in that's listed as being secure. You will then be
> > > > forwarded to the
> > > > > > login page. When you've logged in successfully then
> > you will be
> > > > forwarded
> > > > > to
> > > > > > the page you originally requested.
> > > > > > Hamish
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: Thursday, February 13, 2003 3:48 PM
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: Form based security
> > > > > > >
> > > > > > >
> > > > > > > I'm attempting to do form based security and I keep
> > getting a
> > > > > > > 404 error when
> > > > > > > I click the submit button.
> > > > > > >
> > > > > > > I'm guessing I'm missing some type of configuration in the
> > > > > > > server.xml.
> > > > > > >
> > > > > > > The form I am using is:
> > > 

Re: Form based security

2003-02-14 Thread Sean Dockery
Redirecting all 400 errors to your index page is a questionable practice
because not all 400 (SC_BAD_REQUEST) errors are "Invalid direct reference
..." errors.  I wish that there was a legitimate configuration change to
enable you to bookmark a login.jsp page--such as a j_success_url parameter
which instructs Tomcat where to send users if not doing an automated login
process.

PS:  Check the font size defined in the blog stylesheets.  They were huge in
IE6.

- Original Message -
From: "Raible, Matt" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 08:48
Subject: RE: Form based security


> Here's how I solved your issue:
>
> http://tinyurl.com/5s4e
>
> HTH,
>
> Matt
>
> > -Original Message-
> > From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 13, 2003 8:32 AM
> > To: Tomcat Users List
> > Subject: Re: Form based security
> >
> >
> > Ok,  I figured most of the things out.
> >
> > My next question (along the same lines) is this:
> >
> > I have a link to the login.jsp which is now in a
> > security-constraint area.
> > When they use the login.jsp successfully it complains about:
> > Invalid direct reference to form login page
> >
> > How do I use the login page and define a page for a successful login?
> >
> > Thanks!
> >
> > --
> > Sloan
> >
> > - Original Message -
> > From: "Sloan Seaman" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, February 13, 2003 10:01 AM
> > Subject: Re: Form based security
> >
> >
> > > I have a filter set up so that if they don't go to the index.jsp or
> > > login.jsp it will redirect them to the login.jsp.
> > > (is that the best way?)
> > >
> > > So basically they either go to the index.jsp or login.jsp
> > page. How do I
> > > list a page as secure?
> > >
> > > Do I have to wirte code for the j_security_check or is this
> > something
> > within
> > > tomcat?
> > >
> > > - Original Message -
> > > From: "Barney Hamish" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > Sent: Thursday, February 13, 2003 9:50 AM
> > > Subject: RE: Form based security
> > >
> > >
> > > > Are you going directly to the login page? If so then you
> > need to go to a
> > > > page in that's listed as being secure. You will then be
> > forwarded to the
> > > > login page. When you've logged in successfully then you will be
> > forwarded
> > > to
> > > > the page you originally requested.
> > > > Hamish
> > > >
> > > > > -Original Message-
> > > > > From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, February 13, 2003 3:48 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Form based security
> > > > >
> > > > >
> > > > > I'm attempting to do form based security and I keep getting a
> > > > > 404 error when
> > > > > I click the submit button.
> > > > >
> > > > > I'm guessing I'm missing some type of configuration in the
> > > > > server.xml.
> > > > >
> > > > > The form I am using is:
> > > > > 
> > > > >   
> > > > >   
> > > > >   
> > > > > 
> > > > >
> > > > >
> > > > > And I have the following in my web.xml
> > > > >  
> > > > >  FORM
> > > > >   
> > > > >/login.jsp
> > > > >/login-error.jsp
> > > > >   
> > > > >  
> > > > >
> > > > > Can anyone help me out here?
> > > > >
> > > > > --
> > > > > Sloan
> > > > >
> > > > >
> > > > >
> > -
> > > > > 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]
>
>



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




Re: Context/mapping question

2003-02-14 Thread Sean Dockery
The mapping for the Invoker servlet is disabled in the standard Tomcat
release.  It is disabled by default and I suggest that you leave it that
way.  It is a convenience that could lead to security problems.

Is it currently enabled?  (That is, it is supposed to be encodes in XML
comment delimiters ; is it commented out or not?)

- Original Message -
From: "Jonathan Discount" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 14:29
Subject: RE: Context/mapping question


> Yoav,
>
> Thanks for the input...  I've applied your changes to my server.xml and
> web.xml files but I'm having the same problem: "HTTP Status 500 - No
Context
> configured to process this request".  I've attached my tomcat log.
>
> I see where the log tells me it maps the /mywebapp context (based on the
> appbase, and the presence of my .war file), but I don't see where it maps
> the default context you had me define below.  Is the log supposed to show
> this?
>
> Also, I noticed a "/servlet/*" mapping in the global web.xml file...
mapping
> to the Invoker servlet... do I need to change this so that my servlets get
> picked up with a "/servlet/" pattern?  Or does the global web.xml get
> overridden by my application web.xml file?
>
> Anything else I should look at?
>
> Thanks in advance for your help!
> JD
>
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 14, 2003 9:15 AM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Context/mapping question
>
>
>
> Howdy,
>
> >I'm running Tomcat 4.0.3 in conjunction with Apache 2 via mod_jk on
> Windows
> >2000 and Tru64 platforms.  I've been running a web app this way rather
> >successfully for some time now -- but I'd like to make it compliant
> with
> >the
> >WAR structure to ease deployment... so here's the problem:
>
> Glad to hear it's working well, and glad to hear you're moving to a
> standard and portable WAR structure.  I wish more people would do the
> same.
>
> >I've got my WAR & web.xml files working well for this configuration --
> all
> >servlets are expicitly defined in web.xml and mapped to a simplified
> name -
> >-
> >minus all the package information -- so
> >"com.wcom.mywebapp.servlet.HelloWorld" is simply mapped to
> "/HelloWorld".
>
> Very good practice.
>
> >My server.xml file is ultra-simple:  No contexts are explicitly
> defined.
> >Tomcat automatically generates the "/mywebapp" context at startup.
>
> Once again, very good practice.  Eliminates about half of the questions
> and problems frequently encountered on this list and makes it much
> easier for you to switch servers.
>
> >However, I would like to be able to refer to the same servlet as:
> >http://localhost/servlet/HelloWorld.
>
> This desire requires being on the root context (the one with context
> path "" as opposed to "mywebapp").  Therefore, you WILL need to put an
> explicity context element in your server.xml, which includes:
> 
>
> Moreover, within your web.xml, you will need to add one more
> servlet-mapping:
> 
>   HelloWorldServlet
>   /servlet/HelloWorld
> 
>
> Personally, I don't like having more than one servlet-mapping per
> servlet, but that's just my preference.  The standard allows many
> mappings and tomcat allows many mappings without a problem.
>
> I hope this helps,
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
>
> 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: Context/mapping question

2003-02-14 Thread Sean Dockery
If you change the context path as described below by Yoav, you must also
change the existing servlet mapping...


HelloWorldServlet
/mywebapp/HelloWorld


I think that the real question here should be...  Why are you trying to do
this?  Can you not simply access the servlet via /mywebapp/HelloWorld?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 07:14
Subject: RE: Context/mapping question




This desire requires being on the root context (the one with context
path "" as opposed to "mywebapp").  Therefore, you WILL need to put an
explicity context element in your server.xml, which includes:


Moreover, within your web.xml, you will need to add one more
servlet-mapping:

  HelloWorldServlet
  /servlet/HelloWorld


Personally, I don't like having more than one servlet-mapping per
servlet, but that's just my preference.  The standard allows many
mappings and tomcat allows many mappings without a problem.

I hope this helps,

Yoav Shapira
Millennium ChemInformatics



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: Best practices - dev & deploy?

2003-02-14 Thread Sean Dockery
Up until recently, I followed the process you described because it was a
"sure thing" as far as getting the right JSP pages and classes to load into
Tomcat at run-time.

Since then, Craig M. recommended the approach set out in the Tomcat
application developers guide.  I've been following that process ever since,
and I can vouch for the reliability of the process of reloading applications
without having to restart Tomcat.

You can access the Tomcat application developers guide at...

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/

There were a few hiccups I encountered with the sample build.xml and
build.properties file:

--> The documentation instructs you to define catalina.home and app.name in
build.properties, but those properties are defined in build.xml; I removed
the latter to avoid confusion as to which declarations were taking
precedence.
--> There is a means by which to declare JAR files which should be copied to
the build/WEB-INF/lib folder and included in your classpath.  It was more
convenient for me to copy my JAR files into web/WEB-INF/lib and pick up the
JAR files automatically in the classpath using a fileset tag.

Once set up properly, you can run "ant install" on your build.xml file.
That will create a build folder, copy files from your web folder (supposed
to contain all non-Java files) into the build folder, compile all Java files
in your src folder and copy the class files intto build/WEB-INF/classes,
dynamically mount your app.name context with the build folder as your
docBase.  Immediately, you can test your application using
http://localhost:8080/context/.

If you discover and error, fix it in the appropriate place (either the src
folder or the web folder).  Then run the "ant reload" task, wait a few
seconds for Tomcat to reload your application, and continue your testing.

PS:  Because "ant install" dynamically deploys your webapp into Tomcat
without creating a  in your server.xml file, you will have to run
that task again whenever Tomcat is restarted.  When you are ready to have
your application permanently deployed (or you want more control over your
 attributes), make the change to the server.xml file yourself and
point the docBase at your build folder.

- Original Message -
From: "John Ruffin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 10:32
Subject: RE: Best practices - dev & deploy?


> Thanks PQ - I cleared the cache and reloaded to no avail.  I also closed
the
> brower and re-launched - same thing.
>
> I'm really interested in understanding how people go about testing?
>
> Do you develop in your source area, run Ant, then navigate to your app in
> the browser.  At this point are all your changes visible or is there
> something else that needs to be done?
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 14, 2003 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Best practices - dev & deploy?
>
>
> I guess it was cached. Try close your browser and re-launch it.
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: John Ruffin [mailto:[EMAIL PROTECTED]]
> Sent: February 14, 2003 12:13 PM
> To: 'Tomcat Users List'
> Subject: Best practices - dev & deploy?
>
> I running tc4.1.18, sdk1.4.0_01, struts1.1.b2 on a w2k machine.  TC runs
as
> an NT service.
>
> I created a basic myHello project - just an app with 2 jsps.  Used Ant to
> build and deploy the app but I can't see the changes unless I go through
> this crazy process of:
> (step1) removing the app using Manager
> (step2) stopping the "NT service" - Apache Tomcat4.1
> (step3) deleting the app folder under catalina_home\webapps
> (step3) deleting the appName.war file
> (step4) starting the NT service - Apache Tomcat4.1
> (step5) building the app using Ant - which of course redeploys the app
>
> 
>
> Question: What are some best practices for testing applications?
>
> I feel like I'm reinventing the wheel - there must be an easier way.
>
> BTW, if I make changes to a jsp inside the container I can see the
changes -
> but of course I don't want to do that.
>
> Thanks for your feedback.
>
>
>
> 
> The information in this email is confidential and may be
> legally privileged. It is intended solely for the addressee,
> and access by anyone else is unauthorized.
>
> If you are not the intended recipient, any disclosure,
> copying, distribution or any action taken or omitted to be
> taken in reliance on it, is prohibited and may be unlawful.
>
> If you believe that you have received this email in error,
> please advise us by calling (901) 385 3688, or emailing
> [EMAIL PROTECTED], and then delete this message
> and all copies and backups thereof. Thank you.
> 
>
>
> --

Re: Basic Auth with Apache+Tomcat

2003-02-14 Thread Sean Dockery
No.  That is incorrect.  session.getAttribute("REMOTE_USER") will most
certainly not work.

The HTTP protocol has no concept of sessions; sessions are a hack built on
top of HTTP for the convenience of application developers.  HTTP supports
restricting access to server resources through authentication, and that
authentication information arrives in the form of headers in an HTTP
request.  If you as an application developer want to store authentication
information in your session object, you can do so; but the container will
not.


- Original Message -
From: "Jake Robb" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 15:22
Subject: Re: Basic Auth with Apache+Tomcat


> Seems to me that if Tomcat had that information, it would be in the
Session
> variable, not the Request variable.  See if maybe it's available via
> Session.getAttribute().
>
> http://java.sun.com/products/servlet/2.2/javadoc/
>
> (class name is HttpSession)
>
> -Jake
>
> - Original Message -
> From: "Tim O'Donnell" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, February 13, 2003 5:15 PM
> Subject: Re: Basic Auth with Apache+Tomcat
>
>
> > Jake,
> >
> > Thanks for your reply.
> >
> > You're absolutely right that Tomcat can do the auth instead of Apache
> (which
> > I've done before;  support for it in Tomcat is really great).
> >
> > However, I really need to do it in Apache instead, unfortunately.  We're
> > looking at implementing SunOne's Single Sign On solution (Identity
> Server),
> > and it works via a plug-in to the web server -- Tomcat isn't an option.
> >
> > Any way to access a REMOTE_USER variable set in Apache from Tomcat?
> >
> > Thanks again for your time, and anyone else who can weigh in,
> >
> > Tim
> >
> > On 2/13/03 2:04 PM, "Jake Robb" <[EMAIL PROTECTED]> wrote:
> >
> > > I'm quite sure you can have Tomcat do the auth instead of Apache, and
> then
> > > you'll have access to the variable.
> > >
> > > Try checking the configuration file (web.xml) of the built-in admin
> servlet.
> > > It should contain an example of exactly what you want to do.
> > >
> > > -Jake
> > >
> > > - Original Message -
> > > From: "Tim O'Donnell" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, February 13, 2003 5:00 PM
> > > Subject: Basic Auth with Apache+Tomcat
> > >
> > >
> > >> Hi all,
> > >>
> > >> I was hoping someone here could confirm a suspicion of mine, as I've
> been
> > >> unable to uncover a definitive answer searching other forums (web,
> > > javasoft
> > >> forum, mailing list archives).
> > >>
> > >> I've setup Apache web server to perform basic auth against a webapp
> > >> directory in tomcat. I'm using the jk connector to forward certain
> > > contexts
> > >> and jsp requests to Tomcat. The authentication works as expected.
> However,
> > >> the REMOTE_USER (via request.getRemoteUser() method) environment
> variable
> > >> returns null when I try to access it from Tomcat. That variable,
> however,
> > > is
> > >> populated when I inspect it with the printenv cgi-script running in
> > > Apache.
> > >>
> > >> Is this simply because Apache and Tomcat are two separate containers
> and
> > >> don't share that environment info? Or am I doing something wrong?
> > >>
> > >> I suspect what I'm trying to do isn't possible, but I'd really
> appreciate
> > >> someone confirming this for me.
> > >>
> > >> Thanks for your time,
> > >>
> > >> Tim
> > >>
> > >>
> > >> -
> > >> 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]




Re: An easy one... Default Config in conf/web.xml

2003-02-14 Thread Sean Dockery
Your problem is a deployment problem--not a development problem.  Therefore,
you should only touch files associated with the process of deployment.

Use the Environment declaration in server.xml to define variables which are
specific to a given deployment.

- Original Message -
From: "Andoni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 08:45
Subject: Re: An easy one... Default Config in conf/web.xml


> But that's the way I want it to be.  At the moment my apps are machine
> dependant because they use the
> web-inf/web.xml file but if I could use the server's web.xml file instead
I
> would not have to reconfigure every time I move an app across to my live
> server.
>
> Andoni.
>
>
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 14, 2003 3:38 PM
> Subject: RE: An easy one... Default Config in conf/web.xml
>
>
>
> Howdy,
> Your parameters should be in your web.xml, which is in your war file if
> you're using a war file.  They should not be in the server web.xml (the
> one in conf/web.xml in tomcat 4.x).  They are not part of the server and
> don't belong there.  Putting them there makes your application less
> portable and container-independent, which is a heavy cost.
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> >-Original Message-
> >From: Andoni [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, February 14, 2003 10:32 AM
> >To: Tomcat Users List
> >Subject: An easy one... Default Config in conf/web.xml
> >
> >Hi,
> >
> >I am using sections like that below to store the database url /
> username /
> >password for my server.  I then access these from the code using
> >
> >getInitParameter("database_password");
> >
> >in my code.  What I would like is to move these out to the web.xml file
> in
> >conf/web.xml so that when I move my .war file from the development to
> the
> >live server it just picks up the new url's and passwords automatically.
> >
> >Problem:
> >I can't figure out how to install these sections into the conf/web.xml
> >file.
> >I have tried putting them in the "default" servlet and the "invoker"
> >servlet
> >and also creating a servlet section of it's own but none of these work.
> I
> >want to still be able to have a web.xml for most things (e.g.
> >session-timeout) but just have some things in the default one.
> >
> >
> >  database_password
> >  mypassword123
> >
> >
> >
> >Anybody know the answer?  I'd be very appreciative if you did.
> >
> >Regards,
> >Andoni.
> >
> >
> >-
> >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: AW: modified jsp-files and jasper2

2003-02-14 Thread Sean Dockery
Hi, Sven.

Down below...

- Original Message -
From: "Sven Köhler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 02:04
Subject: Re: AW: modified jsp-files and jasper2


> > It can take up to 15 seconds (default) for Tomcat to poll for changes to
> > class files.  The frequency of how often Tomcat checks can be changed
via
> > the Loader checkInterval property in the containing Context node.
Ensure
> > Context.reloadable and Loader.reloadable are not set to false; they are
true
> > by default.
>
> according to the docs, this config should do:
>
>  
>  jsp
>
org.apache.jasper.servlet.JspServlet
>  
>  logVerbosityLevel
>  WARNING
>  
>  
>  compiler
>  jikes
>  
>  
>  development
>  false
>  
>  
>  reloading
>  true
>  
>  
>  checkInterval
>  10
>  
>  3
>  
>
> BUT:
> 5 minutes ago, i had a case, where it didn't work.
> The page was uploaded an hour ago, but you still couldn't see the
> correct page online. I checked the work-folder, and the jsp-page has
> _not_ been compiled. the old .java and .class file was still there.

I just checked the web.xml file in $CATALINA_HOME/conf/web.xml.  It suggests
the "development" is the default mode in which Jasper operates.  Have you
tried leaving development, reloading, and checkInterval out of your web.xml
file to see if the standard behavior works?

> Hitting the reload-button in the manager-app always helps.

It shouldn't help; it either works or it doesn't.  You should also note that
there can be several seconds lag associated with having Tomcat actually
carry out a reload.

[ Aside:  Does manager/reload fail if Context.reloadable=false? ]

> we also uploaded another update of the same page, and this time, the
> jsp-page was recompiled, and we could see the new page - as it should
> normally be.
>
> The "reloadable" property of the context shouldn't matter, because it's
> for the files in the WEB-INF-folder (it says, whether they can will be
> automatically reloaded or not)
>
> hitting the reload-button in the manager-app shouldn't help at all,
> because the classes generated from JSP-files should be reloaded by Jasper.
>
> Even if i'm wrong, it should always _not_ work, or always work, but not
> like it is now: it works sometimes, but not always

You have not mentioned your reloadable settings in server.xml.  I am
inclined to believe that reloading class files for a web application is
handled in one place--no matter where those file reside.

> > I am uncertain whether or not JSP files are included in this particular
> > check or if there is another layer elsewhere.  But a good guideline is
to
> > wait for at least 60 seconds before testing newly uploaded JSP files.
>
> You also tell me, that the checkInterval-Option of Jasper is completly
> useless? and i would have to wait 60sec?
>
> We waited more than 60sec, but it didn't work.

I suggested 60 seconds for this...

1) There has been a change.
2) Jasper translates the file.
3) Jasper compiles the file.
4) Tomcat takes up to 15 seconds at this point to determine that it needs to
reload a class file.

I wasn't implying that the checkInterval number was useless--just that there
is more processing to reloading a class than mere class file datetime compar
isons.

By your tone, it sounds like you only conducted this experiment once.

If I were you, I would start with the most simple system for base testing
and then add complexity in increments.  Consider goes with these phases:

1) Simple local system...

a) Use a local development machine for this test.
b) Use a serverl.xml file with no reloadable configuration
 and  set to true.
c) Use a web.xml file without org.apache.jasper.servlet.JspServlet
configuration information--use the default configuration.
d) Start Tomcat.
e) Access a jsp file using http://localhost:8080/...
f) Copy a file overtop the existing JSP (or modify the exiting JSP and save
it).
g) Access the jsp file again. (the default "development" configuration
should cause Jasper to translate and compile the JSP file)
h) Wait 15 seconds or so. (for the class reloader to finish its sweep)
i) Access the jsp file again.  (hopefully you will have witnessed a change
here)

Steps h and i may or may not be necessary because I don't know whether or
not Jasper prompts class reloading or lets that happen during standard
processing.

2) Simple remote system...

Same as (1) except that you should try editing the JSP file in place.  Or if
you upload a JSP file, make sure that you "touch" it.  Hopefully you will
see results.

3) More complicated remote system...

Same as (2) except that you should try uploading the JSP file.  Check from a
shell on the file datetime value.

4) Even more complicated remote system...

Here you can start messing with the configurat

Re: AW: modified jsp-files and jasper2

2003-02-13 Thread Sean Dockery
It can take up to 15 seconds (default) for Tomcat to poll for changes to
class files.  The frequency of how often Tomcat checks can be changed via
the Loader checkInterval property in the containing Context node.  Ensure
Context.reloadable and Loader.reloadable are not set to false; they are true
by default.

I am uncertain whether or not JSP files are included in this particular
check or if there is another layer elsewhere.  But a good guideline is to
wait for at least 60 seconds before testing newly uploaded JSP files.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
- Original Message -
From: "Sven Köhler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 07:52
Subject: Re: AW: modified jsp-files and jasper2


> > The web.xml file has settings for reloading jsp pages you might have to
> > change the settings you have there.  Also your browser might be caching
> > the pages so you can also turn off browser caching.
> >
> > For jasper settings see the docs
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html
>
> Thx for the Hint, but the reloading-paramter defaults to true, and i
> haven't set it to false.
>
> I called it a "weired" problem, because it sometimes works, sometimes it
> doesn't. Even partially for some pages it works, for others it doesn't.
>
> My client (which uploads jsp-pages via ftp) calls me one day, and it
> works perfectly after restarting tomcat, and two days later (nobody
> touched any options) and it doesn't work anymore :-(
>
> I'm using Tomcat 4.1.18 under Linux.
>
> Thx
>Sven
>
>
>
> -
> 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 4.1.12 Form authentication with IIS 5

2003-02-13 Thread Sean Dockery
What happens when you move your form-login-page outside of the /admin/
folder?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
- Original Message -
From: "Paul Bothma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 06:11
Subject: Tomcat 4.1.12 Form authentication with IIS 5


> Hi,
>
> I'm using Tomcat 4.1.12 with IIS 5. When I connect directly to
> http://localhost:8080/HP/admin/ the Tomcat FORM authentication works fine,
> but when I try to connect to http://localhost/HP/admin I get the following
> error:
>
> HTTP Status 403 - Access to the requested resource has been denied
>
> --
--
> 
>
> type Status report
>
> message Access to the requested resource has been denied
>
> description Access to the specified resource (Access to the requested
> resource has been denied) has been forbidden.
>
>
> --
--
> 
>
> Apache Tomcat/4.1.12
>
> Here is the relevant extract from my web.xml file:
>
> 
>   HP Administration
>   
>  Protected Area
>  /admin/*
>   
>   
>  HP_admin
>   
> 
>
> 
>   FORM
>   users
>   
> /admin/login.jsp
> /error.html
>   
> 
>
>
> 
> 
>   HP_admin
> 
>
> I'm using the isapi_redirect.dll filter in IIS to redirect any request to
> *.jsp to Tomcat. (Works fine outside of the secure sections)
>
> Any ideas on how to correct this error.
>
> Paul
>
>
> -
> 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 enable secured JSP to be cached by browser?

2003-02-13 Thread Sean Dockery
I do not believe that caching the resulting pages will help you.

If your form submission code returns errors, forward control back to the
input page and automatically repopulate all of the form fields in
anticipation of a user retrying (after fixing errors with the form).

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Szwajkajzer Adam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 05:13
Subject: How to enable secured JSP to be cached by browser?


Hi all.
I'm using Tomcat 4.1.18 (in boundle with JBoss 3.0.5).
My application is configured to use declarative security (FORM based).
Here my problems start.
Each HTTP respons for secured JSP page gets amend by Tomcat.
Additional header Pragma, Cache-Control and Expires entries are inserted
to prevent the page to be locally cached.
I've found on that list it is performed by AuthenticatorBase class and was
added
to prevent security vulnerability.

The problem is with form pages in following scenario:
User inserts data, submits form, server returns an application error.
User returns to form page but it is reread from server and of course it's
empty.
(User gets angry while retyping all form data;)

Since the application is only used in intranet it would be acceptable to
locally cache
secured JSP pages.
So, is it possible to switch off  no-cache/expires feature in Tomcat 4.1.18?

-
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: Taglibs are not interpreted with Tomcat 4.1.18

2003-02-12 Thread Sean Dockery
Your actual tag class implementation should be located in...

/WEB-INF/classes/org/sourcepark/taglibs/kato/db_dropdown.class

...which is very different from your...

/WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class

This also means that the first line in your db_dropdown.java source file
must be...

package org.sourcepark.taglibs.kato;

...and your source file must be recompiled (and copied to
/WEB-INF/classes/org/.../db_dropdown.class)

Let me know if this helps.

- Original Message -
From: "THG" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 16:50
Subject: Re: Taglibs are not interpreted with Tomcat 4.1.18


> On Wed, 12 Feb 2003 13:13:09
>  Sean Dockery wrote:
> >Uh, no.  tagclass is not defined anywhere in your original message.  You
> >omitted it.
> >
> >
> >  what did you put in here?
> >
>
>
> 
>  "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>
>
> 
> 1.0
> 1.1
> kato
> /WEB-INF/katolib.tld
> 
> db_dropdown
org.sourcepark.taglibs.kato.db_dropdown
> tagdependent
> ...
> 
> 
> 
>
> the "tagclass" (for example) exists under
"/WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class"
>
>
>
> _
> Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
> http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
>
> -
> 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 hide a context path?[urgent!]

2003-02-12 Thread Sean Dockery
You cannot mask your context path.

You can hide the directories in your JSP path by making the following entry
in your web.xml file...




ValidateJSP
/security/pass/Validate.jsp



ValidateJSP
/validation/Validate.jsp


...



Please note that this assumes that your Context path="".

This won't prevent someone from accessing your JSP page, however.  All they
need to do is type http://localhost:8080/validation/Validate.jsp to get to
that same JSP page.  Aliasing is meant to be a tool of web application
developers to use "logical" views--so the physical JSP page can be moved or
replaced with a different one in an alternate location without having to go
through the web application and change every resources that links to it.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Nancy Crisostomo Martinez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 14:28
Subject: How to hide a context path?[urgent!]


> Hi everyone!
> Is it possible to mask all the directory tree referenced in a webapp
> context when you called in a navigator?
> I mean:
>
> now I type this url to access to a jsp file placed in
> webapps/security/pass/  :
>   http://servername:8080/security/pass/Validate.jsp
> But I would like to hide or to mask the name of the directories typed in
> the path, just like this:
>   http:/servername:8080/validation/Validate.jsp
>
> Even, I don't know if I can do the same with the jsp file names in order
> to hide the names of those files?
>
> I'll appreciate any idea or hint!
> Thanks in advance!
>
> Nancy.
>
>
>
> -
> 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: JAKARTA 3.2.1

2003-02-12 Thread Sean Dockery
Why would restarting Tomcat help your applets?  How do your applets
communicate with SQL Server?

- Original Message -
From: "Vernon Callantine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 12:26
Subject: JAKARTA 3.2.1


> Every Monday morning I get the following error when trying to access one
of
> my applets. The only way this can be resolved is by re-starting the
JAKARTA
> service on my Win2K web server. All of my applets that access my MS SQL 7
> database fail Monday morning until the service is restarted, then it works
> fine for the rest of the week. Could you point me in a direction as to
where
> I can begin to research this?
>
>  Error from IE 6/5 browsers:
>
>  Title bar label: JMESSAGE (!information box)
>
>  Error: -2 java.sql.SQLException:[TDS Driver]No result sets were produced
by
> 'SET ROWCOUNT
>  200;SELECT ...
>
> Thanks!
> [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: Taglibs are not interpreted with Tomcat 4.1.18

2003-02-12 Thread Sean Dockery
Uh, no.  tagclass is not defined anywhere in your original message.  You
omitted it.


  what did you put in here?





- Original Message -
From: "THG" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Tomcat Users
List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 12:48
Subject: Re: Taglibs are not interpreted with Tomcat 4.1.18


> On Wed, 12 Feb 2003 11:53:40
>  Sean Dockery wrote:
> >What about your tag-class definition?
>
> THe tld descriptors are located in /WEB-INF (see prev. message),
> the classes are located in /WEB-INF classes (matching the tld
> definitions). the taglibs are included in /WEB-INF/web.xml
> (at the end). no exceptions are thrown from catalina...
> the jsp pages are interpreted, but not the custom tags.
>



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




Re: Taglibs are not interpreted with Tomcat 4.1.18

2003-02-12 Thread Sean Dockery
What about your tag-class definition?

What version J2SDK are you running?

- Original Message - 
From: "Thorsten Giesecke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 06:24
Subject: Taglibs are not interpreted with Tomcat 4.1.18


> 
> After changing from Tomcat 3.2.3 to Tomcat 4.1.18 taglib's are no more
> interpreted. The TLD's are located in /WEB-INF folder and the
> corresponding classes are in their packages underneath /WEB-INF/classes.
> 
> Both taglib's are defined in the descriptor file web.xml:
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
> 
> ...
>   
> /WEB-INF/katolib.tld
> /WEB-INF/katolib.tld
>   
> 
>   
> /WEB-INF/katolib_.tld
> /WEB-INF/katolib_.tld
>   
> 
> 
> 
> Both taglib tld's starting with the following header:
> 
> 
>  1.1//EN"
> "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";> 
> 
> 
>1.0
>1.1
>kato
>/WEB-INF/katolib.tld
> 
>
>...
>
>...
> 
> 
> shortname and uri are matching their corresponding values.
> a /META-INF directory does not exist, because the web-application
> is unpacked (no jar file).
> 
> is there a change between tomcat 3.x and 4.x in the definition
> of taglibs / tld'S or the loading of taglibs.
> 
> sincerly thorsten
> 
> ps the jsp servlet is only included in the web.xml file which is
> located in /CATALINA_HOME/conf.
> 
> 
> -
> 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: Keep getting logged out of Tomcat?

2003-02-11 Thread Sean Dockery
First possibility:  Is your web browser accepting cookies from this web
site?  If not and you are relying on URL rewriting, your session chain will
be broken when you visit a page where URL rewriting isn't in effect, such as
a static HTML page.

Second possibility:  Perhaps your session timeout is extremely short.  What
is your setting in your web.xml file?

- Original Message -
From: "Soefara Redzuan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 20:52
Subject: Keep getting logged out of Tomcat?


> I've set up a JDBC Realm and it works fine for the most part but sometimes
> I'll get logged out and have to log in again within the space of less than
2
> minutes - this happens repeatedly.  Has anybody else encountered such a
> problem ?
>
> Thank you.
>
> Soefara.
>
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> 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]




Re: web page errors

2003-02-11 Thread Sean Dockery
You might be able to accomplish this using a Tomcat Valve (by looking for a
404 response code).

- Original Message -
From: "Peter Choe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Tomcat Users
List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 08:19
Subject: RE: web page errors


> do i need to set up the web.xml for each application, or is there a way to
> have one set up for all the applications in one place?
>
> Peter Choe
> At 10:04 AM 2/11/2003, Shapira, Yoav wrote:
> >Howdy,
> >
> >
> > >can tomcat handle errors such as 404 document not found without apache?
> >
> >Yes.  Anything that claims it implements the HTTP protocol has to handle
> >these.
> >
> > >how can i configure tomcat to direct these errors to an error page?
> >
> >It'll automatically direct these errors to its default error pages.  Use
> >the  directive in your web.xml to define custom error pages.
> >See the servlet spec chapter 13 for a full explanation of the
> > element with examples.
> >
> >Yoav Shapira
> >Millennium ChemInformatics
> >
> >-
> >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: Place to look for offtopic java/jsp info

2003-02-11 Thread Sean Dockery
Other site that deserve mention include...

site:jakarta.apache.org
site:www.onjava.com
site:www.javaworld.com




- Original Message -
From: "Mike Jackson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 16:27
Subject: RE: Place to look for offtopic java/jsp info


> That's a very good site.  I like servlets.com as well.  Not as useful, but
> still interesting.
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Oscar Carrillo [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 11, 2003 3:48 AM
> > To: Tomcat Users List
> > Subject: Place to look for offtopic java/jsp info
> >
> >
> > There seems to be some inquiries into java-related questions lately.
> >
> > I've had good success from http://jguru.com
> > I think they charge now for some stuff but much is free.
> > The site can be somewhat confusing to navigate so I just search with
> > google as such:
> >
> > site:jguru.com whatever i'm searching for
> >
> > Sometimes I stay there and continue reading everyone's questions/answers
> > even after I've found what I'm looking for.
> >
> > Oscar
> >
> >
> >
> >
> > -
> > 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 configure Tomcat to follow symbolic links.

2003-02-11 Thread Sean Dockery
I misread the part in the book where I found the information...

"The docBase attribute (optional) specifies the root directory under which
the named resources are to be found in the filesystem.  It has the same
semantics and rules as the docBase attribute of a context, and is
constructed relative to the document base of the containing context if a
relative path is used."

So, Resource.docBase is relative to Context.docBase--not Host.appBase, and
you could have omitted the Resources.docBase attribute and achieved the same
result.

- Original Message -
From: "Hans Deragon" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 14:59
Subject: Re: How to configure Tomcat to follow symbolic links.


> Sean Dockery wrote:
> > Maybe try Resource.docBase="" to see what that does...  Just out of
> > curiousity.  :-)
>
> That works.  Wonder why docBase must be empty.  Doesn't when I put in my
> Context docBase.  Go figure.  A bug maybe?
>
> Sincerely,
> Hans Deragon
>
> P.S.  BTW, Thanks to Mike Johnson and John Turner.  They were helpfull
too.
>
> >
> > - Original Message -
> > From: "Mike Johnson" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Sunday, February 09, 2003 14:56
> > Subject: Re: How to configure Tomcat to follow symbolic links.
> >
> >
> >
> >>Hey, now. The full path does work. Good one. :-)
> >>
> >>Thanks,
> >>
> >>Mike Johnson
> >>
> >>On Sun, 2003-02-09 at 13:47, Sean Dockery wrote:
> >>
> >>>Not sure why that would be happening.  The documentation for Resources
> >>>states that the Resources.docBase attribute is handled in the same
> >>
> > manner as
> >
> >>>the Context.docBase attribute in that it is relative to the
> >>
> > Host.appBase.
> >
> >>>Does using an absolute path for the Resources docBase work?  That is...
> >>>
> >>>
> >>>   >>>allowLinking="true">
> >>>
> >>>
> >>>Sean Dockery
> >>>[EMAIL PROTECTED]
> >>>Certified Java Web Component Developer
> >>>Certified Delphi Programmer
> >>>SBD Consultants
> >>>http://www.sbdconsultants.com
> >>>
> >>>- Original Message -
> >>>From: "Mike Johnson" <[EMAIL PROTECTED]>
> >>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>>Sent: Sunday, February 09, 2003 12:26
> >>>Subject: RE: How to configure Tomcat to follow symbolic links.
> >>>
> >>>
> >>>
> >>>>Ah... Thanks for the correction. :-)
> >>>>
> >>>>But, I'm now getting an exception during load if I set it like you
> >>>>wrote:
> >>>>
> >>>>[snip]
> >>>>
> >>>>-
> >>>>where 'dealernet' is defined as:
> >>>>
> >>>> >>>>reloadable="true">
> >>>> >>>>caseSensitive="true"
> >>>>allowLinking="true"
> >>>>docBase="dealernet" />
> >>>>
> >>>>
> >>>>The directory is there, all lower-case...
> >>>>
> >>>>
> >>>>*sigh*
> >>>>
> >>>>It'd be wonderful if there was a place where the upgrade breakage is
> >>>>documented... Is there a RTMF I missed somewhere?
> >>>>
> >>>>The docs, for instance, mention nothing about linking:
> >>>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
> >>>>
> >>>>A note that the default linking behavior changed and how to work with
> >>>
> > it
>
>
>
>
> -
> 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: help with client certificates

2003-02-11 Thread Sean Dockery
With regard to providing a certificate to the web site, but not
authenticating per se:

With regard to writing your own custom realm, it seems reasonable--but I
would not have thought something like this would be so difficult.

Instead of having CLIENT-CERT authentication, you might consider simply
having users submit their certificates through a form upload.  It might
avoid some of the problems that you're facing.

With regard to logging out a user:

The method that I presented works for FORM authentication only, as BASIC,
DIGEST, and CLIENT-CERT deal with (usually) readily available credentials.
That, Internet Explorer and Netscape will remember usernames and passwords
and continue to use the same authentication information until it
fails--before prompting you for a new username and password.  I would
speculate that they behave in the same manner with respect to a certificate
credential.  I'm not sure how to get browsers to reset their sessions on the
client-side.



- Original Message -
From: "Tony Dahbura" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 16:37
Subject: Re: help with client certificates


> That is correct!  It is prompting me for my certificate it is just telling
the
> following on a tomcat error page:
>
> type Status report
>
> message Access to the requested resource has been denied
>
> description Access to the specified resource (Access to the requested
resource
> has been denied) has been forbidden.
>
>
> I am thinking I may need to write a custom realm module that takes a
certificate
> and just assigns a dummy role to any user.  Little bit convoluted to get
this
> done.?
>
>
> The second thing I am trying to do is logout the user (once they come in
with
> their cert).  Doing a session.invalidate() does not cause the browser to
> reprompt the user for their certificate information upon rehitting the
site-was
> wondering how to do that as well.
>
> Tony
>
>
> Sean Dockery wrote:
>
> > Let me see if I understand what problem you are experiencing...
> >
> > By not having role-names, CLIENT-CERT authentication is not being
enforced?
> > Is that what you mean?
> >
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> > - Original Message -
> > From: "Tony Dahbura" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 11, 2003 10:57
> > Subject: Re: help with client certificates
> >
> > > Sean:
> > > This matches my xml file to a tea except I also have:
> > > 
> > >   CLIENT-CERT
> > >  
> > >
> > > The problem I am trying to solve is the fact that I do not have any
> > > role-names.  I need to have the application request a certificate from
the
> > user
> > > when they hit a servlet and just accept it.  I basically want to
blindly
> > let a
> > > user in but require them to present a certificate.  The purpose of the
> > > application I am writing needs to access data within the certificate
and I
> > do
> > > not know who the users are until they present the certificate and I
can
> > grab
> > > some data from it.
> > >
> > > I need to simulate the actions of the clientAuth="true" on a connector
> > factory
> > > (it blindly lets you in but forces a certificate to present).  Reason
this
> > > cannot be used is some of the application needs the cert and some does
> > > not...
> > >
> > > Hope this explains it!
> > >
> > > Tony
> > >
> > >
> > > Sean Dockery wrote:
> > >
> > > > In your web.xml...
> > > >
> > > > 
> > > > 
> > > >   MySecurityRestriction
> > > >   Protect the resource.
> > > >   /ServletUrlPattern
> > > >   GET
> > > >   POST
> > > > 
> > > > 
> > > >   Authorized Users Group
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >   CONFIDENTIAL
> > > > 
> > > > 
> > > >
> > > > Google for "transport-guarantee web.xml" on the web.
> > > >
> > > > Simulating a logout in some servlet code...
> > > >
> > > > ...
> > > >
> > > > HttpSession session = request.getSession(false);
> &

Re: FAQ (was Re: MY ATTIT...)

2003-02-11 Thread Sean Dockery
The simple fact is that people post questions because they lack answers to
those questions.  They lack answers because they can't be bothered to invest
time in searching for those answers (i.e.: won't RTFM) or perhaps just don't
know where to look for those answers.

The ASF web sites are great, but the documentation sometimes assumes that
the readers have attained a level of expertise that perhaps they haven't.
The largest problem I experience when reading through ASF documentation is
that must of it is written from a technical reference stand point.  It is
the difference between knowing how to do a thing and knowing what (and why)
things must be done.  I am not knocking ASF efforts;

The FAQ (as I am imagining it) does not merely have to be about answering
questions; it could be a platform which can be leveraged to find out where
to go get answers.  Many of the responses in the newsgroup are currently
instructions about going to this web site or that web site to read a given
document.  There are several dozen HOW-TO resources on the ASF web sites and
elsewhere that should be referenced and leveraged.

Having a FAQ isn't necessarily redundant.  I personally like to purchase two
or even three technical books on a particular subject so that if one of the
authors explains something awkwardly or inadequately, I can look to another
author's explanation to gain a richer understanding.

I do not believe that ignoring people who post questions which are off topic
is the way.  The mailing list would be moderated if that view were
prevalent.  (People who blatantly abuse guidelines after they have been
instructed on them can be ignored, however.  Ignoring posts is one common
method by which list members can punish repeat guideline offenders.)  On the
other hand, having a focused resource might avoid 2 or 3 out of 10
questions--depending on how easy it is to search the FAQ and how
comprehensive the answers are.

The specific issues for me about writing a FAQ is that writing effectively
isn't always easy.  If the deliverable is expected to be worth it, I expect
the time commitment for such an endeavor would be daunting, too.

Do I know answers to question that are posted on the mailing list?  Yes, I
know a lot of the answers.  For the answers I don't know, I often have a
resource at my fingertips in which I can easily find the answer.  Do I want
to help people?  Yes, I do.  I revel in learning things and teaching things.
I also hope that I am earning some level of recognition in the community
through answering questions.  That is to say, I am still vainly seeking
elements associated with level four of Maslow's hierarchy of needs.  :-)

Perhaps efforts spent composing a FAQ might be better spent on contributing
to existing documentation such as the Tomcat book project.
(http://tomcatbook.sourceforge.net)  I haven't decided what I'm going to do
either way.

What other projects exist does anyone know of that could use a leg up?

If having people follow the mailing guidelines is important, lobby to have
the guidelines page link added to the mailing list footer.

PS:  I do not consider this message to be off topic as it discusses Tomcat
documentation--which is directly relevant to Tomcat implementers,
administrators, and web application developers.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Bill" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 13:21
Subject: Re: FAQ (was Re: MY ATTIT...)


> Wouldnt it be sufficient for the users of this list to simply stop
> replying to people when they do not follow the very simple set of rules
> set out on the apache website?
>
> I personally dont feel we should be catering to people who so obviously
> are making no attempt to conform to proper list usage.  If people
> stopped replying to questions that were not appropriate to the list,
> these people would eventually get fed up and leave.  At worst, they
> start posting tons of flames to the list which is already happening
> anyway.
>
> Mr Burris for instance has been told by several members of the list,
> that this is not the appropriate forum for JSP/java yet many of the same
> people who have given him this response still continue to answer his
> questions.  This shouldnt happen.
>
> Some might think this a harsh way to deal with the problem since it may
> mean that some newbies will not get the proper help.  However, if they
> followed the directions for subscribing to the list, then they should
> have read, http://jakarta.apache.org/site/mail.html and shouldnt be
> having these sorts of problems. If they didnt take the time to read it,
> tough.
>
>
> On Tue, 2003-02-11 at 13:25, Se

Re: Virtual Hosting Tomcat

2003-02-11 Thread Sean Dockery
www.inqbyte.com is not in your hosts file, so your machine looks to your DNS
server to resolve to it to an IP.  If you put www.ipqbyte.com in your hosts
file, it should work as you expect.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Sangam Dash" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 12:21
Subject: Re: Virtual Hosting Tomcat


> hi
>
> I have this
> 
> www.inqbyte.com
>  directory="logs" prefix="inqbyte." suffix=".log" timestamp="true"/>
> 
> 
> in the server.xml file now
> in the hosts file
> it is
> 127.0.0.1 inqbyte.com
> so now when i say http://www.inqbyte.com:8080/  it says page cant be found
> without the alias it works fine
> when i say http://inqbyte.com:8080/ it works fine
> do u know what happens?
> thanks
> sangam dash
> Sean Dockery wrote:
>
> >What do you mean that you don't find any errors in the logs folder?
Where
> >did you look?  What about the output of the console window when you start
> >Tomcat manually?  I'm willing to be that you fatally corrupted your
> >server.xml file somehow.
> >
> >Make a copy of the Host definition for localhost within the same Engine
> >definition.  Then make changes to the copy.  Your Host definition is far
> >more sparse than mine.
> >
> >
> >Sean Dockery
> >[EMAIL PROTECTED]
> >Certified Java Web Component Developer
> >Certified Delphi Programmer
> >SBD Consultants
> >http://www.sbdconsultants.com
> >
> >
> >- Original Message -
> >From: "Sangam Dash" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, February 11, 2003 11:31
> >Subject: Re: Virtual Hosting Tomcat
> >
> >
> >
> >
> >>Hi
> >>i added something like you said to the hosts file
> >>127.0.0.1 rippleimpact
> >>then if i give rippleimpact:8080 it works
> >>thanks a lot
> >>but then i added
> >>this to the server.xml file
> >>
> >>
> >> >>directory="logs" prefix="ripple." suffix=".log" timestamp="true"/>
> >>
> >>
> >>
> >>is there something wrong with this ?
> >>tomcat doesnt start now...
> >>do you have any idea why its doing that?
> >>i dont find any error showing in the logs folder?
> >>please help
> >>thanks
> >>sangam dash
> >>Sean Dockery wrote:
> >>
> >>
> >>
> >>>I have done this in the past.  Here's what you can do...
> >>>
> >>>Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on
> >>>
> >>>
> >my
> >
> >
> >>>Windows 2000 machine--your location may be different) and add the
> >>>
> >>>
> >following
> >
> >
> >>>lines to the end of the file...
> >>>
> >>>127.0.0.1alpha
> >>>127.0.0.1gamma
> >>>127.0.0.1omega
> >>>
> >>>For each Host.name attribute in your server.xml, set it to a machine
> >>>
> >>>
> >name.
> >
> >
> >>>Like this...
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>>Then you should be able to access your local machine using different
> >>>
> >>>
> >names
> >
> >
> >>>like this...
> >>>
> >>>http://alpha:8080/
> >>>http://gamma:8080/
> >>>http://omega:8080/
> >>>
> >>>Good luck.
> >>>
> >>>Sean Dockery
> >>>[EMAIL PROTECTED]
> >>>Certified Java Web Component Developer
> >>>Certified Delphi Programmer
> >>>SBD Consultants
> >>>http://www.sbdconsultants.com
> >>>
> >>>- Original Message -
> >>>From: "Lajos" <[EMAIL PROTECTED]>
> >>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>>Sent: Monday, February 10, 2003 20:25
> >>>Subject: Re: Virtual Host

Re: help with client certificates

2003-02-11 Thread Sean Dockery
Let me see if I understand what problem you are experiencing...

By not having role-names, CLIENT-CERT authentication is not being enforced?
Is that what you mean?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Tony Dahbura" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 10:57
Subject: Re: help with client certificates


> Sean:
> This matches my xml file to a tea except I also have:
> 
>   CLIENT-CERT
>  
>
> The problem I am trying to solve is the fact that I do not have any
> role-names.  I need to have the application request a certificate from the
user
> when they hit a servlet and just accept it.  I basically want to blindly
let a
> user in but require them to present a certificate.  The purpose of the
> application I am writing needs to access data within the certificate and I
do
> not know who the users are until they present the certificate and I can
grab
> some data from it.
>
> I need to simulate the actions of the clientAuth="true" on a connector
factory
> (it blindly lets you in but forces a certificate to present).  Reason this
> cannot be used is some of the application needs the cert and some does
> not...
>
> Hope this explains it!
>
> Tony
>
>
> Sean Dockery wrote:
>
> > In your web.xml...
> >
> > 
> > 
> >   MySecurityRestriction
> >   Protect the resource.
> >   /ServletUrlPattern
> >   GET
> >   POST
> > 
> > 
> >   Authorized Users Group
> > 
> > 
> > 
> > 
> > 
> >   CONFIDENTIAL
> > 
> > 
> >
> > Google for "transport-guarantee web.xml" on the web.
> >
> > Simulating a logout in some servlet code...
> >
> > ...
> >
> > HttpSession session = request.getSession(false);
> >
> > /*
> >   if there is any information in the session that you want to keep (such
as
> >   a locale override), grab a reference to it here...
> > */
> >
> > if(session != null)
> >   session.invalidate();
> >
> > session = request.getSession(true);
> >
> > /*
> >   restore stuff into the session that you wanted here...
> > */
> >
> > ...
> >
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> > - Original Message -
> > From: "Tony Dahbura" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 11, 2003 03:11
> > Subject: help with client certificates
> >
> > > I am trying to configure my web application within tomcat to require
> > > client certificates for certain areas.  I am not concerned about what
> > > the certificate contains-only that it is a valid certificate (not
> > > expired).
> > >
> > > I have the ssl piece working and when I use the connector option
> > > clientAuth="true" this makes my whole ssl session require
> > > certificates-which is not what I want.
> > >
> > > How can I configure the web.xml file to require certificates for only
> > > certain servlets/urls of the webapp?
> > >
> > > Would like the same functionality of clientAuth="true" (which just
> > > checks the validity of the certifiicate but does not try to verify or

> > > see if the user is in a list somewhere) but at the url/servlet level
> > > within the web.xml for the web app.
> > >
> > >
> > > Another quick question is how can one force the user to have to select
> > > the cert again once inside the web application (simulate a logout).
> > >  Does invalidating the session force this?  Do not want the user to
have
> > > to quit out of the browser.
> > >
> > >
> > > Thanks,
> > > Tony
> > >
> > >
> > >
> > > -
> > > 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]
>
> --
> Tony Dahbura
> Deployment Director
> Opsware Business Practice
> EDS Inc.
> 13900 Lincoln Park Drive
> Suite 405/WH-OPS
> Herndon, VA  20171
> voice: 703.742.1280
> fax: 703.742.1163
> [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: Virtual Hosting Tomcat

2003-02-11 Thread Sean Dockery
What do you mean that you don't find any errors in the logs folder?  Where
did you look?  What about the output of the console window when you start
Tomcat manually?  I'm willing to be that you fatally corrupted your
server.xml file somehow.

Make a copy of the Host definition for localhost within the same Engine
definition.  Then make changes to the copy.  Your Host definition is far
more sparse than mine.


Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com


- Original Message -
From: "Sangam Dash" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 11:31
Subject: Re: Virtual Hosting Tomcat


> Hi
> i added something like you said to the hosts file
> 127.0.0.1 rippleimpact
> then if i give rippleimpact:8080 it works
> thanks a lot
> but then i added
> this to the server.xml file
>
> 
>  directory="logs" prefix="ripple." suffix=".log" timestamp="true"/>
> 
> 
> 
> is there something wrong with this ?
> tomcat doesnt start now...
> do you have any idea why its doing that?
> i dont find any error showing in the logs folder?
> please help
> thanks
> sangam dash
> Sean Dockery wrote:
>
> >I have done this in the past.  Here's what you can do...
> >
> >Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on
my
> >Windows 2000 machine--your location may be different) and add the
following
> >lines to the end of the file...
> >
> >127.0.0.1alpha
> >127.0.0.1gamma
> >127.0.0.1omega
> >
> >For each Host.name attribute in your server.xml, set it to a machine
name.
> >Like this...
> >
> >  
> >...
> >  
> >
> >  
> >...
> >  
> >
> >  
> >...
> >  
> >
> >Then you should be able to access your local machine using different
names
> >like this...
> >
> >http://alpha:8080/
> >http://gamma:8080/
> >http://omega:8080/
> >
> >Good luck.
> >
> >Sean Dockery
> >[EMAIL PROTECTED]
> >Certified Java Web Component Developer
> >Certified Delphi Programmer
> >SBD Consultants
> >http://www.sbdconsultants.com
> >
> >- Original Message -
> >From: "Lajos" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Monday, February 10, 2003 20:25
> >Subject: Re: Virtual Hosting Tomcat
> >
> >
> >
> >
> >>Ouch, windows. I'm not too sure - maybe someone else can provide the
> >>info. On older versions, you could edit some file like lmhosts ...
> >>
> >>I like fronting Tomcat with Apache for security reasons, but I still use
> >>virtual hosts in Tomcat. I have no idea why you are running out of
> >>memory - how much RAM do you have? It may be due to your applications
> >>more than Tomcat itself.
> >>
> >>Regards,
> >>
> >>Lajos
> >>
> >>
> >>Sangam Dash wrote:
> >>
> >>
> >>>Hi
> >>>
> >>>Thanks for the mail.
> >>>But do you know how to do that on windows machine?
> >>>The other thing is that when i add this one to the server.xml file the
> >>>tomcat runs out of memory and it gives premature end of file error
> >>>sometimes. :-[
> >>>Is it better to have apache and tomcat both configured for this kind of
> >>>situations? :-\
> >>>Thanks a lot
> >>>Sangam Dash :-)
> >>>Lajos wrote:
> >>>
> >>>
> >>>
> >>>>Hi Sangam -
> >>>>
> >>>>Looks like the examples from my FlashGuide ;) What doesn't work? One
> >>>>thing that you must make sure is that the values of the name attribute
> >>>>of the  resolve to your machine. You can do this via your
> >>>>machine's DNS configuration. In the example below, mydomain0.com,
> >>>>mydomain1.com and mydomain2.com must resolve to the same machine. If
> >>>>not, the example won't work.
> >>>>
> >>>>Regards,
> >>>>
> >>>>Lajos
> >>>>
> >>>>
> >>>>Sangam Dash wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hi
> >>>>>
> >>>>>I 

Re: FAQ (was Re: MY ATTIT...)

2003-02-11 Thread Sean Dockery
I'll think about it.  :-)

- Original Message - 
From: "Tim Moore" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 09:43
Subject: RE: FAQ (was Re: MY ATTIT...)


Well AFAIK nobody's written one.  Do I hear a volunteer? ;-)

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -----Original Message-
> From: Sean Dockery [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 11, 2003 10:38 AM
> To: Tomcat Users List
> Subject: FAQ (was Re: MY ATTIT...)
> 
> 
> I am surprised that there isn't a FAQ that is circulated 
> periodically--such as those automatically reposted to USENET 
> newsgroups.  Or perhaps a more formal document that comes out 
> of [EMAIL PROTECTED]
> 
> Comments?
> 
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
> 
> 
> 
> - Original Message -
> From: "David Durst" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 11, 2003 02:49
> Subject: Re: MY ATTITUDE
> 
> 
> > >  This is why, if you want to get answers to your 
> questions, you 
> > > have to make it clear in your post that you have done 
> your homework, 
> > > that you have tried the usual resources, that you are not 
> asking for 
> > > the answer to be spoonfed to you.
> >
> > Just as a side comment, not everyone is aware of the usual 
> resources 
> > in that documentation is sometimes obfuscated in that when you are 
> > looking for a specific answer the details are buried somewhere on 
> > another document you don't even know you should be reading. 
>  So some 
> > people (Including myself) here should propabably (If time allowing) 
> > just point people w/ these questions to the correct documentation 
> > instead of just ignoring.
> >
> > On another side note we as HELPERS should also be aware of the 
> > mentality
> of
> > the beginer wanting to ask a REAL person the question (I 
> know its the 
> > lazy mans way) but some people actually learn this way.
> >
> > And since I have not read any of the initial postings regarding this
> thread
> > I will digress from saying anything further and making myself look 
> > like a complete moron :).
> >
> >
> >
> >
> > 
> -
> > 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: web page errors

2003-02-11 Thread Sean Dockery
Just to re-cap...  Here's what your application structure looks like...

/usr/lib/tomcat/conf/server.xml <-- contains 
/usr/lib/tomcat/webapps/petersapp/ <-- context root folder
/usr/lib/tomcat/webapps/petersapp/WEB-INF/web.xml <-- contains
/missing.html
/usr/lib/tomcat/webapps/petersapp/missing.html <-- world readable file for
404 errors

Can you confirm this?

Can you access the error document directly?
http://localhost:8080/petersapp/missing.html

But not indirectly?  http://localhost:8080/petersapp/badmedicine

Make sure that everything is spelled correctly and in the correct upper and
lower case.

Is Apache running between your browser and Tomcat?  (Perhaps try JkMount
/petersapp/* instead.)

Do you have any servlet filters or Values running?

I am running out of ideas as to what the problem might be.  If none of these
point to the problem, then I am uncertain as to what it might be.

Does anyone know what characteristics Tomcat 3.2 (what Peter is using) has
versus 4.1 (what I'm using) with respect to serving errors documents or
.html documents?  (relevant spec change?  webapp DTD version?  invoker
servlet problem perhaps?)

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Peter Choe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 11:00
Subject: Re: web page errors


> yes.  i have missing.html in the root directory.
>
> Peter Choe
>
> At 12:28 PM 2/11/2003, you wrote:
> >Just a quick question...
> >
> >Did you actually put an HTML document named missing.html in the root
folder
> >of your context?
> >
> >Sean Dockery
> >[EMAIL PROTECTED]
> >Certified Java Web Component Developer
> >Certified Delphi Programmer
> >SBD Consultants
> >http://www.sbdconsultants.com
> >
> >- Original Message -
> >From: "Peter Choe" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, February 11, 2003 10:08
> >Subject: RE: web page errors
> >
> >
> > > i tried putting the error-page in the web.xml and it seem to go crazy
when
> > > i tried it.
> > >
> > > i put:
> > >
> > > 
> > > 
> > > 404
> > > /missing.html
> > > 
> > > ...
> > >
> > > when i try to go to a page that doesn't exist in the directory, tomcat
> >goes
> > > in a loop and i can't get out of until i stop tomcat.
> > >
> > > is there a know problem with using  with tomcat3.2?
> > >
> > > Peter Choe
> > >
> > > At 10:28 AM 2/11/2003, you wrote:
> > > >Howdy,
> > > >You typically need to set up one web.xml for each web application.
> > > >
> > > >Yoav Shapira
> > > >Millennium ChemInformatics
> > > >
> > > >
> > > > >-Original Message-
> > > > >From: Peter Choe [mailto:[EMAIL PROTECTED]]
> > > > >Sent: Tuesday, February 11, 2003 10:19 AM
> > > > >To: Tomcat Users List; Tomcat Users List
> > > > >Subject: RE: web page errors
> > > > >
> > > > >do i need to set up the web.xml for each application, or is there a
way
> > > >to
> > > > >have one set up for all the applications in one place?
> > > > >
> > > > >Peter Choe
> > > > >At 10:04 AM 2/11/2003, Shapira, Yoav wrote:
> > > > >>Howdy,
> > > > >>
> > > > >>
> > > > >> >can tomcat handle errors such as 404 document not found without
> > > >apache?
> > > > >>
> > > > >>Yes.  Anything that claims it implements the HTTP protocol has to
> > > >handle
> > > > >>these.
> > > > >>
> > > > >> >how can i configure tomcat to direct these errors to an error
page?
> > > > >>
> > > > >>It'll automatically direct these errors to its default error
pages.
> > > >Use
> > > > >>the  directive in your web.xml to define custom error
> > > >pages.
> > > > >>See the servlet spec chapter 13 for a full explanation of the
> > > > >> element with examples.
> > > > >>
> > > > >>Yoav Shapira
> > > > >>Millenn

Re: web page errors

2003-02-11 Thread Sean Dockery
Just a quick question...

Did you actually put an HTML document named missing.html in the root folder
of your context?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Peter Choe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 10:08
Subject: RE: web page errors


> i tried putting the error-page in the web.xml and it seem to go crazy when
> i tried it.
>
> i put:
>
> 
> 
> 404
> /missing.html
> 
> ...
>
> when i try to go to a page that doesn't exist in the directory, tomcat
goes
> in a loop and i can't get out of until i stop tomcat.
>
> is there a know problem with using  with tomcat3.2?
>
> Peter Choe
>
> At 10:28 AM 2/11/2003, you wrote:
> >Howdy,
> >You typically need to set up one web.xml for each web application.
> >
> >Yoav Shapira
> >Millennium ChemInformatics
> >
> >
> > >-Original Message-
> > >From: Peter Choe [mailto:[EMAIL PROTECTED]]
> > >Sent: Tuesday, February 11, 2003 10:19 AM
> > >To: Tomcat Users List; Tomcat Users List
> > >Subject: RE: web page errors
> > >
> > >do i need to set up the web.xml for each application, or is there a way
> >to
> > >have one set up for all the applications in one place?
> > >
> > >Peter Choe
> > >At 10:04 AM 2/11/2003, Shapira, Yoav wrote:
> > >>Howdy,
> > >>
> > >>
> > >> >can tomcat handle errors such as 404 document not found without
> >apache?
> > >>
> > >>Yes.  Anything that claims it implements the HTTP protocol has to
> >handle
> > >>these.
> > >>
> > >> >how can i configure tomcat to direct these errors to an error page?
> > >>
> > >>It'll automatically direct these errors to its default error pages.
> >Use
> > >>the  directive in your web.xml to define custom error
> >pages.
> > >>See the servlet spec chapter 13 for a full explanation of the
> > >> element with examples.
> > >>
> > >>Yoav Shapira
> > >>Millennium ChemInformatics
> > >>
> > >>-
> > >>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]




Re: Binding to Tomcat 4.x JNDI context

2003-02-11 Thread Sean Dockery
You can bind your resources in  in server.xml, but
you must  to the global resource in each  where you
want the resource to be accessible.

PS:  JNDI is read-only to web applications because of catalina.policy.  You
can always change the permissions.  :-)

- Original Message -
From: "Karl Moss" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 07:49
Subject: Binding to Tomcat 4.x JNDI context


I'd like to be able to bind an object to the JNDI context during the
initialization of a servlet so that other servlets (within other webapps)
can find it. The java:comp/env directory is read-only, so where is the best
place to bind? If I bind the object in the context root it seems to be only
visible from within the same webapp; I would like to share this object with
anyone in the container.

Thanks,

Karl Moss
[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: web page errors

2003-02-11 Thread Sean Dockery
Yes.


...
  
404
/errors/notfound.html
  
...


Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message - 
From: "Peter Choe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 07:55
Subject: web page errors


> can tomcat handle errors such as 404 document not found without apache?
> 
> how can i configure tomcat to direct these errors to an error page?
> 
> Peter Choe
> 
> 
> 
> -
> 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 can I get the web application name?

2003-02-11 Thread Sean Dockery
HttpServletRequest.getRealPath("/") should get the document root of your web
application.

HttpServletRequest.getContextPath() should get the path (name) on which the
context is mounted.

ServletContext.getServletContextName() should get the description (name) of
the application.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Etienne" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 05:30
Subject: How can I get the web application name?


> Hi, I found a way to retrieve the web application name for WebSphere I
> guess. Can I do the same for Tomcat?
>
> Thanks.
>
> Etienne.
>
>
>
> > George,
> > I've got a small servlet that'll show the docroot.  Check out
> > http://home.nc.rr.com/hygh/was/WebAppName.java
> >
> > Ken
> >
> > George wrote:
> >
> > > Hi,
> > > In a servlet, I want to get the Web Application Name in which the
> servlet
> > > belongs.
> > > Actually, I want to retrieve the webapp docRoot using
> > >
> > > I found in ServletEngineConfigDumper example the following code, but
> I need
> > > the webappname
> > >
> > >  ServletEngineInfo engineInfo =
> ServletEngine.getEngine().getInfo();
> > >  ServletHostInfo vhinfo   =
> > > engineInfo.getServletHostInfo("default_host");
> > >  WebGroupInfo wgInfo  =
> vhinfo.getWebGroupInfo("webappname");
> > > String docroot=wgInfo.getDocumentRoot();
> > >
> > > Any other way to get the WebApplication Doc Root?
> > >
> > > Thank you
> > > George
>
>
>
> -
> 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: FilePermission feature?

2003-02-11 Thread Sean Dockery
Don't you mean...

 grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
 permission java.io.FilePermission "${catalina.home}/webapps/my_app/-",
   "read,write,delete";
};

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
- Original Message -
From: "Dany Crepin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:39
Subject: FilePermission feature?


SecurityManager in Tomcat 4.0.x
I don't succeed in giving classes in a specific webapp  "read,write"
FilePermission.
The wildcards never work.


 grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
 permission java.io.FilePermission "${catalina.home}/my_app/-",
   "read,write,delete";
};

 only

 grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
 permission java.io.FilePermission "${catalina.home}/my_app/file1.txt",
   "read,write,delete";
};

 will work. It's very annoying if I want to implement a file upload, or  for
file-based counters, for example.

Any Idea



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




Re: Ant - Tomcat deploy question

2003-02-11 Thread Sean Dockery
Follow the development environment recommendation set out in the Tomcat
application developers guide, which you can find at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/.

After you "install" your application into Tomcat, you can "reload" it on
demand without restarting Tomcat.  I had experienced problems with stale
classes staying in memory in the past, but I have not had any problems since
using this new approach.

Quick tip:  If you use the sample build.xml file provided in the Tomcat
AppDev manual, add the following lines to the section where the classpath is
constructed...


  


...This will automatically include any JAR files that you have placed in
${web.home}/WEB-INF/lib (and which are subsequently copied to
${build.home}/WEB-INF/lib) into the classpath for you.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "John Ruffin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 15:21
Subject: Ant - Tomcat deploy question


>
> Hi folks,
>
> I'm running TC 4.1.18, ANT 1.5, J2SDK1.4.0_01 on a W2K server - Tomcat is
> running as a service.
>
> When ANT places my "appName.war" file in the Catalina_Home/webapps
directory
> it doesn't deploy (i.e. unpack).
>
> I stopped and started the Tomcat service, that didn't deploy appName.war.
>
> However, if I stop the service - delete the webapps/appName folder -
execute
> the ANT deploy-app command again - this works.
>
> Why?  What am I missing - better yet what do I need to read?  I've read
some
> archive threads - do I really need to restart TC  or appName using Manager
> after deployment?
>
> Please enlighten the newbie...
>
>
> 
> The information in this email is confidential and may be
> legally privileged. It is intended solely for the addressee,
> and access by anyone else is unauthorized.
>
> If you are not the intended recipient, any disclosure,
> copying, distribution or any action taken or omitted to be
> taken in reliance on it, is prohibited and may be unlawful.
>
> If you believe that you have received this email in error,
> please advise us by calling (901) 385 3688, or emailing
> [EMAIL PROTECTED], and then delete this message
> and all copies and backups thereof. 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: Handling non-Latin chars in servlet, jdbc

2003-02-11 Thread Sean Dockery
I believe that MySQL assigns a character set to a database when it is
created--taking the system default if you do not specify a different
character set.  I do not believe that putting the encoding setting into the
connection URL is necessary when you have created the database with your
desired character set.  That is from memory... Can anyone confirm this?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com


- Original Message -
From: "mech" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 05:20
Subject: RE: Handling non-Latin chars in servlet, jdbc


>
>
> > -Original Message-
> > From: Joe Tomcat [mailto:[EMAIL PROTECTED]]
> > Sent: Sonntag, 9. Februar 2003 12:47
> > To: Tomcat Users List
> > Subject: Handling non-Latin chars in servlet, jdbc
> >
> >
> > Hello fellow Tomcatists,
> >
> > It is time for my web app to move beyond the confines of the A-B-Cs.
> > This app takes user input from web forms, stores it in
> > various fields in a database, and then displays it back in
> > various ways.  The goal is to have it so that a user can
> > enter Japanese or other Asian language chars into the form in
> > his browser, the web app stores the form input in the db, and
> > later on, displays it back to the browser and the chars show
> > up the right way.
> >
> > It seems like this should be easy.  Java is designed for
> > multibyte, and I think Postgres can also store multibyte
> > chars, but I'm running into a block.  My friend in Japan
> > entered some chars into a form, and hit submit, and what was
> > stored in the db were html entities.  Then, when he displayed
> > it back to his browser, it was a problem because my output
> > code automatically escapes html entities, so what he saw was
> > "&48832;" or something, instead of the ji he was expecting.
> >
> > Does anyone have some tips on this, or pointers to articles
> > or books I should be reading about how to do this?
> >
> First:
> Make sure that your generated html page has a content header that tells
> the browser what content encoding you want. Otherwise your browser might
> imply Latin for parsing even if you want Unicode.
> Things like: <%@ page contentType="text/html; charset=xyz" %> or  http-equiv="content-type" content="text/html; charset=xyz"> might help.
>
> Second (from own bad experience ;-)):
> I use MySQL which also support Unicode. But you have to set the encoding
> you want MySQL to use. Otherwise it tries to find the encoding by
> checking the systems default. Ran into trouble because my development
> server had a German installation whereas my productive machine has an
> English setup. So I had "Latin" vs. "Latin-1". I wondered what happend
> to my German special characters, but actually the problem was that my
> JDBC driver talked the wrong encoding to the database and the problem
> was already located in my data access classes, not the jsp or html
> processing.
> After telling MySQL in the connection url to use Latin-1 encoding my
> problem was gone.
>
> So you should also check that your problem is not located on the
> database/driver side and your characters get garbled already there.
>
>
> Michael
>
>
> -
> 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: help with client certificates

2003-02-11 Thread Sean Dockery
In your web.xml...



  MySecurityRestriction
  Protect the resource.
  /ServletUrlPattern
  GET
  POST


  Authorized Users Group





  CONFIDENTIAL



Google for "transport-guarantee web.xml" on the web.



Simulating a logout in some servlet code...

...

HttpSession session = request.getSession(false);

/*
  if there is any information in the session that you want to keep (such as
  a locale override), grab a reference to it here...
*/

if(session != null)
  session.invalidate();

session = request.getSession(true);

/*
  restore stuff into the session that you wanted here...
*/

...



Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message - 
From: "Tony Dahbura" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 03:11
Subject: help with client certificates


> I am trying to configure my web application within tomcat to require 
> client certificates for certain areas.  I am not concerned about what 
> the certificate contains-only that it is a valid certificate (not 
> expired).  
> 
> I have the ssl piece working and when I use the connector option 
> clientAuth="true" this makes my whole ssl session require 
> certificates-which is not what I want.  
> 
> How can I configure the web.xml file to require certificates for only 
> certain servlets/urls of the webapp?  
> 
> Would like the same functionality of clientAuth="true" (which just 
> checks the validity of the certifiicate but does not try to verify or 
> see if the user is in a list somewhere) but at the url/servlet level 
> within the web.xml for the web app.
> 
> 
> Another quick question is how can one force the user to have to select 
> the cert again once inside the web application (simulate a logout). 
>  Does invalidating the session force this?  Do not want the user to have 
> to quit out of the browser.
> 
> 
> Thanks,
> Tony
> 
> 
> 
> -
> 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]




FAQ (was Re: MY ATTIT...)

2003-02-11 Thread Sean Dockery
I am surprised that there isn't a FAQ that is circulated periodically--such
as those automatically reposted to USENET newsgroups.  Or perhaps a more
formal document that comes out of [EMAIL PROTECTED]

Comments?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com



- Original Message -
From: "David Durst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 02:49
Subject: Re: MY ATTITUDE


> >  This is why, if you want to get answers to your questions, you
> > have to make it clear in your post that you have done your homework,
> > that you have tried the usual resources, that you are not asking for the
> > answer to be spoonfed to you.
>
> Just as a side comment, not everyone is aware of the usual resources in
> that documentation is sometimes obfuscated in that when you are looking
> for a specific answer the details are buried somewhere on another document
> you
> don't even know you should be reading.  So some people (Including myself)
> here should propabably (If time allowing) just point people w/ these
> questions to the correct documentation instead of just ignoring.
>
> On another side note we as HELPERS should also be aware of the mentality
of
> the beginer wanting to ask a REAL person the question (I know its the lazy
> mans way) but some people actually learn this way.
>
> And since I have not read any of the initial postings regarding this
thread
> I will digress from saying anything further and making myself look like
> a complete moron :).
>
>
>
>
> -
> 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: Virtual Hosting Tomcat

2003-02-10 Thread Sean Dockery
I have done this in the past.  Here's what you can do...

Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on my
Windows 2000 machine--your location may be different) and add the following
lines to the end of the file...

127.0.0.1alpha
127.0.0.1gamma
127.0.0.1omega

For each Host.name attribute in your server.xml, set it to a machine name.
Like this...

  
...
  

  
...
  

  
...
  

Then you should be able to access your local machine using different names
like this...

http://alpha:8080/
http://gamma:8080/
http://omega:8080/

Good luck.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Lajos" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:25
Subject: Re: Virtual Hosting Tomcat


> Ouch, windows. I'm not too sure - maybe someone else can provide the
> info. On older versions, you could edit some file like lmhosts ...
>
> I like fronting Tomcat with Apache for security reasons, but I still use
> virtual hosts in Tomcat. I have no idea why you are running out of
> memory - how much RAM do you have? It may be due to your applications
> more than Tomcat itself.
>
> Regards,
>
> Lajos
>
>
> Sangam Dash wrote:
> > Hi
> >
> > Thanks for the mail.
> > But do you know how to do that on windows machine?
> > The other thing is that when i add this one to the server.xml file the
> > tomcat runs out of memory and it gives premature end of file error
> > sometimes. :-[
> > Is it better to have apache and tomcat both configured for this kind of
> > situations? :-\
> > Thanks a lot
> > Sangam Dash :-)
> > Lajos wrote:
> >
> >> Hi Sangam -
> >>
> >> Looks like the examples from my FlashGuide ;) What doesn't work? One
> >> thing that you must make sure is that the values of the name attribute
> >> of the  resolve to your machine. You can do this via your
> >> machine's DNS configuration. In the example below, mydomain0.com,
> >> mydomain1.com and mydomain2.com must resolve to the same machine. If
> >> not, the example won't work.
> >>
> >> Regards,
> >>
> >> Lajos
> >>
> >>
> >> Sangam Dash wrote:
> >>
> >>> Hi
> >>>
> >>> I am using tomcat for my websites.
> >>> I am not using apache.
> >>> I need to do have two websites running from the same machine with the
> >>> same tomcat instance.
> >>> i didnt get any help on the net as everything for virtual hosting  is
> >>> with apache and tomcat combination.
> >>> is it possible to server two different websites from same machine
> >>> using only tomcat?
> >>> please help me out
> >>>
> >>> I tried the following
> >>> but it doesnt work
> >>>
> >>> added this following to the server.xml file
> >>>  >>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain0." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   
> >>>>>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain1." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   
> >>>>>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain2." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   i appreciate any kind of help ...
> >>> i am using tomcat 4.1.12
> >>>
> >>> thanks a lot
> >>> sangam dash
> >>>
> >>>
> >>> -
> >>> 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]
> >
> >
>
>
> --
>
>
>
> Lajos Moczar
>
>  Open Source Support, Consulting and Training
>
>  Cocoon Developer's Handbook
>   (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
>
> _  _
>/ \ /
>   /___\  /
>  / \   /
>
>   http://www.galatea.com -- powered by AzSSL
>
>
> -
> 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: IIS+Tomcat security constraint = Unauthorized: Logon Failed

2003-02-10 Thread Sean Dockery
It seems unlikely that IIS would arbitrarily intercept a request that it has
been instructed to forward, but I do not know enough about integrating IIS
with Tomcat to know for sure.

Perhaps you can turn on the RequestDumper Value in Tomcat to see what
headers are being submitted when you access Tomcat through the standalone
port versus accessing Tomcat through IIS.  That might give you more
information that you have now.  :-)

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Felipe" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 14:39
Subject: RE: IIS+Tomcat security constraint = Unauthorized: Logon Failed


> Yes. I can authenticate through the tomcat standalone port.
> I am using the BASIC with a MemoryRealm.
> Everything as simple as it can get!
>
> Do you know if it is possible to have IIS to leave the authentication to
> tomcat?
>
> Thanks,
> Felipe
>
>
> -Original Message-
> From: Sean Dockery [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 3:50 PM
> To: Tomcat Users List
> Subject: Re: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
> Can you authenticate through the Tomcat standalone port?  Or does that
> fail
> as well?
>
> What method of authentication are you using?  BASIC or DIGEST?  If you
> are
> currently using DIGEST, try BASIC (for testing purposes).
>
> What type of Realm are you authenticating against?  MemoryRealm, JDBC,
> or
> JNDI?
>
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
> - Original Message -
> From: "Felipe" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Monday, February 10, 2003 09:08
> Subject: RE: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
>
> > Yes. I have defined the user, password and role and everything else
> needed
> > to make it work on tomcat. What seems to be the problem is that IIS is
> > trying to authenticate the user by itself instead of forwarding the
> > user/password information to tomcat. (It allow me to try 3 times and
> then
> > give me the "Unauthorized: Logon Failed" error page regardless the
> valid
> > user and password).
> >
> > I know the ISAPI filter is working because if I remove the security
> > constraint from tomcat I can get to it and I know the tomcat security
> > constraint is working because if I can get to it using the "stand
> alone"
> > port.
> >
> > Have you seen this scenario working before? I found some posts with
> this
> > issue but no reply to any of them.
> >
> > Thanks,
> > Felipe
> >
> >
> >
> > -Original Message-
> > From: Sean Dockery [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 10, 2003 8:05 AM
> > To: Tomcat Users List
> > Subject: Re: IIS+Tomcat security constraint = Unauthorized: Logon
> Failed
> >
> > Where have you defined the user and password that you believe you
> should
> be
> > a valid user?  What is the role constraint that you have defined on
> the
> web
> > resource?  Is the user in question set up for that role?
> >
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> > - Original Message -
> > From: "Felipe Crochik" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, February 09, 2003 21:34
> > Subject: IIS+Tomcat security constraint = Unauthorized: Logon Failed
> >
> >
> > > I am trying to use the tomcat security constraints "behind" an IIS
> web
> > > server. I know tomcat and the ISAPI filter are working. Also, Tomcat
> > > authorization is working bypassing IIS using port 8080.
> > >
> > > When I try to reach the exactly same application through IIS (port
> 80) I
> > > get the user validation dialog box and after I try to login with a
> valid
> > > user and password I get HTTP 401.1 - Unauthorized: Logon Failed.
> > >
> > > TIA,
> > > Felipe
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMA

Re: Re-using roles defined in web.xml file

2003-02-10 Thread Sean Dockery
The only way that it could be done is to provide a custom realm to this
yourself.

Can you not just put the roles into LDAP?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "White, Joshua A (CASD, IT)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 14:04
Subject: Re-using roles defined in web.xml file


> Hello everyone,
>
> I need to authenticate visitors to my site using ldap.  Based on some ldap
> attributes, I can determine which role a person should be in.  Is there a
> way I can dynamically associate users with the roles defined in the
web.xml
> file?
>
> Joshua
>
>
>
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy all
copies.
>
>
> -
> 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: Error - tomcat-users.xml.new permission denied - while starting TOMCAT

2003-02-10 Thread Sean Dockery
You could try using sudo.  It allows users to execute certain programs as if
they were the superuser.

- Original Message -
From: "krip pane" <[EMAIL PROTECTED]>
To: "tomcat" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 10:28
Subject: Error - tomcat-users.xml.new permission denied - while starting
TOMCAT


> All,
>
> I'm trying to start tomcat as user "tomcat" via a
> script.  But it keeps dying with error -
> tomcat-users.xml.new permission denied.  It looks like
> it's trying to write to the conf dir, but the id
> doesn't have write permission to do so - only root
> does.  I don't want to give any ID other than root
> write permission on conf.  How can I workaround this
> problem and get tomcat to start.
>
> Thanks
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.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: IIS+Tomcat security constraint = Unauthorized: Logon Failed

2003-02-10 Thread Sean Dockery
Can you authenticate through the Tomcat standalone port?  Or does that fail
as well?

What method of authentication are you using?  BASIC or DIGEST?  If you are
currently using DIGEST, try BASIC (for testing purposes).

What type of Realm are you authenticating against?  MemoryRealm, JDBC, or
JNDI?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Felipe" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 09:08
Subject: RE: IIS+Tomcat security constraint = Unauthorized: Logon Failed


> Yes. I have defined the user, password and role and everything else needed
> to make it work on tomcat. What seems to be the problem is that IIS is
> trying to authenticate the user by itself instead of forwarding the
> user/password information to tomcat. (It allow me to try 3 times and then
> give me the "Unauthorized: Logon Failed" error page regardless the valid
> user and password).
>
> I know the ISAPI filter is working because if I remove the security
> constraint from tomcat I can get to it and I know the tomcat security
> constraint is working because if I can get to it using the "stand alone"
> port.
>
> Have you seen this scenario working before? I found some posts with this
> issue but no reply to any of them.
>
> Thanks,
> Felipe
>
>
>
> -Original Message-
> From: Sean Dockery [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 8:05 AM
> To: Tomcat Users List
> Subject: Re: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
> Where have you defined the user and password that you believe you should
be
> a valid user?  What is the role constraint that you have defined on the
web
> resource?  Is the user in question set up for that role?
>
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
> - Original Message -
> From: "Felipe Crochik" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 09, 2003 21:34
> Subject: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
>
> > I am trying to use the tomcat security constraints "behind" an IIS web
> > server. I know tomcat and the ISAPI filter are working. Also, Tomcat
> > authorization is working bypassing IIS using port 8080.
> >
> > When I try to reach the exactly same application through IIS (port 80) I
> > get the user validation dialog box and after I try to login with a valid
> > user and password I get HTTP 401.1 - Unauthorized: Logon Failed.
> >
> > TIA,
> > Felipe
> >
>
>
>
> -
> 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 listen for Session LastAccessedTime

2003-02-10 Thread Sean Dockery
The only trivial way that I can think of would be to put a filter on all
requests.

What are you going to use that information for?  Maybe there is another way
to accomplish what you're trying to do.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Victor Soares" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:28
Subject: How to listen for Session LastAccessedTime


Hello,
I've been searching through the Javadocs to figure out how to listen for a
session's LastAccessedTime but haven't been able to find anything. Seems
like the HttpSessionAttributeListener is not notified when a session's
LastAccessedTime is changed.

Is there a way to listen for a session's LastAccessedTime?

thanks,
- vic


-
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: exception after several hours idle

2003-02-10 Thread Sean Dockery
Further to this, is there a firewall between you and your database?  I
believe that you mentioned that your connection timeout for your database
was set to INT_MAX.  That would not prevent the firewall from timing out
your connection and cutting the cord.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Peng Tuck Kwok" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 21:03
Subject: Re: exception after several hours idle


> Could you check and see if your database terminates connections after a
> certain amount of inactivity ? If so you can try and increase the
> duration. Might be worth a shot.
>
> Vladimir Kirillov wrote:
> >>Why do you suspect that it is a problem with the database connection?
> >
> > First there was an exception from JDBC driver that I use. I set
conntection
> > timeout.
> > But there is a porblem somewhere else.
> >
> >
> >>Can you determine if you are running out of disk space somewhere?  Or
> >>perhaps you are trying to safe a file to a location where you don't have
> >>sufficient permissions to do so.  Or perhaps you are trying to load a
file
> >>that does not exist?
> >
> > If I was trying to load non-existing file, I would get this exception
any
> > time.
> > It appeares only after several hours of running idle.
> >
> > Regards,
> >
> > Vladimir Kirillov
> >
> >
> >
> >
> > -
> > 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: Unsubscription not working

2003-02-10 Thread Sean Dockery
You should receive an email that asks you to confirm that you wish to
unsubscribe.  Have you not received that email?  You must reply to that
email before you are unsubscribed.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Naba Kumar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 11:21
Subject: Unsubscription not working


> Hi,
>
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >
> I have been trying to unsubscribe from the list but it doesn't work. I
> have already sent many unsubscribe emails to the above address (subject:
> unsubscribe, body: unsubscribe) and none of them worked.
>
> Please someone from the admins unsubscribe me from the list.
>
> Thanks a lot.
>
> --
> Regards,
> -Naba
>
>
> -
> 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: Strange error

2003-02-10 Thread Sean Dockery
Either your database connection is timing out or else you are trying to use
a ResultSet obtained from a Statement which, in turn, was obtained from a
Connection which you have closed yourself.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Felipe Schnack" <[EMAIL PROTECTED]>
To: "pgsql-jdbc" <[EMAIL PROTECTED]>; "Tomcat Users List"
<[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 04:45
Subject: Strange error


  Please, somebody can help me? I'm getting this error message and I
don't know why... I'm using PostgreSQL 7.3 and Tomcat 4.1.18 connection
pooling mechanism

Connection is closed.  Operation is not permitted.
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.next(AbstractJdbc1ResultSet.java
:63)
at
org.apache.commons.dbcp.DelegatingResultSet.next(DelegatingResultSet.java)
at com.w2.infra.db.DbVector.next(DbVector.java:141)

--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341


-
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: IIS+Tomcat security constraint = Unauthorized: Logon Failed

2003-02-10 Thread Sean Dockery
Where have you defined the user and password that you believe you should be
a valid user?  What is the role constraint that you have defined on the web
resource?  Is the user in question set up for that role?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Felipe Crochik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 21:34
Subject: IIS+Tomcat security constraint = Unauthorized: Logon Failed


> I am trying to use the tomcat security constraints "behind" an IIS web
> server. I know tomcat and the ISAPI filter are working. Also, Tomcat
> authorization is working bypassing IIS using port 8080.
>
> When I try to reach the exactly same application through IIS (port 80) I
> get the user validation dialog box and after I try to login with a valid
> user and password I get HTTP 401.1 - Unauthorized: Logon Failed.
>
> TIA,
> Felipe
>



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




Re: Need help w. another jsp!

2003-02-09 Thread Sean Dockery
Hello again, Steve.

I concur with Michael's recommendation that you should hone your Java
programming skills before you tackle JSP.

- Original Message -
From: Steve Burrus
To: Tomcat Users List
Sent: Sunday, February 09, 2003 17:01
Subject: Re: Need help w. another jsp!


SUCCESS gentlemen with the calendar.jsp!!! I got it to execute in the Tomcat
app. server--probably my very 1st jsp/servlet to successfully run!!! All
that I had to do was to correct a variable name (it had a "-" in it
mistakenly) and then "lo and behold" it ran! I am, however, having a problem
now with another jsp called "ControlFlow.jsp". Here is the 505 server error
page:
HTTP Status 500 -


-
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: Need help w. another jsp!

2003-02-09 Thread Sean Dockery
Hehe.  Your situation is far from desperate.  :-)

The error that you are seeing happened when Tomcat attempted to translate
your JSP file into a Java servlet source code file that it could then
compile and run as a servlet.  Don't despair though; failures can teach you
much more than successes.  I can see what the immediately problem is from
your error message, but I want to have a better background about how to help
you go about fixing it.

If the JSP file is not too large and the JSP does not contain sensitive
material, perhaps you post it here so that other list readers and myself can
have a look to see what the problem might be.  Do not post the file as an
attachment as it may cause problems for some email programs; copy some or
all of the content of the calendar.jsp file and paste it into your message
instead.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Steve Burrus" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 15:28
Subject: Re: Need help w. another jsp!


>
> Sean Dockery, while I VERY MUCH APPRECIATE yer helpful advice which you
have offered to me (in fact, u are the only person so far to offer any
advice for this current problem of mine!)  it still isn't going right at
all!! Here is a screen dump from the tomcat server error page. Note that it
is quick to indicate a jsp compilation 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: Unable to compile class for JSP
>
> An error occurred at line: 64 in the jsp file: /calendar.jsp
>
> Generated servlet error:
> [javac] Compiling 1 source file
>
> C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\calendar_jsp.java:92:
cannot resolve symbol
> symbol  : variable current
> location: class org.apache.jsp.calendar_jsp
>current-Cal.getActualMaximum(currentCal.DAY_OF_MONTH);
>^
>
>
>
> An error occurred at line: 64 in the jsp file: /calendar.jsp
>
> Generated servlet error:
> C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\calendar_jsp.java:92:
cannot resolve symbol
> symbol  : variable Cal
> location: class org.apache.jsp.calendar_jsp
>current-Cal.getActualMaximum(currentCal.DAY_OF_MONTH);
>^
> 2 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.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.
jav

Re: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Sean Dockery
Maybe try Resource.docBase="" to see what that does...  Just out of
curiousity.  :-)

- Original Message -
From: "Mike Johnson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 14:56
Subject: Re: How to configure Tomcat to follow symbolic links.


> Hey, now. The full path does work. Good one. :-)
>
> Thanks,
>
> Mike Johnson
>
> On Sun, 2003-02-09 at 13:47, Sean Dockery wrote:
> > Not sure why that would be happening.  The documentation for Resources
> > states that the Resources.docBase attribute is handled in the same
manner as
> > the Context.docBase attribute in that it is relative to the
Host.appBase.
> >
> > Does using an absolute path for the Resources docBase work?  That is...
> >
> > 
> >> allowLinking="true">
> > 
> >
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> > - Original Message -
> > From: "Mike Johnson" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Sunday, February 09, 2003 12:26
> > Subject: RE: How to configure Tomcat to follow symbolic links.
> >
> >
> > > Ah... Thanks for the correction. :-)
> > >
> > > But, I'm now getting an exception during load if I set it like you
> > > wrote:
> > >
> > > java.lang.reflect.InvocationTargetException:
> > > java.lang.IllegalArgumentException: Document base dealernet does not
> > > exist or is not a readable directory
> > > at
> > >
> >
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
> > 3)
> > > at java.lang.reflect.Method.invoke(Native Method)
> > > at
> > >
> >
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
> > ava:1650)
> > > at
> > >
> >
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
> > ava:1545)
> > > at
> > >
> >
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:15
> > 74)
> > > at
> > > org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919)
> > > at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
> > > at
> > >
> >
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
> > 59)
> > > at
> > > org.apache.commons.digester.Digester.startElement(Digester.java:1237)
> > > at
> > >
> >
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
> > ava:459)
> > > at
> > >
> >
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
> > DocumentParser.java:221)
> > > at
> > >
> >
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
> > va:595)
> > > at
> > >
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
> > cumentFragmentScannerImpl.java:747)
> > > at
> > >
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
> > her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
> > ntFragmentScannerImpl.java:329)
> > > at
> > >
> >
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
> > > at
> > >
> >
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
> > > at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> > > at
> > >
> >
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
> > 5)
> > > at org.apache.commons.digester.Digester.parse(Digester.java:1495)
> > > at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
> > > 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:203)
> > > [ERROR] Digester - -Begin event threw exception
> > > 
> > > Catalina.start: java.lang.reflect.InvocationTargetException
> > > java.lang.reflect.InvocationTargetException
> > > at
> > >
&g

Re: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Sean Dockery
Not sure why that would be happening.  The documentation for Resources
states that the Resources.docBase attribute is handled in the same manner as
the Context.docBase attribute in that it is relative to the Host.appBase.

Does using an absolute path for the Resources docBase work?  That is...


  


Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Mike Johnson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 12:26
Subject: RE: How to configure Tomcat to follow symbolic links.


> Ah... Thanks for the correction. :-)
>
> But, I'm now getting an exception during load if I set it like you
> wrote:
>
> java.lang.reflect.InvocationTargetException:
> java.lang.IllegalArgumentException: Document base dealernet does not
> exist or is not a readable directory
> at
>
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
3)
> at java.lang.reflect.Method.invoke(Native Method)
> at
>
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1650)
> at
>
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1545)
> at
>
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:15
74)
> at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919)
> at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
> at
>
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
> at
> org.apache.commons.digester.Digester.startElement(Digester.java:1237)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
> at
>
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
> at
>
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:595)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:747)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
> at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
> at org.apache.commons.digester.Digester.parse(Digester.java:1495)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
> 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:203)
> [ERROR] Digester - -Begin event threw exception
> 
> Catalina.start: java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException
> at
>
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
> at
>
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
> at
> org.apache.commons.digester.Digester.startElement(Digester.java:1240)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
> at
>
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
> at
>
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:595)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:747)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
> at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
> at org.apache.commons.digester.Digester.parse(Digester.java:1495)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>

Re: Tomcat complains: java.security.NoSuchProviderException: no such provider: BC

2003-02-09 Thread Sean Dockery
Sorry about that.  It was about 3 AM local time when I posted that message.

Have you tried consulting this document:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/security-manager-howto.html

I found an interesting excerpt from that document...

"The security policies implemented by the Java SecurityManager are
configured in the $CATALINA_HOME/conf/catalina.policy file. This file
completely replaces the java.policy file present in your JDK system
directories."

Maybe it can give you some clues as to what you need to do.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com


- Original Message -
From: "Mark Liu" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 09:19
Subject: Re: Tomcat complains: java.security.NoSuchProviderException: no
such provider: BC


> Thank you, Sean,
>
> But you did not finish reading my message, in which I
> said
>
> > I even copied the BC bundle jar file to C:\Program
> > Files\Apache Group\Tomcat 4.1\common\lib, but
> > Tomcat still keeps complaining:
> >
> > java.security.NoSuchProviderException: no such
> > provider: BC
>
> Mark.
>
>
> --- Sean Dockery <[EMAIL PROTECTED]> wrote:
> > Remember that your classpath in your environment
> > which is used by the java
> > compiler when you issue a compile command from the
> > command line is not the
> > same classpath that Tomcat uses when it is running.
> >
> > Move the JAR into $CATALINA_HOME/common/lib.  I
> > don't believe that Tomcat
> > supports loading JAR files from
> > $JRE_HOME/jre/lib/ext.
> >
> > - Original Message -
> > From: "Mark Liu" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, February 09, 2003 00:42
> > Subject: Tomcat complains:
> > java.security.NoSuchProviderException: no such
> > provider: BC
> >
> >
> > > I run Tomcat 4.1.18 on my Win2K box.
> > >
> > > Because my project will use bouncycastle
> > cryptographic
> > > bundle (known as BC version 1.18), I have this
> > package
> > > properly installed on my system.  If you don't
> > believe
> > > it, look at the following output:
> > >
> > > C:\Java>java ListCryptoProviders
> > > SUN version 1.2
> > > SunJSSE version 1.4
> > > SunRsaSign version 1.0
> > > SunJCE version 1.4
> > > SunJGSS version 1.0
> > > BC version 1.18
> > >
> > > C:\Java>
> > >
> > > You see, BC version 1.18 is nicely shown there.
> > >
> > > It is the output from the following short code:
> > >
> > > /* This class lists the cryptographic
> > >  * providers available on current system.
> > >  */
> > >
> > > import java.security.*;
> > >
> > > class ListCryptoProviders
> > > {  public static void main(String []args)
> > >{  Provider [] providers =
> > Security.getProviders();
> > >   for(int i=0; i > >   { System.out.println(providers[i]);
> > >   }
> > > }
> > > }
> > >
> > > However, the Servlet I write which uses the BC
> > bundle
> > > does not work with Tomcat.
> > >
> > > When I try to invoke that servlet from the
> > browser,
> > > the Tomcat console says:
> > >
> > > java.security.NoSuchProviderException: no such
> > > provider: BC
> > >
> > > It's weird!
> > >
> > > I have put the BC bundle jar file under both
> > > JDK_HOME\jre\lib\ext and Program
> > > Files\Java\j2re1.4.0\lib\ext.
> > >
> > > Needless to say that I have also added the
> > following
> > > line
> > >
> > >
> >
> security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
> > >
> > > in file java.security in its due paths (one under
> > > JDK_HOME\jre\lib\security and one under C:\Program
> > > Files\Java\j2re1.4.0\lib\security).
> > >
> > > I even copied the BC bundle jar file to C:\Program
> > > Files\Apache Group\Tomcat 4.1\common\lib, but
> > Tomcat
> > > still keeps complaining:
> > >
> > > java.security.NoSuchProviderException: no such
> > > provider: BC
> > >
> > > I have no clue how I should handle this.
> > >
> > > Any idea ple

Re: exception after several hours idle

2003-02-09 Thread Sean Dockery
Why do you suspect that it is a problem with the database connection?

Can you determine if you are running out of disk space somewhere?  Or
perhaps you are trying to safe a file to a location where you don't have
sufficient permissions to do so.  Or perhaps you are trying to load a file
that does not exist?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Vladimir Kirillov" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 12:47
Subject: Re: exception after several hours idle


>
> > > Could anyone tell me what to change in default Tomcat 4.1.18
> > > configuration to avoid exception after several hours (night)
> > > of running idle? My web application uses database connection,
> > > but database driver connection timeout is set to Integer.MAX,
> > > so it should not be the reason.
> > Even if you set the timeout to Integer.MAX, maybe try to set
> > "autoReconnect=true" in your connection url. I had problems with my
> > webapp when idle overnight because my MySQL J/Connector cut the
> > connections of my connection pool after 8 hours inactivity by default. I
> > guess using autoReconnect and related parameters couldn't hurt, although
> > i didn't yet try to avoid disconnecting by increasing the timeout. I
> > would prefer a reconnect over a high timeout because you never know for
> > sure if "something else" is killing your connection and with
> > autoreconnect you should be on the safe side for every possibility of a
> > (temporarily) dead connection.
> Thank you fro the tip, I'll try it.
>
> > > Here is the sample of exception:
> > I can't figure out so much from this exception... FileIO?
> Yes, it looks like file IO problem. And exception comes from inner Tomcat
> classes
> that handle request processing, not from the driver classes. Strange
thing.
>
>
>
> -
> 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: Compile my ".java" directly in the Webapps directory....

2003-02-09 Thread Sean Dockery
No.  Tomcat will automatically compile JSP files to servlets for you, but
not .java source files.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "fred" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 08:02
Subject: Compile my ".java" directly in the Webapps directory


Hello,
can somebody tell me if i can compile the ".java" drectly in the directory
of my webapps.
Is it an option in the "sever.xml" ?
It's Apache 2.0.43 with Tomcat 4.1.18 with the JK2 but i think that is the
same with Tomcat standalone...
Thank you.
Fred



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




Re: War files / codeBase and security permissions (v4.0.4)

2003-02-09 Thread Sean Dockery
You should not have to make any changes to policy files for this to work.
It is Tomcat itself that is unpacking the WAR files--so assigning
permissions to the WAR file itself won't do anything.  What does your
server.xml file look like?  How did you determine that WAR files weren't
automatically being unpacked?  What error did you see?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Kenneth J Baker" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, February 08, 2003 21:13
Subject: War files / codeBase and security permissions (v4.0.4)


>
> I'm deploying a war file with unpackWARs="false".  I am trying to grant
> permissions to this war in 04webapps.policy.
>
> Here is what I've tried...
>
> Given the examples this is what I would expect to work but doesn't:
> grant codeBase "file:${catalina.home}/webapps/iface.war!/-" {
> permission java.security.AllPermission;
> };
>
>
> This doesn't work (but works if unpackWARs="true"):
> grant codeBase "file:${catalina.home}/webapps/iface/-" {
> permission java.security.AllPermission;
> };
>
>
> This works because this is where tomcat extracts the war to (with
unpackWARs set to false)
> grant codeBase "file:${catalina.home}/work/Standalone/localhost/iface/-" {
> permission java.security.AllPermission;
> };
>
>
> What is the correct way to specify permissions to give to a war file?
>
> Thanks,
> Ken
>
>
> -
> 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 complains: java.security.NoSuchProviderException: no such provider: BC

2003-02-09 Thread Sean Dockery
Remember that your classpath in your environment which is used by the java
compiler when you issue a compile command from the command line is not the
same classpath that Tomcat uses when it is running.

Move the JAR into $CATALINA_HOME/common/lib.  I don't believe that Tomcat
supports loading JAR files from $JRE_HOME/jre/lib/ext.

- Original Message -
From: "Mark Liu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 00:42
Subject: Tomcat complains: java.security.NoSuchProviderException: no such
provider: BC


> I run Tomcat 4.1.18 on my Win2K box.
>
> Because my project will use bouncycastle cryptographic
> bundle (known as BC version 1.18), I have this package
> properly installed on my system.  If you don't believe
> it, look at the following output:
>
> C:\Java>java ListCryptoProviders
> SUN version 1.2
> SunJSSE version 1.4
> SunRsaSign version 1.0
> SunJCE version 1.4
> SunJGSS version 1.0
> BC version 1.18
>
> C:\Java>
>
> You see, BC version 1.18 is nicely shown there.
>
> It is the output from the following short code:
>
> /* This class lists the cryptographic
>  * providers available on current system.
>  */
>
> import java.security.*;
>
> class ListCryptoProviders
> {  public static void main(String []args)
>{  Provider [] providers = Security.getProviders();
>   for(int i=0; i   { System.out.println(providers[i]);
>   }
> }
> }
>
> However, the Servlet I write which uses the BC bundle
> does not work with Tomcat.
>
> When I try to invoke that servlet from the browser,
> the Tomcat console says:
>
> java.security.NoSuchProviderException: no such
> provider: BC
>
> It's weird!
>
> I have put the BC bundle jar file under both
> JDK_HOME\jre\lib\ext and Program
> Files\Java\j2re1.4.0\lib\ext.
>
> Needless to say that I have also added the following
> line
>
> security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
>
> in file java.security in its due paths (one under
> JDK_HOME\jre\lib\security and one under C:\Program
> Files\Java\j2re1.4.0\lib\security).
>
> I even copied the BC bundle jar file to C:\Program
> Files\Apache Group\Tomcat 4.1\common\lib, but Tomcat
> still keeps complaining:
>
> java.security.NoSuchProviderException: no such
> provider: BC
>
> I have no clue how I should handle this.
>
> Any idea please?
>
> Mark
>
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.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: Need help w. another jsp!

2003-02-09 Thread Sean Dockery
Hello, Steve.

Before JSP files can be compiled by javac, they have to be translated to
Java source files by a JSP compiler.  I doubt you really need to compile the
JSP yourself as Tomcat will automatically compile JSP files when they are
requested by a browser.  Move your calendar.jsp into the webapps\ROOT.  Then
access it as http://localhost:8080/calendar.jsp using your web browser when
Tomcat is running.

The only reason why you would want to compile JSP files before they are
served is to eliminate the compiler hit when the JSP file is first
requested, or to perform some automated tests (by confirming that all of
your JSP files are legal).  When you are casually building a web
application, pre-compiling JSP files unnecessary complicates the process.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Steve Burrus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 08, 2003 23:35
Subject: Need help w. another jsp!


>
> Hello all, I am having yet more trouble with executing a jsp in the right
way! The jsp in question this time is a "calendar.jsp", which as the name of
it suggests, displays a calendar. I placed/put it into the right folder, the
C:\jakarta-tomcat\webapps\ROOT\WEB-INF\classes, but alas, when I go to
compiling it in DOS, all that I seem to get for my efforts is this:
>
> C:\jakarta-tomcat-4.1.18\webapps\ROOT\WEB-INF\classes>javac calendar.jsp
> javac: invalid flag: calendar.jsp
> Usage: javac  
> where possible options include:
>   -gGenerate all debugging info
>   -g:none   Generate no debugging info
>   -g:{lines,vars,source}Generate only some debugging info
>   -nowarn   Generate no warnings
>   -verbose  Output messages about what the compiler is
doing
>   -deprecation  Output source locations where deprecated APIs
are us
> ed
>   -classpath  Specify where to find user class files
>   -sourcepath Specify where to find input source files
>   -bootclasspath  Override location of bootstrap class files
>   -extdirsOverride location of installed extensions
>   -d Specify where to place generated class files
>   -encoding   Specify character encoding used by source
files
>   -source  Provide source compatibility with specified
release
>   -target  Generate class files for specific VM version
>   -help Print a synopsis of standard options
>
> FYI: I had just gotten thru with editing my System applet in the env.
variables section for the classpath specifying the lib folder, but that
didn't seem to help! Can someone please help me? Thank you
>



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




Re: trouble to run servlet

2003-02-09 Thread Sean Dockery
I would suspect it is because you are running Apache on port 80 and not
Tomcat.  You will need to set up a mod_jk (or mod_jk2) connector to have
Apache forward specific URL requests to Tomcat.

Why are you putting a HelloServlet inside the admin application anyway?

- Original Message -
From: "Jianping Zhu" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, February 08, 2003 20:29
Subject: trouble to run servlet


> I have redhat 7.3 with apach tomcat running on it
> I put HelloServlet on following directoy:
>
"usr/local/jwsdp-1_0_01/server/webapps/admin/WEB-INF/classes/HelloServlet.cl
ass"
>
> Then i try "http://mango.ctegd.uga.edu/servlet/HelloServlet"; to invoke the
> servlet. but failed
> in error_log i got:
> "[Sat Feb  8 22:19:07 2003] [error] [client 128.193.47.116] File does not
> exist: /var/www/mango.ctegd.uga.edu/html/servlet/HelloServlet
> "
>
> Why? how can i fix this problem?
>
> Thanks
>
>
> -
> 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 configure Tomcat to follow symbolic links.

2003-02-08 Thread Sean Dockery
I believe that there is more to this than that.

allowLinking is a property of org.apache.naming.resources.FileDirContext,
not org.apache.catalina.core.StandardContext.  FileDirContext is the default
class for a Resources declaration--of which Context must be the parent.

So, you would start with this...



   



and from there... I'm not sure.  (I've never done this before--I'm just
trying to figure it out based on what I've read and materials that can be
found on the Jakarta web site.)

--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Hans Deragon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Mike Johnson wrote:
> > hi,
> >
> > just add allowLinks="true" to your context config, like:
> >
> >  > reloadable="true" allowLinking="true" />
>
> Tried, but does not work.  I have the following:
>
> lrwxrwxrwx1 root root9 Feb  8 10:33 aaa -> graphics/
> drwxr-xr-x5 root root 4096 Feb  8 09:30 graphics/
>
> Yet, http://localhost:8080/graphics/ works, but http://localhost:8080/aaa/
> does not (404 error, resource unavailable).  The context used is:
>
> 
>
> Where deragon contains both the aaa link and graphics directory.  Tomcat
> 4.1.18 being used.
>
>
> Sincerely,
> Hans Deragon
>
> >
> >
> > On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:
> >
> >>Greetings.
> >>
> >>
> >>   Simple question:  How to configure Tomcat to follow symbolic links?
I have
> >>Tomcat 4.1.18.
> >>
> >>
> >>Sincerely,
> >>Hans Deragon
> >>
> >>
> >>-
> >>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: DataSourceRealm, Exception performing authentication ?

2003-02-08 Thread Sean Dockery
Did you declare the Realm after your Resource or before it?


--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Uros Kotnik" <[EMAIL PROTECTED]> wrote in message
017501c2cf7f$9684b170$[EMAIL PROTECTED]">news:017501c2cf7f$9684b170$[EMAIL PROTECTED]...
> Here is the problem,
>
> I defined DataSource in Server.xml in Context for my app like this :
>
>  type="javax.sql.DataSource"/>
> 
> 
>
> and that connection is working OK from my test servlet like this :
>
>   Context initCtx = new InitialContext();
>   Context envCtx = (Context) initCtx.lookup("java:comp/env");
>   DataSource ds = (DataSource)envCtx.lookup("jdbc/TestDB");
>
> But when I define DataSourceRealm in Context for my app.
>
> 
> dataSourceName="jdbc/TestDB"
> userTable="ic_users" userNameCol="login_name" userCredCol="password"
> userRoleTable="ic_groups" roleNameCol="group_name"/>
>
> I tried diverse combinations of DS name like :
> "java:comp/env/jdbc/TestDB"
>
> But I always get an exception from
> org.apache.catalina.realm.DataSourceRealm :
>
> 2003-02-08 15:35:06 DataSourceRealm[/testapp]: Exception performing
> authentication
> javax.naming.NameNotFoundException: Name jdbc is not bound in this
> Context
> at
> org.apache.naming.NamingContext.lookup(NamingContext.java:811)
> at
> org.apache.naming.NamingContext.lookup(NamingContext.java:194)
> at
> org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:463)
> at
> org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.j
> ava:315)
> at
> org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut
> henticator.java:263)
> .
> .
>
> What could be the problem ?
>
> Thanx.
>
>




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




Re: How to avoid error-reports? -Want

2003-02-08 Thread Sean Dockery
What do you mean when you say, "Tomcat creates an error report?"  What
exactly do you see?

"Morten Mortensen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi,
>
> Is it possible to avoid error reports?
>
> I have an application, where in some cases it is appropriate to return a
> HTTP reply code of 404, which of course can be done by setting -
>
>   response.setStatus(HttpServletResponse.SC_NOT_FOUND);
>
> But then Tomcat creates an error-report and in this way MANIPULATES THE
HTTP
> REPLIES! I would wery much like to *avoid* this and have a *clean* reply
> returned!
>
> (Besides, I think it is a real bad habit to reveal the technology used on
> the server-side, because it is of no relevance for the user-agent -on the
> contrary, it can be harmful-...)
>
> How do I do this?
>
>  -
>
> As far as I can tell, I can not use , because the scanario is
not
> specific for the reply-code "404", but for a range of codes. Surely, I do
> not want to specify all codes.
>
> What also might complicate things: The content-type request within the
HTTP
> request is not fixed to a single type.
>
>  -
>
> I see, that the -element has an attribute "errorReportValveClass" -
> "Java class name of the error reporting valve which will be used by this
> Host. The responsability of this valve is to output error reports.".
>
> How do I knock this out? Can I set it to the empty attribute like
> errorReportValveClass="" or something?
>
> You are not going to say, I have to implement a valve myself? Now, THAT
> would be... lame.
>
>  -
>
>  ?
>
> Med venlig hilsen
>   Morten Sabroe Mortensen
>   mailto:[EMAIL PROTECTED]




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




Re: Connecting PostgreSQL with JNDI

2003-02-08 Thread Sean Dockery
In your web application's , you need a  to specify
that the global resource is accessible in a given context.  Look at the
example at the bottom of the page at...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html#Resource
%20Links

--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Tom Sheehan" <[EMAIL PROTECTED]> wrote in message
00b701c2cf32$40331840$[EMAIL PROTECTED]">news:00b701c2cf32$40331840$[EMAIL PROTECTED]...
> Hello all,
>
> I've been trying to follow along with the JNDI-datasource examples and
seem
> to have gotten off track somewhere.  I would greatly appreciate your
having
> a look at this.  Google searches on this topic have helped, but I'm still
> lost.
>
> Running this dbtest.jsp doesn't generate anything in catalina.out or the
> localhost log.  Reloading the page generates some local host entries, but
> nothing that looks like an error to me.  The PostgreSQL log isn't
> complaining either.
>
> Thank you for considering the problem.
>
> Tom Sheehan




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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
Here was the real message that should have been posted.  The SMTP script
that I included in my previous post apparently interacted with the gmane
SMTP server (their NNTP service relayed my message to tomcat-user).

"Sean Dockery" <[EMAIL PROTECTED]> wrote in message news:...
> I'm running out of ideas.  Maybe the problem is with the SMTP
connection...
>
> Put the following in a text file named commands.txt (without the 
> tags)...
>
> 
> HELO www.corridortechnology.com
> MAIL FROM:[EMAIL PROTECTED]
> RCPT TO:[EMAIL PROTECTED]
> RCPT TO:[EMAIL PROTECTED]
> DATA
> Subject: Re: SendMailServlet - problem, debugging tips
>
> Directly connecting to the SMTP server worked!.
> .
>
> QUIT
>
> 
>
> ...then pipe this to your SMTP server via...
>
> telnet mail.ctg.com 25 < commands.txt
>
>
>
> "Sean Dockery" <[EMAIL PROTECTED]> wrote in message
> b20vkr$1ev$[EMAIL PROTECTED]">news:b20vkr$1ev$[EMAIL PROTECTED]...
> > No.  The content of "name" is the parameter name--not the name of your
> SMTP
> > server.  The content of "value" is the value of the parameter--that is,
> your
> > SMTP server's name.
> >
> > Try this instead...
> >
> > 
> >   mail.smtp.host
> >   mail.ctg.com
> > 
> >
> >
> > --
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> > "tomcat guy" <[EMAIL PROTECTED]> wrote in message
> > 01c001c2ced8$d1465360$6601a8c0@ctg">news:01c001c2ced8$d1465360$6601a8c0@ctg...
> > > It's not suppose to be the name of the mail server?
> > >
> > > - Original Message -
> > > From: "Filip Hanik" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Friday, February 07, 2003 12:18 PM
> > > Subject: RE: SendMailServlet - problem, debugging tips
> > >
> > >
> > > 
> > >   mail.ctg.com
> > >   localhost
> > > 
> > >
> > > the name is invalid
> > >
> > > Filip
> > >
> > > -Original Message-
> > > From: tomcat guy [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, February 07, 2003 10:15 AM
> > > To: Tomcat Users List
> > > Subject: Re: SendMailServlet - problem, debugging tips
> > >
> > >
> > > All - thanks for the replies, here are the answers if I missed
anything
> > > please let me know!
> > >
> > > The SendMailServlet is in the examples, that should be mapped
correctly
> by
> > > default, right?
> > >
> > > The web.xml in webapps/examples/WEB-INF is the defualt.  I was
assuming
> > > since it came with the examples all would be good as the other
servlets
> > are
> > > running fine...
> > >
> > > The logs do not seem to tell me a lot.   Any suggestions?
> > >
> > > The mail server is running on the local machine.
> > >
> > > The From address is valid.
> > >
> > > My firewall doesn't appear to be an issue as I have tested with it
> enabled
> > > and disabled.
> > >
> > > Here is my ResourceParams for the mail/Session for localhost:
> > >
> > >  
> > > usersa
> > >
password
> > > driverClassName
> > >   org.hsql.jdbcDriver
> > > driverName
> > >   jdbc:HypersonicSQL:database
> > >   
> > >> > type="javax.mail.Session"/>
> > >   
> > > 
> > >   mail.ctg.com
> > >   localhost
> > > 
> > >   
> > >> > global="simpleValue"
> > > type="java.lang.Integer"/>
> > > 
> > >
> > > Thanks much!
> > > Chris
> > >
> > >
> > > - Original Message -
> > > From: "Erik Price" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Friday, February 07, 2003 10:29 AM
> > > Subject: Re: SendMailServlet - problem, debugging tips
> > >
> > >
> > > >
> > > >
> > > > chris schild wrote:
> > > > > Would anyone be able to provide some debugging tips for Tomcat
> > servlets?
> > > >
> > > > Logging.
> > > >
> > > > > Also, what would cause a servlet to be unavailable?
> > > >
> > > > If you didn't map the servlet to a URL-pattern in your web.xml.
> > > >
> > > >
> > > >
> > > > Erik
> > > >
> > > >
> > >
> -
> > > > 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: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
Oh, that's interesting.  It seems that my inline SMTP script reacted with
the gmane SMTP server.

"Sean Dockery" <[EMAIL PROTECTED]> wrote in message
b218r3$eea$[EMAIL PROTECTED]">news:b218r3$eea$[EMAIL PROTECTED]...
> I'm running out of ideas.  Maybe the problem is with the SMTP
connection...
>
> Put the following in a text file named commands.txt (without the 
> tags)...
>
> 
> HELO www.corridortechnology.com
> MAIL FROM:[EMAIL PROTECTED]
> RCPT TO:[EMAIL PROTECTED]
> RCPT TO:[EMAIL PROTECTED]
> DATA
> Subject: Re: SendMailServlet - problem, debugging tips
>
> Directly connecting to the SMTP server worked!.




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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
I'm running out of ideas.  Maybe the problem is with the SMTP connection...

Put the following in a text file named commands.txt (without the 
tags)...


HELO www.corridortechnology.com
MAIL FROM:[EMAIL PROTECTED]
RCPT TO:[EMAIL PROTECTED]
RCPT TO:[EMAIL PROTECTED]
DATA
Subject: Re: SendMailServlet - problem, debugging tips

Directly connecting to the SMTP server worked!.

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




Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically

2003-02-07 Thread Sean Dockery
Hmmm...  I'm not sure that catalina can write to /tmp just because your
users can.  Try running this code before calling MultipartRequest multi =
...

FileWriter fw = new FileWriter("/tmp/hello.txt"); // (line 1)
fw.write("Hello World\n");
fw.close();

When you start Tomcat, what value does it say it is using for
$CATALINA_TEMP?  Try using that directory (instead of /tmp) for your file
upload.

Also, defaultFileRenamePolicy was initialized to be new
DefaultFileRenamePolicy(), right?
--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Patrick L Archibald" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've tried JVM 1.2 and 1.3. The public (meaning valid users) have all
> authority to the "/tmp" directory. This direcoty is Coded character set
> ID . . . . . . . . :   37. I tried another directory "/public/platemp"
> which is Coded character set ID . . . . . . . . :   437.  I don't know
> why the "L" prefix is in the stack trace. It has always been that way as
> far as I can remember.
>
> I added a sendMessage method using the jt400 message queue function. I'm
> getting messages now. The System.out.println and System.err.println were
> never being written.
>
> By using the sendMessage method I've found the statement it is blowing
> up on:
>
>  MultipartRequest multi = new MultipartRequest(request, "/tmp", 5000
> * 1024, defaultFileRenamePolicy);
>
> Any more suggestions? Is there something wrong with my statement above?
>
> BTW, the upload.war application that comes with the com.oreilly.servlet
> packages blows up too.
>
> Thanx, PLA
>
>
> Sean Dockery wrote:
>
> > I doubt the JVM is the problem.  What version are you using, by the
> > way? (java -version)
> >
> > There is probably still something we're missing in your root cause...
> >
> > What is with the "L" prefix on some of the class names in the root
> > cause message?  Ljava/lang/String?  Those aren't actually in your
> > code?  Are they?  The "L" and "IL" a probably an artifact of the java
> > compiler, but maybe do a search for "Ljava" in your source code--just
> > to be sure...
> >
> > There is also mention of a FileRenamePolicy.  Do you have "write"
> > permissions to the area at which the uploaded file is to be copied?
> >
> > AS/400s use EBCDIC (crazy IBM sticking to their own inventions)
> > instead of ASCII.  Could that be a problem?
> >
> > At 21:50 2003-02-06 -0500, you wrote:
> >
> >> No difference in common.  I've installed 4.1.18 and still getting the
> >> same error. Could the AS/400 JVM be suspect?
> >>
> >> Thanx, PLA
> >>
> >>
> >>> root cause
> >>>
> >>> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
> >>>  java/lang/Throwable.(Ljava/lang/String;)V+4 (Throwable.java:90)
> >>>  java/lang/LinkageError.(Ljava/lang/String;)V+1
> >>> (LinkageError.java:39)
> >>>  java/lang/NoClassDefFoundError.(Ljava/lang/String;)V+1
> >>> (NoClassDefFoundError.java:43)
> >>>
com/oreilly/servlet/multipart/MultipartParser.(Ljavax/servlet/http/HttpServl
etRequest;IZZ)V+23
> >>> (MultipartParser.java:114)
> >>>
com/oreilly/servlet/multipart/MultipartParser.(Ljavax/servlet/http/HttpServl
etRequest;I)V+1
> >>> (MultipartParser.java:94)
> >>>
com/oreilly/servlet/MultipartRequest.(Ljavax/servlet/http/HttpServletRequest
;Ljava/lang/String;ILjava/lang/String;Lcom/oreilly/servlet/multipart/FileRen
amePolicy;)V+148
> >>> (MultipartRequest.java:219)
> >>>
com/oreilly/servlet/MultipartRequest.(Ljavax/servlet/http/HttpServletRequest
;Ljava/lang/String;ILcom/oreilly/servlet/multipart/FileRenamePolicy;)V+1
> >>> (MultipartRequest.java:148)
> >>>
FileUploadDownloadServlet3.performUpload(Ljavax/servlet/http/HttpServletRequ
est;Ljavax/servlet/http/HttpServletResponse;)V+0
> >>> (FileUploadDownloadServlet3.java:293)
> >>> FileUploadDownloadServlet3.doPost(Ljavax/servlet/http/HttpServletReque
st;Ljavax/servlet/http/HttpServletResponse;)V+0
> >>> (FileUploadDownloadServlet3.java:57)
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.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: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
No.  The content of "name" is the parameter name--not the name of your SMTP
server.  The content of "value" is the value of the parameter--that is, your
SMTP server's name.

Try this instead...


  mail.smtp.host
  mail.ctg.com



--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"tomcat guy" <[EMAIL PROTECTED]> wrote in message
01c001c2ced8$d1465360$6601a8c0@ctg">news:01c001c2ced8$d1465360$6601a8c0@ctg...
> It's not suppose to be the name of the mail server?
>
> - Original Message -
> From: "Filip Hanik" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 12:18 PM
> Subject: RE: SendMailServlet - problem, debugging tips
>
>
> 
>   mail.ctg.com
>   localhost
> 
>
> the name is invalid
>
> Filip
>
> -Original Message-
> From: tomcat guy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 07, 2003 10:15 AM
> To: Tomcat Users List
> Subject: Re: SendMailServlet - problem, debugging tips
>
>
> All - thanks for the replies, here are the answers if I missed anything
> please let me know!
>
> The SendMailServlet is in the examples, that should be mapped correctly by
> default, right?
>
> The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
> since it came with the examples all would be good as the other servlets
are
> running fine...
>
> The logs do not seem to tell me a lot.   Any suggestions?
>
> The mail server is running on the local machine.
>
> The From address is valid.
>
> My firewall doesn't appear to be an issue as I have tested with it enabled
> and disabled.
>
> Here is my ResourceParams for the mail/Session for localhost:
>
>  
> usersa
> password
> driverClassName
>   org.hsql.jdbcDriver
> driverName
>   jdbc:HypersonicSQL:database
>   
>type="javax.mail.Session"/>
>   
> 
>   mail.ctg.com
>   localhost
> 
>   
>global="simpleValue"
> type="java.lang.Integer"/>
> 
>
> Thanks much!
> Chris
>
>
> - Original Message -
> From: "Erik Price" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 10:29 AM
> Subject: Re: SendMailServlet - problem, debugging tips
>
>
> >
> >
> > chris schild wrote:
> > > Would anyone be able to provide some debugging tips for Tomcat
servlets?
> >
> > Logging.
> >
> > > Also, what would cause a servlet to be unavailable?
> >
> > If you didn't map the servlet to a URL-pattern in your web.xml.
> >
> >
> >
> > Erik
> >
> >
> > -
> > 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: Can someone tell me please.........

2003-02-07 Thread Sean Dockery
Try setAttribute and getAttribute...

"Steve Burrus" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can someone tell me please just what the current methods are supposed to
be for the deprecated "getValue()" and "setValue()" and there's some other
method dealing with "Value" that I momentarily forgot! A recent program that
I was trying to run gave me about 3 separate deprecation warnings when I
tried to compile it! Thanx in advance.




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




Re: JDBC Realm Authentication Problem

2003-02-07 Thread Sean Dockery
Yes, that is correct.  To have a Realm apply only to a context, it must
declared inside the context tags.  So...



becomes


  



--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Geoff Peters" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Sean - I didn't omit anything in my post - the serverl.xml is as it is in my
app. I think you might have inadvertently answered my question, does my
context level realm physically have to reside inside the context tag? (do I
have to put a  on after the realm)? I manager to get everything
working, it is authenticating the manager app against the database fine now,
and the lower level authentication works as well, I am not sure which realm
is being used where, I am going to create a new database and see that it is
working right.


Thanks for the reply!!

Geoff


-
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: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
Did you restart Tomcat?

"tomcat guy" <[EMAIL PROTECTED]> wrote in message
002b01c2cee1$7035c250$6601a8c0@ctg">news:002b01c2cee1$7035c250$6601a8c0@ctg...
> It didn't seem to do the trick. This is gettin a little frustrating.  I
> wouldn't mind as the others are working but this is what I am looking
for...
> Are the error msgs to be going to logs/stderr?
>
> Any other suggestions?
>
>
> - Original Message -
> From: "Filip Hanik" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 12:43 PM
> Subject: RE: SendMailServlet - problem, debugging tips
>
>
> mail.smtp.host is the name of the parameter
>
> 
> mail.smtp.host
> mail.ctg.com
> 
>
> -Original Message-
> From: tomcat guy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 07, 2003 10:43 AM
> To: Tomcat Users List
> Subject: Re: SendMailServlet - problem, debugging tips
>
>
> It's not suppose to be the name of the mail server?
>
> - Original Message -
> From: "Filip Hanik" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 12:18 PM
> Subject: RE: SendMailServlet - problem, debugging tips
>
>
> 
>   mail.ctg.com
>   localhost
> 
>
> the name is invalid
>
> Filip
>
> -Original Message-
> From: tomcat guy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 07, 2003 10:15 AM
> To: Tomcat Users List
> Subject: Re: SendMailServlet - problem, debugging tips
>
>
> All - thanks for the replies, here are the answers if I missed anything
> please let me know!
>
> The SendMailServlet is in the examples, that should be mapped correctly by
> default, right?
>
> The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
> since it came with the examples all would be good as the other servlets
are
> running fine...
>
> The logs do not seem to tell me a lot.   Any suggestions?
>
> The mail server is running on the local machine.
>
> The From address is valid.
>
> My firewall doesn't appear to be an issue as I have tested with it enabled
> and disabled.
>
> Here is my ResourceParams for the mail/Session for localhost:
>
>  
> usersa
> password
> driverClassName
>   org.hsql.jdbcDriver
> driverName
>   jdbc:HypersonicSQL:database
>   
>type="javax.mail.Session"/>
>   
> 
>   mail.ctg.com
>   localhost
> 
>   
>global="simpleValue"
> type="java.lang.Integer"/>
> 
>
> Thanks much!
> Chris
>
>
> - Original Message -
> From: "Erik Price" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 10:29 AM
> Subject: Re: SendMailServlet - problem, debugging tips
>
>
> >
> >
> > chris schild wrote:
> > > Would anyone be able to provide some debugging tips for Tomcat
servlets?
> >
> > Logging.
> >
> > > Also, what would cause a servlet to be unavailable?
> >
> > If you didn't map the servlet to a URL-pattern in your web.xml.
> >
> >
> >
> > Erik
> >
> >
> > -
> > 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]




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




Re: servlet URL

2003-02-07 Thread Sean Dockery
Oops.  Felipe did ask for the servlet URL.

For finding other servlets in the application, I suppose that a servlet
could read its own .xml file.  :-)

"Will Hartung" <[EMAIL PROTECTED]> wrote in message
088201c2cee6$7280f890$0101@Will">news:088201c2cee6$7280f890$0101@Will...
> That only works when the requester is the servlet itself. Also, just
because
> you have the name of a servlet doesn't mean you know a valid URL for that
> servlet, as they don't have to match.
>
> The key here, I think, is that in the past servlets were able to "see"
other
> servlets within the webapp, but today I think that access is limited.
>
> So, if you are in ServletA and want the URL to ServeltB, there's no
obvious
> way find that information.
>
> Regards,
>
> Will Hartung
> ([EMAIL PROTECTED])
>
> - Original Message -
> From: "Sean Dockery" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 11:05 AM
> Subject: Re: servlet URL
>
>
> > HttpServlet.getServletName() would seem like the logical choice.
> > --
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> >
> > "Felipe Schnack" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >   How I retrieve the URL an HttpServlet instance is mapped to?
> >
> > --
> >
> > Felipe Schnack
> > Analista de Sistemas
> > [EMAIL PROTECTED]
> > Cel.: (51)91287530
> > Linux Counter #281893
> >
> > Centro Universitário Ritter dos Reis
> > http://www.ritterdosreis.br
> > [EMAIL PROTECTED]
> > Fone/Fax.: (51)32303341
> >
> >
> >
> >
> > -
> > 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: COMMUNICATION LINK FAILURE

2003-02-07 Thread Sean Dockery
Where is the database running?  On another machine?  Is there a firewall
between you and the database?


--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Laxmikanth M.S." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
> well and wish the same...
> I am getting a peculiar error ..
> I am using MySQL3.23.43 with tomcat4.1.12.
> I have written a bean which talks with DB and updates a table...this is
> running in a loop and so I have used PreparedStatement
> after 33 rows are Inserted it shows the below error
>
> "java.sql.SQLException: Communication link failure: java.io.IOException
> at org.gjt.mm.mysql.MysqlIO.clearAllReceive(Unknown Source)
> at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(Unknown Source)
> at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
> at org.gjt.mm.mysql.PreparedStatement.executeQuery(Unknown Source)
> at hkbeans.fundProfileToDB.updateprice(fundProfileToDB.java:2058)
> at hkbeans.fundProfileToDB.csvToDB(fundProfileToDB.java:70)
> at hkbeans.fundProfileToDB.main(fundProfileToDB.java:34)"
>
> what could be the problem
> thanks in advance for the help
> regards
> Laxmikanth
>
> *
> Disclaimer: The information in this e-mail and any attachments is
> confidential / privileged. It is intended solely for the addressee or
> addressees. If you are not the addressee indicated in this message, you
may
> not copy or deliver this message to anyone. In such case, you should
destroy
> this message and kindly notify the sender by reply email. Please advise
> immediately if you or your employer does not consent to Internet email for
> messages of this kind.
> *




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




Re: servlet URL

2003-02-07 Thread Sean Dockery
HttpServlet.getServletName() would seem like the logical choice.
--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com


"Felipe Schnack" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  How I retrieve the URL an HttpServlet instance is mapped to?

--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341




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




Re: question

2003-02-07 Thread Sean Dockery
Check the server.xml file located in $CATALINA_HOME/conf/server.xml for the 
ports on which Tomcat listens.  Confirm that the ports are 8080 for the 
HTTP listener and SHUTDOWN on 8005 (IIRC).

Are you running a firewall that would prevent connections on those ports?

Also, check $CATALINA_HOME/logs/... to see what is happening when you start 
Tomcat.

At 08:06 2003-02-07 +, you wrote:
Hello,
I have a question for setup jakarta-tomcat-4.1.18. After I set up it, I 
want to run tomcat by typing: $CATALINA_HOME/bin/startup.sh. And the 
message is:
Using CATALINA_BASE:   /usr/jakarta-tomcat-4.1.18
Using CATALINA_HOME:   /usr/jakarta-tomcat-4.1.18
Using CATALINA_TMPDIR: /usr/jakarta-tomcat-4.1.18/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.1_01

When I test it by typing: http://localhost:8080, the message shows me:
The connection was refused when attemping to contact localhost:8080.

When I want to shutdown tomcat by typing: $CATALINA_HOME/bin/shutdown.sh, 
the message shows me:
Using CATALINA_BASE:   /usr/jakarta-tomcat-4.1.18
Using CATALINA_HOME:   /usr/jakarta-tomcat-4.1.18
Using CATALINA_TMPDIR: /usr/jakarta-tomcat-4.1.18/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.1_01
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
   at java.net.Socket.connect(Socket.java:426)
   at java.net.Socket.connect(Socket.java:376)
   at java.net.Socket.(Socket.java:291)
   at java.net.Socket.(Socket.java:119)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

I have no idea whether the tomcat is setup successfully or not. And how to 
fix the problem? Could you please help me out? Thank you very much in advance.
Sunny





_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


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

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com



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




RE: Unwanted header when using Tomcat 3.2.4

2003-02-07 Thread Sean Dockery
Okay.  In your index.jsp, insert the following page directive to the very 
top...

<%@ page contentType="text/html; charset=iso-8859-1" %>

Let me know if the problem persists...


At 09:45 2003-02-07 +0100, you wrote:
Hello Sean,

Thanks voor taking a peek at my post.

On opening the page in your browser, the following lines appear above
the 'real' text:
(HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 30 Dec 2002
10:10:30 GMT Connection: close Content-Type: text/html;
charset=iso-8859-1 Servlet-Engine: Tomcat Web Server/3.2.4 (JSP 1.1;
Servlet 2.2; Java 1.2.2; Windows NT 5.0 x86; java.vendor=Sun
Microsystems Inc.)

When viewing the source, this is the piece of code that is added to the
original code:
//17 lines of white
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Fri, 17 Jan 2003 11:11:52 GMT
Connection: close
Content-Type: text/html; charset=iso-8859-1
Servlet-Engine: Tomcat Web Server/3.2.4 (JSP 1.1; Servlet 2.2; Java
1.2.2; Windows NT 5.0 x86; java.vendor=Sun Microsystems Inc.)
//18 lines of white

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


Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com



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




  1   2   >