Re: Removal from mailing list

2007-10-02 Thread Wendy Smoak
Send a message to [EMAIL PROTECTED] from the address
you used to subscribe.

If that doesn't work, you can reach a human at [EMAIL PROTECTED] .

-- 
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: another test

2007-06-24 Thread Wendy Smoak

On 6/24/07, PTS <[EMAIL PROTECTED]> wrote:


This is a strange one indeed. It would appear that Google mail filers out
the mail that I send to the list. So when I check mail for the list this
email will not appear in my incoming email although you do receive it.
Strange. Thanks for the confirmation.


That's just GMail, you'll get used to it. :)  Look in your sent mail,
or check one of the list archives if you want to make sure your post
arrived.  For example...
http://www.nabble.com/another-test-t3972336.html

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Netbeans Project... WildCat

2007-05-30 Thread Wendy Smoak

On 5/30/07, Johnny Kewl <[EMAIL PROTECTED]> wrote:


Yes I did see this... problem I had was trying to figure out how the code
goes into packages. That ant script pulls stuff out of jars, compiles little
bits all over the place, and assembles other jars. I'm sure all with good
reason, but it makes it a mission to match code and jar.


Now that the Tomcat jars are in the central Maven repo, a nice
enhancement request would be to ask the developers to provide matching
-sources and -javadoc jars.

*ducking and running from Filip*

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JavaMail, NetBeans and Tomcat 5.5.23

2007-05-08 Thread Wendy Smoak

On 5/8/07, David Short <[EMAIL PROTECTED]> wrote:


Has anyone setup JavaMail in NetBeans 5.5 with Tomcat 5.5.23?  I'm trying to
register the NetBeans Server Resource and it won't let me and tells me to
set to Sun's Java System Application Server.

Any ideas, suggestions, steps or tutorial available?


It's hard to say without the exact error message, but if you're trying
to send mail with 5.5.23, you might be running into Bug 40668.  It's
missing some mail-related classes.

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=40668

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: starting Tomcat from Java

2007-05-04 Thread Wendy Smoak

On 5/4/07, Paul Singleton <[EMAIL PROTECTED]> wrote:

I (sometimes) want to start Tomcat (5.5 onwards) from
Java, but I am not embedding: I just need to get the
same effect as running bin/startup.bat but getting
Tomcat to run in an existing JVM (so I can debug some
other stuff).


Not sure about the 'in an existing JVM' part, but Cargo has a Java API
for manipulating containers:  http://cargo.codehaus.org/

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] RE: insight into model.do

2007-02-14 Thread Wendy Smoak

On 2/14/07, Steve Ingraham <[EMAIL PROTECTED]> wrote:

> Well, at least you'll come out of this with some resume material. :)
>
> Do come join us on the Struts Users list, where your
> questions are more on-topic and there should be more people
> around who know the framework.
>
>  * http://struts.apache.org/mail-lists.html



Lest I find myself being chastised for asking my questions on the
"wrong" list should I be subscribing to the User, Developer, Commits or
the Issues list?


Ask on the Users list.  (The dev list is for discussion about
developing the Struts framework itself.  Commits and Issues are
read-only, for Subversion and JIRA notifications.)

Fair warning, a lot of the discussion is about Struts 2 now, so make
sure to mention what version you're using.

(If you're not sure, and there is no version number in the filename,
(i.e., struts-1.2.9.jar,) then look inside WEB-INF/lib/struts.jar (or
possibly struts-core.jar) and examine the contents of the MANIFEST.MF
file.  You can open .jar files with WinZip or the command line
equivalent.)

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] RE: insight into model.do

2007-02-14 Thread Wendy Smoak

On 2/14/07, Steve Ingraham <[EMAIL PROTECTED]> wrote:


If anyone has some further input on what would be the best way to
examine the script I would appreciate any additional direction.


Well, at least you'll come out of this with some resume material. :)

Do come join us on the Struts Users list, where your questions are
more on-topic and there should be more people around who know the
framework.

* http://struts.apache.org/mail-lists.html

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tc 6.0.2 beta jars in a maven repository?

2006-11-30 Thread Wendy Smoak

On 11/30/06, Paul McMahan <[EMAIL PROTECTED]> wrote:


> Alternately, I suppose since 6.0.2 is "only" a Beta, we could start
> with minimal poms (no dependencies) and see how well that works.

That sounds reasonable for now.  I installed the tomcat jars into my
local maven repository by using commands like:

bash-3.1$ mvn install:install-file -Dfile=tomcat-juli.jar -DgroupId=org.apa
che.tomcat -DartifactId=juli -Dversion=6.0.2-beta -Dpackaging=jar
-DgeneratePom=true

The "generatePom=true" flag creates a minimally working version of the
poms.  If it would help get the ball rolling I can attach a tgz of the
relevant portion of my local maven repo to a bugzilla issue.


If you can pick out just the pom files, that would be fine.  The jars
need to be the original ones from the distribution, so no need to
attach them.  Note that the release manager will need to sign the jars
and poms before they can be put in the Maven repo.

At least it will give you a Bugzilla ticket to vote for. :)

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tc 6.0.2 beta jars in a maven repository?

2006-11-30 Thread Wendy Smoak

On 11/30/06, Paul McMahan <[EMAIL PROTECTED]> wrote:


Are the tc6.0.2 beta jars available in a maven repository?  If not
then what's the best way to request that they be made available --
post to [EMAIL PROTECTED] (again), create a bug report, contact someone on
IRC, etc...?


It's a matter of sorting out the dependencies.  Tomcat does not build
with Maven 2, so the poms will probably have to be written by hand.

I'll help with getting them published, but I'm not familiar enough
with the internals of Tomcat to write the poms.  If you'd like to
contribute the poms, open a Bugzilla issue and attach the files.

Alternately, I suppose since 6.0.2 is "only" a Beta, we could start
with minimal poms (no dependencies) and see how well that works.

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: run php & jsp on the same server

2006-10-16 Thread Wendy Smoak

On 10/16/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:


I seem to recall some hack to get PHP actually running /inside/ Tomcat.
Am I smoking crack, or was that real? Sounds like a damn sexy hack if
it's true.


Apparently... http://wiki.apache.org/tomcat/UsingPhp

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: subdirectories of WEB-INF/lib

2006-10-11 Thread Wendy Smoak

On 10/11/06, Micah Wedemeyer <[EMAIL PROTECTED]> wrote:

Is it possible to place .jar files in subdirectories of WEB-INF/lib?
I'd like to organize my .jar files a little because there are quite a
few.  I tried making a META-INF/MANIFEST.MF file and monkeying around
with the classpath, but it didn't seem to work.  Has this approach
worked for anyone else?

Honestly, I have searched for this information quite a bit and found
nothing.


The answer will be in the Servlet Specification.  You can download it
here:  http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html

(Off the top of my head, I'd say "not allowed" but I'm not
sufficiently motivated to look it up. :) )

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hi, where can I find the DispatchAction.class file?

2006-09-26 Thread Wendy Smoak

On 9/26/06, Peng Li <[EMAIL PROTECTED]> wrote:


I found the DispatchAction.java in the struts cource package, but there is
no class file. Anyone could hlep me?


The Struts user list would be a better place to ask.  You can find
subscription information here:  http://struts.apache.org/mail.html

(If you're talking about Struts 1.3.5, DispatchAction is in the
struts-extras jar file.)

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FW: Looking for someone to review a Tomcat setup.

2006-09-25 Thread Wendy Smoak

On 9/25/06, Charles P. Killmer <[EMAIL PROTECTED]> wrote:


Is no one interested in some money on the side?  I am not looking for
volunteer charity work.  You would be paid for your help.


Here's one option:  http://www.virtuas.com/tomcat

I know of Virtuas through Matt Raible, who works mostly with web
application frameworks, but I haven't used them for consulting.

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JAASRealm, Kerberos, and Open Directory

2006-09-15 Thread Wendy Smoak

On 9/15/06, P. Douglas Reeder <[EMAIL PROTECTED]> wrote:

I'd like to set up a Realm which gets it's authentication information
using Kerberos, specifically Open Directory running under OS X Server
10.3.9.

...

After reading the Tomcat docs, _Tomcat: The Definitive Guide_, and
Wendy Smoak's examples at
http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatKerberosConfigOnly, I
configured a Realm in server.xml as follows:


This example sounds closer to what you're trying to do:

 http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatJAASRealm

The one you linked to is the "do the simplest thing that can possibly
work" version, and does not involve a custom Realm.

HTH,
--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: where i can download tomcat 5.5.9 , no newer no older please

2006-09-10 Thread Wendy Smoak

On 9/10/06, legolas <[EMAIL PROTECTED]> wrote:


Thank you for reading my post
I need to download and install tomcat 5.5.9 , i already have 5.5.17 and
5.5.10 and 5.5.7 but these look not to work with ADF-BC from oracle.
thanks


http://archive.apache.org/dist/jakarta/tomcat-5/v5.5.9/

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does using Kerberos with Tomcat reduce my security?

2006-08-29 Thread Wendy Smoak

On 8/29/06, David Smith <[EMAIL PROTECTED]> wrote:

I know this is a later response, but better late than never.

Strictly and technically speaking, your Kerberos JAAS realm is weakening
the the intense security offered by kerberos.


... and whatever you do, DO NOT turn the  debug level up above
2 or JAASCallbackHandler will happily log Kerberos passwords in plain
text.

--
Wendy
http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatJAASRealm

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: downloading JSTL..

2006-08-21 Thread Wendy Smoak

Wendy, thank you very much for your help.. I'm using Tomcat 5, so I
figured had to use JSTL 1.1..


No.  The version of JSTL to use depends on what version of the Servlet
spec your webapp is configured to use, not what version of Tomcat
they're running in.



my Servlet API is 2.4.. so looking on pg you pointed out, put this on
top of web.xml:

http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
 version="2.4">

also changed URI for JSTL 1.1 like you said, so now in JSP have:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>


still, get exact same error..  oh brother, I don't get this..


The error you're getting has to do with parsing an XML file, probably
web.xml.  It's complaining that:


SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
target matching "[xX][mM][lL]" is not allowed.


Delete the two lines above, and any spaces before, the  (or similar) which is on line 3.  It has to be the
very first thing in the file.


(actually the guy says in book he's using Tomcat 5.5 (which I know is
for java sdk 1.5, I'm using tomcat 5.0.23 or something, and sdk 1.4, but
since am on Tomcat 5 figured JSTL 1.1 would be ok..)


Yes, it should be fine.


(this pg refers to Struts, though.. I'm not using Struts, have never
used Struts..


... which is why I said, "Ignore the Struts-related parts." :)

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: downloading JSTL..

2006-08-21 Thread Wendy Smoak

On 8/21/06, maya <[EMAIL PROTECTED]> wrote:


yes, that helped, thank you very much...  I managed to figure out which
one to download here,
http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi


... so you're using JSTL 1.1


followed all instructions in my book (created webapp "jstltest", created
web.xml acc. to instructions, put .tld's where they belong, plus the
jars (jstl.jar, standard.jar, which I put in tomcat/common/lib (I usu.
put all jars in tomcat/common/lib,


In general, unless you have a good reason to use the common/shared
directories, placing jars *only* in WEB-INF/lib is a better choice.


but in this case put also in
jstltest/WEB-INF/lib because am getting error as described below, just
in case, but that did not help..).. created test.jsp, as instructed
(contains just

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>

   )


That isn't the right uri for JSTL 1.1.  It should be:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>


however, when start tomcat, get this error for this webapp:


I think you're mixing and matching Servlet and JSTL versions incorrectly.

What are the first few lines of your web.xml?

There are some notes here to help people sort out which version of
JSTL to use...  ignore the Struts-related parts and see if it helps:
http://wiki.apache.org/struts/StrutsAndJSTL

HTH,
--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: downloading JSTL..

2006-08-21 Thread Wendy Smoak

On 8/21/06, maya <[EMAIL PROTECTED]> wrote:


I click on "taglibs" get taken to a page with yet another long list..
http://jakarta.apache.org/site/downloads/downloads_taglibs.html..
what do I download here?  I thought "JSTL" meant all taglibs in one
package..



From that page you either want Standard 1.0 or Standard 1.1, depending

on what version of JSTL you want to use (which depends on what version
of the Servlet spec you're configuring your webapp for.)

In general,
  Tomcat 5 -> Servlet 2.4 -> JSTL 1.1
  Tomcat 4 -> Servlet 2.3 -> JSTL 1.0

(However, Tomcat 5 can run apps written to earlier versions of the
servlet spec, so check your web.xml to see what version you're
*really* using.)

And no, JSTL isn't "all" the taglibs, it's the "Standard" taglib and
there are lots of other ones, as you can see from that page.  (And
those are only the ones distributed by the Jakarta Taglib project.)

HTH,
--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JAASReam in Tomcat-5.5

2006-07-27 Thread Wendy Smoak

On 7/27/06, Eric Chow <[EMAIL PROTECTED]> wrote:


JAASRealm is no longer used in Tomcat-5.5, right ?

What can I do if I want to use JAAS as my login mechanism in web
appplication and define the security in web.xml ?


JAASRealm is right there in the Tomcat 5.5 docs:
   http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm

I have some notes from various experiments with Tomcat and Kerberos.
The third one is a JAAS example.
   http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatJspExamples

HTH,
--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and Blog

2006-07-22 Thread Wendy Smoak

On 7/22/06, Dave <[EMAIL PROTECTED]> wrote:


I could not find anything related to blog from the site. Thanks!


Oops, wrong topic.  Okay, try Roller instead:
http://rollerweblogger.org/page/project

Google turns up a few more:  http://www.google.com/search?q=java+blog+software

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and Blog

2006-07-22 Thread Wendy Smoak

On 7/22/06, Dave <[EMAIL PROTECTED]> wrote:


I need to add Blog feature into my web application. Is there any blog software 
that can run inside tomcat? can tomcat support php?  Do you have to run Apache 
for blog?


JSPWiki comes to mind...  http://www.jspwiki.org/

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



List etiquette

2006-07-21 Thread Wendy Smoak

On 7/21/06, Mead, Jennifer L - VSCM <[EMAIL PROTECTED]> wrote:


Could this person (inject other undesirable word) please consider the
fact that women are in the user's group also.


Jennifer, I quite agree.  This has no place on an Apache project
mailing list (or any professional forum, for that matter.)

--
Wendy
http://www.apache.org/dev/contrib-email-tips.html

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie - question about tld or dtd files

2006-06-15 Thread Wendy Smoak

On 6/15/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

How can I place them locally?  In the office where I work, we have a fire
wall and I get connection error messages when I try to use www whatever in
my jsps or in other files.


This is most likely a problem with a DOCTYPE declaration in one of
your XML config files.
A properly configured app should not be trying to connect to find
those resources.

You'll have to help us narrow it down, though... can you post the
exact error you're getting?

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie - question about tld or dtd files

2006-06-15 Thread Wendy Smoak

On 6/15/06, Tim Lucia <[EMAIL PROTECTED]> wrote:

xyzzy.jsp:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>

web.xml:
  
  
/tags/struts-bean
/WEB-INF/struts-bean.tld
  

Then place the actual tld file where the  element says it
should be.


This is not necessary if you're using a Servlet 2.3 or later container
-- Tomcat 4 or 5, for example.  Most TLDs (including Struts) have a
URI (which, even though it may *look* like a URL, is not.)  For
example:


   1.3
   1.2
   bean
   http://struts.apache.org/tags-bean
...
Try that uri in a browser -- it doesn't exist.  Where it does exist is
in the struts-bean.tld file, inside struts.jar (or struts-taglib.jar
in 1.3).

Modern containers will discover tag library descriptors stored in jar
files, and you need only use the same uri in your taglib directive:

<%@ taglib uri="http://struts.apache.org/tags-bean"; prefix="bean" %>

No need to keep "loose" copies of the tlds in WEB-INF, which means one
less thing to deal with for deployment and upgrades.

Or, as Craig says... "It's magic. :-)"
* http://marc.theaimsgroup.com/?l=struts-user&m=104205482618830&w=2

HTH,
--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Autodeployment of web.xml Does Not Work

2006-04-15 Thread Wendy Smoak
On 4/15/06, Evan J <[EMAIL PROTECTED]> wrote:

> But again, "ANY" classes that does not have "url mapping" in
> WEB-INF/web.xml, would not be autodeployed even if Tomcat server is
> restarted. So once again, any class that has an existing url-mapping
> in WEB-INF/web.xml, can be recompiled and autodeployed upon placement
> in WEB-INF/classes but no newly compiled class that does not have
> url-mapping in web.xml can be autodeployed or deployed at all (or at
> least I get status 404 when I point my browser to the servlet).

If there is no mapping in web.xml, Tomcat doesn't know what to do with
the request, so the 404 is expected.  You can't just "point your
browser to the servlet".  At least, not unless you enable the invoker
servlet...

> http://vh.domain.com/SomeNewClass (or /servlet/SomeNewClass).

... and this URL containing /servlet/ makes me think you're working
from some old documentation that expects the invoker servlet to be
enabled.

 * http://tomcat.apache.org/faq/misc.html#evil

You should put your servlet classes in packages and explicitly map
them in web.xml.  URLs matching those mappings are the only ones you
can expect to work.

Whether changes to web.xml are picked up without reloading the context
is a different question.  I always re-deploy for web.xml changes, so
I'm not sure.

You might want to try your experiments again, (using only URLs that
match mappings in web.xml,) and post another (shorter!) question if
you're still not seeing the behavior you want.

--
Wendy

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



Re: unable to deploy a servlet while disabling the invoker

2006-03-26 Thread Wendy Smoak
On 3/26/06, Bassel Mannaa <[EMAIL PROTECTED]> wrote:

> 
...
> 

In addition to making sure you're using the right URL, check your
spelling in web.xml.

--
Wendy

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



Re: Invoker servlet

2006-03-07 Thread Wendy Smoak
On 3/7/06, Devireddy, Nagendra Reddy (STSD) <[EMAIL PROTECTED]> wrote:

> As per Our product documentation guideline I have uncommented invoker
> servlet. Will it lead to any security problems ??
> By Default its commented in tomcat 5.x.

http://tomcat.apache.org/faq/misc.html#invoker

--
Wendy

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



Re: Struts and MyFaces

2006-02-20 Thread Wendy Smoak
On 2/20/06, Maciej Piechotka <[EMAIL PROTECTED]> wrote:

> I cannot find any information how and why should I use it.
>
> If I understand it generates code of a page(View in MVC). In which ML
> (html, html + css or in xhtml)?

I'm not sure if you're asking about Struts-JSF integration, or why you
might choose one over the other.  In either case, the struts-user
mailing list would be a more appropriate place to ask.  You can find
subscription info here:  http://struts.apache.org/mail.html

--
Wendy

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



Re: Work directory

2006-01-29 Thread Wendy Smoak
On 1/29/06, Chad Russell <[EMAIL PROTECTED]> wrote:

> When tomcat tries to compile something and it tries to create the
> directories in the work directory, it seems to fail when trying to add
> "org/apache" to the path.  I can go in by hand and create these two
> directories in the path, and then it works correctly.
>
> Is there any way to correct this?

It sounds like a permissions problem.  Is Tomcat running as the same
user you are able to create the directories as?

(We need more information about your environment-- Tomcat version, OS
and version, etc., to be of much help.)

--
Wendy

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



Re: Path issues

2006-01-14 Thread Wendy Smoak
On 1/14/06, Thom Hehl <[EMAIL PROTECTED]> wrote:

> Wanted to run this by the list before turning this in as a bug.
>
> I'm running the following servlet fragment...
> public void doGet(HttpServletRequest request,
>   HttpServletResponse response)
>   throws IOException, ServletException
> {
> File path=new File("./");
> System.out.println(path.getAbsolutePath());
>
> When I run this under windows, the path points to the Tomcat5.5, which
> is where tomcat is installed. When I run this under Redhat Linux, it
> points to the webapps directory under the tomcat directory.  Is there
> anyone that doesn't think this is broken?

Me. :)  The only thing the Servlet container is required to do for you
is provide a temporary working directory.  Servlet 2.4 Specification:
"SRV.3.7.1 Temporary Working Directories
A temporary storage directory is required for each servlet context. Servlet
containers must provide a private temporary directory for each servlet
context, and
make it available via the javax.servlet.context.tempdir context attribute. The
objects associated with the attribute must be of type java.io.File."

Depending on what you're going to do with the File, if the temporary
directory won't work, several things may be more appropriate.  A
database, or configuring a context param with a known good location to
which the user running Tomcat has permission to write, for example.

HTH,
--
Wendy

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



Re: Migration from 1.0 to 1.2.x: Gotchas?

2006-01-14 Thread Wendy Smoak
On 1/14/06, Venkat & Radha Venkataramanan <[EMAIL PROTECTED]> wrote:

> I have an Pharma J2EE application developed using the Struts framework
> running on a weblogic 6.0 server (yes, and it's only 3 years old!).
>
> We are upgrading to weblogic 9.0 since 6.0 is no longer supported by BEA.
> And, I learnt that 9.0 supports only Struts 1.2.x.
>
> Does anybody gone through the exercise of migrating from 1.0 and 1.2? Are
> there pearls of wisdom to be shared? Or, is it just a tedious task of
> re-compiling all the JSP pages?

You'll probably want to ask on the Struts list instead of Tomcat. :)
   http://struts.apache.org/mail.html#Subscribing

--
Wendy

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



Re: Tomcat start but many errors in catalina.out

2006-01-12 Thread Wendy Smoak
On 1/12/06, Sven Gehr <[EMAIL PROTECTED]> wrote:

> I use tomcat-5.0.30 on a suse10-system. When I start tomcat I get an long
> error-output in catalina.out. Can anybody help me to fix this?
...
> Jan 13, 2006 12:19:30 AM org.apache.commons.digester.Digester error
> SEVERE: Parse Error at line 1062 column 94: Element type "message-resources"
> must be declared.
> org.xml.sax.SAXParseException: Element type "message-resources" must be
> declared.
...
> Jan 13, 2006 12:19:30 AM org.apache.commons.digester.Digester error
> SEVERE: Parse Error at line 1064 column 17: The content of element type
> "struts-config" must match
> "(data-sources?,form-beans?,global-forwards?,action-mappings?)".
> org.xml.sax.SAXParseException: The content of element type "struts-config"
> must match "(data-sources?,form-beans?,global-forwards?,action-mappings?)".

I can't tell which webapp it is, but one of the struts-config files is broken.

It looks like someone has used the the  tag in a
Struts 1.0 config file.  Look for a struts-config file (usually named
struts-config.xml) that has this at the top:

http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>

and also has a  tag in it.  Most likely, you're
really using a newer version of Struts, so fix the DOCTYPE and the
error should go away. :)

--
Wendy

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



Re: Image Scaling Code

2006-01-12 Thread Wendy Smoak
On 1/12/06, Justin Jaynes <[EMAIL PROTECTED]> wrote:

>  I've written a java class to scale jpeg images.  But I can't seem to get it 
> to work.  Can anyone point me in the right direction?

>  javax.servlet.ServletException: Can't connect to X11 window server using 
> ':0.0' as the value of the DISPLAY variable.

This looks like a variation of the 'headless' problem.  (Are you
running X11 on the server?)

Try running Tomcat with:
   CATALINA_OPTS="-Djava.awt.headless=true"

--
Wendy

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



Re: First webapp/JSP

2006-01-08 Thread Wendy Smoak
On 1/8/06, Thom Hehl <[EMAIL PROTECTED]> wrote:

> String url = "/visioneer/HomeSearch.jsp";
> RequestDispatcher dispatcher =
> getServletContext().getRequestDispatcher(url);
> dispatcher.forward(request, response);
>
> And I now get this error:
>
> *type* Status report
>
> *message* _/visioneer/HomeSearch.jsp_

In general, you should not be hard-coding the name of the context in your app.

http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String)

"The pathname must begin with a "/" and is interpreted as relative to
the current context root."

So leave off the 'visioneer' part, (which is the context name,) start
with / and then give the path to the resource, depending on where you
moved it to.

HTH,
--
Wendy

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



Re: First webapp/JSP

2006-01-08 Thread Wendy Smoak
On 1/8/06, Mark Thomas <[EMAIL PROTECTED]> wrote:

> The servlet spec requires that no resources are served from the
> WEB-INF directory for security reasons. Move the jsp to
> /visioneer/SearchErrors.jsp and all should be fine.

But he's forwarding to it, which is allowed.

I think it should be:
   String url = "/WEB-INF/SearchErrors.jsp";

(I would move it to WEB-INF/jsp/SearchErrors.jsp though.)

--
Wendy

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



Re: starting and stopping Tomcat from Java code

2005-12-14 Thread Wendy Smoak
On 12/14/05, Oleg Lebedev <[EMAIL PROTECTED]> wrote:

> I am trying to configure, start and then shutdown Tomcat from my Java
> class.

No idea if it will do what you want, but that requirement made me
think of Cargo:
   http://cargo.codehaus.org/

--
Wendy

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



Re: servet-dircetory

2005-12-04 Thread Wendy Smoak
On 12/4/05, Sebastian Funk <[EMAIL PROTECTED]> wrote:

> I've read a book about servlets called "Java Servlet Progamming".
> This book says I can access all my servlets - additionally to that
> what I declared in web.xml - via
> http://tomcat-server:8080/servlet/myServlet
> but I can't.
> I get "404 Not Found". Why?

http://tomcat.apache.org/faq/misc.html#invoker

--
Wendy

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



Re: Missing application web.xml

2005-12-03 Thread Wendy Smoak
On 12/3/05, hv @ Fashion Content <[EMAIL PROTECTED]> wrote:

> Why does Tomcat say that there is no web.xml when it is in the war file when
> I unzip it???

> partial server.xml:
>  deployOnStartup="true" autoDeploy="false" xmlValidation="true">

Have you always had xmlValidation set to true or did you change that recently?

There have been some threads about xml validation recently.  Since it
sounds like Tomcat is unhappy with your web.xml file, I would try
turning validation off and see what happens.

--
Wendy

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



Re: mailing list question

2005-11-30 Thread Wendy Smoak
On 11/30/05, Scott Purcell <[EMAIL PROTECTED]> wrote:
>
> Is there a searchable Tomcat mailing list? I posted a question a while back 
> and was hoping to re-read it?  I found many sites, but none look like the 
> real Tomcat mailing list.

My new favorite place to search is Nabble, because I can search across
both the user and dev lists at once.
   http://www.nabble.com/Tomcat-f303.html

Other places include http://www.mail-archive.com and
http://marc.theaimsgroup.com .

--
Wendy

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



Re: Tomcat suddenly not working

2005-11-29 Thread Wendy Smoak
On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
> Let me add more info:
> Tomcat version: 5.5.9
> JVM Version 1.5.0-04-b05
> OS Name = SunOS
> OS Version = 5.9
>
>  I must have done something but I have no idea what!!
> Please help me!

You may think you're using JDK 1.5, but Tomcat doesn't seem to. :)

Check the docs and make sure (I think) JAVA_HOME is pointed to the right place.

--
Wendy

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



Re: reading file in ServletContextListener

2005-11-27 Thread Wendy Smoak
On 11/27/05, Werner van Mook <[EMAIL PROTECTED]> wrote:
> To make it more clear of what I try to do here is the complete method
> in which I try to read a file.
>
>  private void list() throws Exception {
>  XMLReader parser = XMLReaderFactory.createXMLReader(
>  "org.apache.xerces.parsers.SAXParser");
>  parser.setContentHandler(new PeopleHandler());
>  parser.parse("/WEB-INF/friends.xml");
>  }
>
> This parse method want an InputSource. Sorry Wendy it didn't work.
> I tried filling in a fully qualified URI. It completely stops tomcat
> from starting.
> The URI is to a file in the webapp which is trying to start.

If you're using getResourceAsStream to get an InputSource, then I
think the file would have to be on the classpath, so not in WEB-INF
directly, but in WEB-INF/classes (or in a .jar file in WEB-INF/lib.)

I have a .properties file in WEB-INF/classes that gets read from a
ServletContextListener by way of a Factory that does this:
 Properties props = new Properties();
 ClassLoader cl = UniSessionFactory.class.getClassLoader();
 InputStream input = cl.getResourceAsStream( propsFileName );
 props.load( input );

So I'm fairly sure that by the time your ServletContextListener is
called, the file should be in place and available.

Please post both the code you're using and the resulting error message
if you still need help.  Just telling us Tomcat doesn't start is not
enough information.

--
Wendy

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



Re: reading file in ServletContextListener

2005-11-27 Thread Wendy Smoak
On 11/27/05, Werner van Mook <[EMAIL PROTECTED]> wrote:
> In my class which implements ServletContextListener I try to read a
> file.
>   it looks like :
> parser.parse("friends.xml");
>
> When I start tomcat 5.5.12 I get a FileNotFound Exception on the
> friends.xml file.
>
> The file is in the root of my web-app.
> I also tried "/friends.xml" but alas it did not work.

Try using ServletContext's getResourceAsStream() method to find the
file, assuming that you have a 'parse' method that will take an
InputStream.

--
Wendy

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



Re: Expanding WAR file in "home" directory

2005-11-25 Thread Wendy Smoak
On 11/25/05, Jeff Brewer <[EMAIL PROTECTED]> wrote:
> When I create a WAR file containing my index.html page (and my test JSF 
> "project" pages and classes and xml files) then upload that WAR file to my 
> server and wait for a few minutes my WAR file is expanded into a new 
> sub-directory with the same name as my WAR file, which we'll call "mywarfile" 
> for the sake of the example. When I open my browser and go to 
> www.mydomain.com there is nothing there becuase my index.html file now exists 
> in a subdirectory called mywarfile. If I go to www.mydomain.com/mywarfile I 
> can see my index.html page.

A quick look at their FAQ says that your home directory is already
configured to "be" a webapp.  (They talk about a WEB-INF folder *in*
your home directory.)  My guess is that you will not be able to deploy
a .war as your root webapp, because it will always expand into a
sub-folder.

Fortunately, a .war file is nothing special, it's just a bunch of
files in a particular directory structure zipped up for convenience. 
Once you've built your webapp, simply use your favorite zip/jar
program (WinZip, or 'jar' at the command line:  jar xvf filename.war)
to unzip your .war file into a temp directory, then FTP those files up
to your home directory.

Start here and click on the 'related' links, there's plenty of information:
https://www.godaddy.com/gdshop/faq/faq.asp?se=%2B&app%5Fhdr=99&faq_id=781&topic_id=16&topic=Traffic%20Facts&return=

And feel free to ask again if you have any questions.  I only know
what I found on the website, which may not be correct for your
particular situation.

--
Wendy

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



Re: server.xml JNDIRealm question

2005-10-31 Thread Wendy Smoak

From: "Klotz Jr, Dennis" <[EMAIL PROTECTED]>


I was trying to get away with just using the JNDIRealm connector but if
you don't mind I will use portions of your code for a custom JAAS Realm.


That's what it's there for. :)

Do check the recent list archives if you want to use a custom user principal 
rather than just GenericPrincipal.  I believe there's a fix (in 5.5.x) that 
hasn't been released yet.


--
Wendy


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



Re: server.xml JNDIRealm question

2005-10-31 Thread Wendy Smoak

From: "Klotz Jr, Dennis" <[EMAIL PROTECTED]>


I've added :
-Djavax.security.auth.useSubjectCredsOnly=false
To my Catalina options environment variable in Catalina.bat.
Now I get the error:
java.lang.SecurityException: Unable to locate a login configuration


To get a JAASRealm to work with Kerberos, I have to set the following;

JAVA_OPTS="-Djava.security.krb5.realm=realm> -Djava.security.krb5.kdc=kdc:port> -Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.conf"


So... maybe you need 'java.security.auth.login.config' set?

--
Wendy
http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatJAASRealm


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



Re: Loading Properties File at start-up or in Application Scope

2005-10-30 Thread Wendy Smoak

From: "Rahul Joshi" <[EMAIL PROTECTED]>

I can load the properties file in the class file but I
want to load it as the Tomcat starts so that the
properties file is not loaded again and again.
Something like storing this in the application scope.
How can I do this?


Use a ServletContextListener:
http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletContextListener.html

--
Wendy



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



Re: Tomcat 5.5.12 - Why does app undeploy when war file deleted

2005-10-21 Thread Wendy Smoak

From: "Jay Thompson" <[EMAIL PROTECTED]>

Yes, but if I understand how this works, if I set unpackWARs to "false", 
then the war files would never deploy (even on startup).


Probably not with autoDeploy set to false. :)  Have you considered using the 
Manager app to deploy and undeploy your apps?  It sounds like you're copying 
files around and restarting Tomcat each time, which isn't necessary.


--
Wendy Smoak 



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



Re: Tomcat 5.5.12 - Why does app undeploy when war file deleted

2005-10-21 Thread Wendy Smoak

From: "Jay Thompson" <[EMAIL PROTECTED]>


So, to stop the behavior, I needed to change the host lines that read:...

unpackWARs="true"
autoDeploy="true"

to read...

unpackWARs="true"
autoDeploy="false"
deployOnStartup="true"


You could set unpackWARs="false" and then you wouldn't have to bother 
removing the .war files.


--
Wendy Smoak 



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



Re: Problems with web.xml generated from RAD and from Ecplise.

2005-10-18 Thread Wendy Smoak

From: "Richard Mixon" <[EMAIL PROTECTED]>


I'm pretty familiar with Tomcat, but have no idea what RAD is and how its
Tomcat related. If you explain that someone might be able to better help.


Rational Application Developer, I assume.

The problem seems to be here:



...

http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>


The first line says version 2.2 but then it goes on to use the 2.4 schema. 
No idea how to convince it to do otherwise, though... seems like a bug to 
me.  If it's going to generate web.xml for you, it ought to know better than 
to mix and match versions.


--
Wendy Smoak 




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



Re: Can the manager app drop sessions on a start?

2005-10-17 Thread Wendy Smoak

From: "Greg Vilardi" <[EMAIL PROTECTED]>


I'm running Tomcat 5.0.28 on Linux, for a development platform.

...
If the session serialization hypothesis is correct, I'd like to be able to 
have

the ability to tell manager to ignore these sessions and just start the
application.


Take a look at PersistentManager and 'saveOnRestart'
http://tomcat.apache.org/tomcat-5.0-doc/config/manager.html

Also: http://www.systemmobile.com/wp/?p=20

--
Wendy Smoak


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



Re: Tomcat user principal

2005-10-15 Thread Wendy Smoak

From: "Brad O'Hearne" <[EMAIL PROTECTED]>

I would have expected that designation of the user class name would have 
resulted in my being returned the class I specified for the user class 
name from the requestion.getUserPrincpal() method, but it doesn't.


What version of Tomcat are you using?  As far as I know, it works the way 
you want on 5.0.28.  I remember trying it with and without the class name, 
and writing that comment to remind myself.


Could this be it?  http://issues.apache.org/bugzilla/show_bug.cgi?id=37044

--
Wendy Smoak 




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



Re: Tomcat user principal

2005-10-15 Thread Wendy Smoak

From: "Brad O'Hearne" <[EMAIL PROTECTED]>


I am using the JAASRealm for Tomcat 5.x, and in my JAAS module, I am
storing my own Principal subclass as the user principal. In my subsequent
servlets, when I invoke the request.getUserPrincipal() method, I am not
returned my user principal, but I am instead returned a GenericPrincipal.


This sounds vaguely familiar... no guarantees that this applies to your
situation, but when I was working out how to get Tomcat to use our campus
Kerberos server, I left this comment in the code:

   /* Hand off to the JAASRealm superclass to authenticate the user.
This will use the Krb5LoginModule configured in jaas.conf.
With no 'userClassNames' in the , it will return a
GenericPrincipal.  Alternately, if you use
userClassNames="javax.security.auth.kerberos.KerberosPrincipal",
you will get back a KerberosPrincipal instead.*/

What does your  look like?  If you haven't already, try listing your
class in 'userClassNames' and see if you get the right return value.

More info here:  http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatJAASRealm

--
Wendy Smoak



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