Re: Non-standard webapp layout

2007-10-11 Thread Glen Vermeylen
My god, I'm sorry.

I posted the directory structure wrong.

Web-inf is the root of the project
WEB-INF/web.xml
WEB-INF/content/*.jsp
WEB-INF/src

What I posted earlier wouldn't have been a problem at all. Looking at the
time, I think my mind was still on autopilot
The problem is with the content-folder residing in the WEB-INF folder (the
theoretical development environment is Novell ExteND or something, which
no-one actually uses, but the project structure and ant script are still
being used)


"I'm not sure there's anything called a "standard J2EE layout"."
=> I meant the layout of a (exploded) war file.

Thanks for your reply,
Glen

2007/10/11, Christopher Schultz <[EMAIL PROTECTED]>:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Glen,
>
> Glen Vermeylen wrote:
> > Hi all,
> >
> > Recently I moved to a (ancient) project which uses following layout:
> >
> > content/
> > *.jsp
> > /WEB-INF/web.xml, struts-config.xml,...
> > /src
> >
> > I'm used to working in the standard J2EE layout where I can just point
> > tomcat to my project directory and it can run the application from
> there,
> > instantly seeing changes to jsp's and class files.
>
> I'm not sure there's anything called a "standard J2EE layout".
>
> > With the current structure this seems impossible, forcing me every time
> I
> > make a change to rebuild the war and redeploy the application.
>
> Why not just point Tomcat to the "content" directory instead of the one
> above it?
>
> > Is it possible to run the application from my project folder without
> > touching the source layout?
>
> Of course. Your web application lives in /path/to/content, rather than
> /path/to. That can't be hard to deal with.
>
> - -chris
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHDlqP9CaO5/Lv0PARAr58AJ9JXRmVdsbvNSxpS8W00s8768MAjwCeJ/Ms
> XCATNqAxNCfpnzzbZQ+Tnms=
> =lH8T
> -END PGP SIGNATURE-
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Groovy scripts to setup multiple Tomcat instances with single install base.

2007-10-11 Thread thebugslayer
Hi all,

Just want to share these tools to the user groups. Hope you find it useful.

http://docs.codehaus.org/display/GROOVY/Tomcat+tools

Cheers,
-- 
/bugslayer

-
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 5.5.25 -> 6.0.14 upgrade problem

2007-10-11 Thread aku1234

Thanks for telling me about your issue.  I experimented unsuccessfully with 
different locations for the jar files in Tomcat 6.

Glassfish v2 is now stable.  I was able to use that without running into
the JNDI problems that I had with Tomcat 6.


Paul Anderson-12 wrote:
> 
> Hi,
> I had a problem before with this upgrade scenario using the Oracle
> drivers, and asked the list. I was asked if the JAR was in
> $CATALINA_HOME/lib - it was - no further ideas.
> I have never had a problem before with JDK 4 or 5 on TC5.5, just with
> JDK6 and TC6, so I temporarily abandoned my upgrade.
> I only had the problem with *cross-context* webapp invocations, in this
> case via Liferay's WAR. Maybe that's significant. If I used a JSP for
> JNDI lookup and requested the page directly, with the DBCP kit in
> WEB-INF/lib, all was OK.
> Here's my message again:
> 
> When doing cross-context invocations of a portlet in Liferay that
> references container-managed Datasources by JNDI, I get:- 
> 
> Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
> 
> java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
> 
> The driver JAR was in /lib. ($CATALINA_HOME/lib)
> 
> When I put dbcp, commons-pool and the driver JAR in the portlet WAR file
> and create the Datasource myself, no problem.
> 
> When looking up the container Datasource directly from a JSP (no
> cross-context webapp invocation), no problem.
> 
> I tried upgrading to a later JDK 6 Oracle 11i driver, but no luck, the
> problem was not specific to Oracle's driver version.
> 
> Other people have had classloading problems too, and said it's a bug in
> TC6 with use of Class.forName()
> 
> So I stuck with TC5.5 on JDK 5 for the moment - the problem's blocking
> our upgrade path.
> 
> Is this a known fault with TC6 that will be fixed?
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.5.25--%3E-6.0.14-upgrade-problem-tf4525323.html#a13167197
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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] mod_jk - no permission to access index file

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Albert,

Note that this has nothing to do with mod_jk. In fact, mod_jk appears to
be working properly according to your report.

Albert Greinoecker wrote:
> I'm currently running a tomcat application within apache2.
> To do so, I added the following lines to jk.conf... 
> 
> Alias / "/usr/share/tomcat6/webapps/"
> ">
> Options Indexes FollowSymLinks
>  DirectoryIndex index.html
> allow from all

You might need:

   Order Allow,Deny

But probably not (I think this is the default).

What are the permissions on each of:
/usr
/usr/share
/usr/share/tomcat6
/usr/share/tomcat6/webapps
/usr/share/tomcat6/webapps/

?

> You don't have permission to access /qsys on this server.
> Additionally, a 403 Forbidden error was encountered while trying to use
> an ErrorDocument to handle the request.

Is there anything interesting in httpd's error.log file?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDp0W9CaO5/Lv0PARAh/UAJ0WTF+9c+0IR5N44fWMOCv2AVkxrACglnld
jOKa5EPW1UXTzhqw15UZ9DY=
=tAtZ
-END PGP SIGNATURE-

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



mod_jk - no permission to access index file

2007-10-11 Thread Albert Greinoecker
Hi,

I'm currently running a tomcat application within apache2.
To do so, I added the following lines to jk.conf... 

Alias / "/usr/share/tomcat6/webapps/"
">
Options Indexes FollowSymLinks
 DirectoryIndex index.html
allow from all

When I now try to access the application only using the alias
(http:///), I get the following error:

You don't have permission to access /qsys on this server.
Additionally, a 403 Forbidden error was encountered while trying to use
an ErrorDocument to handle the request.

Same when index.html is added (http:index.html), but
when I call any serlvet path directly, everything works fine. So how
should my configuration look like?

thx,
Albert


-
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: Specifying multiple IP's for tcpListenAddress in clustering environment

2007-10-11 Thread Filip Hanik - Dev Lists

you can only specify a single address, currently there is no fail over.
if you have two nics, and you want fail over between them, do it on the 
OS level.
for example, on Linux, you can bond two nics into one IP address, and 
the OS will automatically fail over between them

much better doing it at the lower level, than in the java code

Filip


Burnett, Adam wrote:

In our environment we have multiple boxes each with multiple NICs.  In
order for clustering to work I had to explicitly specify the address
of eth0 for the tcpListenAddress because "auto" wasn't working. Is it
possible to specify failover address for this attribute?  In the case
that just eth0 (or the router it is connected to) goes down it would
be nice for the session replication to still work since connections
will still be coming in via the alternate NIC.

Basically I'm looking for the ability to do something like:
 
className="org.apache.catalina.cluster.tcp.ReplicationListener"

tcpListenAddress="151.138.13.202;151.138.13.203"
tcpListenPort="4005"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>

Thanks for any time/help.
-Adam




  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007 5:11 PM
  



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



Specifying multiple IP's for tcpListenAddress in clustering environment

2007-10-11 Thread Burnett, Adam
> In our environment we have multiple boxes each with multiple NICs.  In
> order for clustering to work I had to explicitly specify the address
> of eth0 for the tcpListenAddress because "auto" wasn't working. Is it
> possible to specify failover address for this attribute?  In the case
> that just eth0 (or the router it is connected to) goes down it would
> be nice for the session replication to still work since connections
> will still be coming in via the alternate NIC.
> 
> Basically I'm looking for the ability to do something like:
>   
> className="org.apache.catalina.cluster.tcp.ReplicationListener"
> tcpListenAddress="151.138.13.202;151.138.13.203"
> tcpListenPort="4005"
> tcpSelectorTimeout="100"
> tcpThreadCount="6"/>
> 
> Thanks for any time/help.
> -Adam
> 


alternative tag pool implementation

2007-10-11 Thread Dmitry Beransky
Hi,

I've noticed that there are two implementations of the tag pool:
TagHandlerPool and PerThreadTagHandlerPool.  I haven't been able to figure
out how to tell Jasper to use the per-thread implementation.  Any pointers?


Thanks
Dmitry


Re: Dynamic logging configuration updates in Tomcat

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Adam,

Adam Gordon wrote:
> Wow, no one had any ideas as to what is going on?

I have no idea if Tomcat supports this -- the logging-related
configuration directives in the docs should say if it is directly supported.

If you're using log4j, I know that there are tools you can use to modify
the in-memory configuration of the logging framework, but they won't be
persisted to the disk (and they don't allow you re-read the
configuration file AFAIK).

> Anyway.  We never figured out why Tomcat has an issue with this, but we
> found a suitable workaround by basically doing what the LogHandler does
> when it re-reads and refreshes the logging configuration - we take the
> new logging level values and apply them to their respective loggers.

Where do you do this? In your webapp or somewhere else?

> In fact, my first test was an exact copy of the LogHandler code and the
> test worked (i.e., dynamic logging worked), whereas using the LogHandler
> didn'th.

If you come up with something, consider logging a bug/enhancement  and
submitting a patch. Suggestions with patches are usually given higher
priority than those without patches ;)

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDm2x9CaO5/Lv0PARAhWXAJ4nVi21oqN7A99wtoZMtY1HzfUQNwCcDR8Q
ivOydqjYdN1xGwtd1WqrU8c=
=4Bp9
-END PGP SIGNATURE-

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



tc security

2007-10-11 Thread Chris Pat
Hello
I have 5.028 running in development production with a simple tomcat-users.xml, 
it works.  When I run it in my ide, jb05, with the same tomcat-users.xml in the 
same config folder as server.xml, that it uses to run, it fails the security.  
The only possible reason I can assume is it is running in the on port 8083 and 
dev production is running on 8080.  Dubious, I know, but the only difference.  
Any ideas? tia.


RE: How to share tomcat sessions across multiple IE windows

2007-10-11 Thread Adam Gordon
Hmmm, we have a webapp that requires authentication to launch a specific
function and we spawn multiple windows with window.open() and we don't
have any problem with the browser session IDs being changed.  Are you
switching from http to https or vice versa?  This would certainly result
in different session ID's being created.  Additionally, if you're
somehow invalidating the primary window's session before spawning the
new window, then it would also get a new session ID.

Hope that helps.

--adam

-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 2:54 AM
To: Tomcat Users List
Subject: How to share tomcat sessions across multiple IE windows

Folks,


Apologies, this is not strictly a tomcat question but I wonder if anyone
else has run into it and 
has a solution.  My app spawns another window to display help, via the
window.open() javascript call.

The new window does not share the same session as the original, the
session ID is always different.
Occasionally the ID of the new window is that of a session that has
expired so the user is 
redirected to the login page.


I think his behaviour is IE specific, I found a couple of (non tomcat)
explanations here:

http://classicasp.aspfaq.com/general/how-do-i-manage-a-session-across-mu
ltiple-windows.html.

http://de3.php.net/session-start

In the latter it says:
"The problem is that IE doesn't always use the same IE process to host a
new pop-up window - it 
chooses one (using some mysterious strategy) from the pool of running IE
processes! Since session 
information (cookies) is not preserved across processes, the pop-up may
loose the session (and 
probably redirect the user to your log-in page.)"




Does anyone know how to make the new window use the same session as the
original window?
Or at least use a brand-new session rather than a recycled old one?




TIA - Adam







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


-
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 5 and SSL

2007-10-11 Thread Adam Gordon
The file is called "cacerts" and is located in your Java SDK directory's
jre/lib/security folder.  I'm running Ubuntu and it's actually a simlink
to a sub-directory in /etc.  A fellow engineer is running Fedora 7 and
it's not a simlink.

Regarding your error, do you have gcj installed?  And if so, does THAT
java binary appear first in your path?  The keytool command does not
like gcj's java binary.  If you don't have gcj installed, make sure the
java binary on your path that's being used is indeed SUN's binary.  If
none of that applies, there may be a problem with your certificate.

--adam

-Original Message-
From: uberalles [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 09, 2007 11:54 PM
To: users@tomcat.apache.org
Subject: Tomcat 5 and SSL


I'm using Tomcat 5 on a Fedora Linux box. I originally created a
self-signed
certificate (for testing purposes) without the keystore entry (still new
to
this) and I have no idea where that file is. I ran a search for anything
.keystore from root and nothing shows up.
A keytool -list command shows that there is only one keystore entry and
it
was made days ago (I thought I had made more since but I guess not).
When I
try to delete the entry I get the following error:
"keytool error: java.lang.IllegalStateException: masked envelope"
Does anyone know what this means? Thanks in advance.
-- 
View this message in context:
http://www.nabble.com/Tomcat-5-and-SSL-tf4598759.html#a13129881
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


-
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: Dynamic logging configuration updates in Tomcat

2007-10-11 Thread Adam Gordon
Wow, no one had any ideas as to what is going on?

Anyway.  We never figured out why Tomcat has an issue with this, but we
found a suitable workaround by basically doing what the LogHandler does
when it re-reads and refreshes the logging configuration - we take the
new logging level values and apply them to their respective loggers.

In fact, my first test was an exact copy of the LogHandler code and the
test worked (i.e., dynamic logging worked), whereas using the LogHandler
didn'th.

--adam

-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 09, 2007 1:55 PM
To: users@tomcat.apache.org
Subject: Dynamic logging configuration updates in Tomcat

Hi-

We have a web application in which we'd like to get dynamic logging 
working.  By dynamic logging, I mean live changes to the webapps' 
logging.properties file are read and applied without having to restart 
Tomcat.  We have all the code written and running but it appears to not 
work exactly as it should.  That is, I can change a logger's logging 
level once and it works, but if I change it again, it doesn't.  If I 
change the global logger level (.level) the change is picked up but, 
obviously, that affects ALL the loggers in our webapp.

I pulled the code out of tomcat and ran it as a stand-alone Java 
application and it works perfectly.  I then created a very tiny/simple 
webapp to run this logging code and the problem appears again.  I'm at a

loss as to what Tomcat can possibly be doing to prevent the properties 
from being read subsequent times after the first change.

We're using the java.util.logging API and have our own LogHandler 
class.  We have a ServletContextListener that starts a background thread

when the webapp starts up.  This background thread finds the 
logging.properties file for this webapp and if it has been modified in 
the last 60 second, creates an InputStream to this file and passes this 
InputStream to the LogManager.getLogManager().readConfiguration(...) 
method.  We are aware of this bug:  
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5035854 in the Java 
logging API, but we are using the workaround in this bug to reapply the 
logging levels.

If we can't find a solution to this using readConfiguration(...), we 
have a solution we've not tried which is to read the properties file 
ourselves, and loop over the loggers applying any levels that have 
changed - which is exactly what the LogManager is doing - but at least 
this is our code.  Again, we've not tried this brute-force method yet, 
so I don't know if it will work.

Thanks,

--adam

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


-
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 mod_jk copy memory b/w apache and tomcat (using linux, ajp13 worker)?

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Moran,

Moran Ben-David wrote:
> Can anyone tell me if mod_jk does a copy of memory when it moves
> tomcat output to apache through mod_jk?  My assumption has been that
> the two processes (in linux) communicate by copying data from each
> other's memory spaces.

Apache httpd and Tomcat do not share any memory, so there is not any
explicit memory-copying going on.

If the two processes are on the same machine, and are using the
"localhost" NIC, then UNIX is usually smart enough to do memory copies
instead of doing all the TCP/IP stuff necessary to send the data to a
remote host.

> If this is the case... does anyone know if there are plans to use the
> new "splice()" method introduced by the new linux kernel to avoid
> memory copies?

I'm guessing that this isn't going to go into mod_jk at all. But, I'd
bet that the kernel loopback TCP/IP driver will make use of this capability.

Mladen or Rainer can certainly shed more light on this subject.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDlz59CaO5/Lv0PARAi5cAJ9Y30WkaZxu6KtiyeQ3hKqy3+iLIQCfWR7+
1T8pHDCHnaUvjWIW4szl9E4=
=W7UT
-END PGP SIGNATURE-

-
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: JAAS Realms, cookies and authentication

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Iain,

Emsley, I (Iain) wrote:
> What I'm trying to achieve is when the user logs in on main site and
> clicks the link to the Java calendar, the link will read the cookie
> (extracting the user name/password and converting into hex to send back
> to the main config files to check if its valid whilst also checking that
> they are a member of our service) and then grant access to the
> application on success.

Shouldn't this happen automatically? When the browser makes an HTTP
connection to your server, as long as the hostname and path match, the
cookie will be sent automatically. Am I misunderstanding your thought?

Are you trying to implement "remember me" functionality?

> I was looking at the JAAS realm since the user information is kept in
> what is essentially a flat file db and trying to write a LoginModule
> which replicates the existing Perl scripts actions for checking
> username/password and membership.

I have no experience with JAASRealm. Would it be easier to write a
simple Realm instead of dealing with JAAS?

> AFAIUI, I'd need to write a servlet to
> process the cookie before hitting the JAAS realm though.

That's not going to happen: if you're using Tomcat's built-in
authentication and authorization mechanism, then basically none of your
code gets to run before the authentication is performed (unless you
write your own Realm, or JAAS LoginModule).

> Have I
> understood this correctly or can I get the LoginModule to do the
> processing (which appears to be implied in the Tomcat manual on Realms)?

Hopefully, the request object is available to your LoginModule or Realm
in order to do the authentication. That would allow you to substitute
the authentication information from the cookie instead of attempting to
get it from the request (parameters).

> Ultimately I will need to be able to log users in via http, https and
> the Shibboleth Single Sign On (for which I know there is a JAAS realm).

Aah, a better reason to use JAAS ;)

> As I understand it, as long as I have a config which lists all the
> various login methods, I should be able to stack these onto one Tomcat,
> or have I also misunderstood this? 

Sorry, I can't answer this, but I think that's what JAAS was made for:
multiple authentication methods glued together, and a simpler, more
stable interface (LoginModule) for implementation.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDlxR9CaO5/Lv0PARAlr3AJ9LDhSciOxAXJZ94uu5eOkNdoodhQCfZHtG
PPrHJfLQe4qapF3p7xv4Y6k=
=W8zh
-END PGP SIGNATURE-

-
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: Non-standard webapp layout

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Glen,

Glen Vermeylen wrote:
> Hi all,
> 
> Recently I moved to a (ancient) project which uses following layout:
> 
> content/
> *.jsp
> /WEB-INF/web.xml, struts-config.xml,...
> /src
> 
> I'm used to working in the standard J2EE layout where I can just point
> tomcat to my project directory and it can run the application from there,
> instantly seeing changes to jsp's and class files.

I'm not sure there's anything called a "standard J2EE layout".

> With the current structure this seems impossible, forcing me every time I
> make a change to rebuild the war and redeploy the application.

Why not just point Tomcat to the "content" directory instead of the one
above it?

> Is it possible to run the application from my project folder without
> touching the source layout?

Of course. Your web application lives in /path/to/content, rather than
/path/to. That can't be hard to deal with.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDlqP9CaO5/Lv0PARAr58AJ9JXRmVdsbvNSxpS8W00s8768MAjwCeJ/Ms
XCATNqAxNCfpnzzbZQ+Tnms=
=lH8T
-END PGP SIGNATURE-

-
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: Precompile JSPs

2007-10-11 Thread Martin Gainty
Arun-

download and uncompress apache-tomcat-6.0.14-src distro from
http://tomcat.apache.org/download-60.cgi
cd to the folder you downloaded \apache-tomcat-6.0.14-src
ant
use the jasper.jar located in \output\build\lib

M--
- Original Message -
From: "Arun" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, October 11, 2007 11:28 AM
Subject: Re: Precompile JSPs


> Filip,
>
> That works cool.
> Thank you for the reply.
>
> I do not know why the one specified in tomcat docs does not work. All I
know
> is that it throws an error telling me that it cant find
> org.apache.jasper.runtime package. But that is there in the lib directory
of
> tomcat's home in jasper.jar. All I know is that the ant script is not
> picking up my jasper.jar. I have correctly included the
> catalina-tasks.xmlas well.
>
> I compared with yours , all I found is that the one in doc uses a default
> jasper task, And you used your own(jasper2). But the Jasper shown on
tomcat
> docs works correctly though , but the javac fails.
>
>
>
>
>
>
>
> On 10/11/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> >
> > here is a script that precompiles just like Tomcat runtime, meaning, you
> > still keep the ability to reload your JSPs instead of converting them to
> > servlets
> > http://people.apache.org/~fhanik/tomcat-6-precompile.xml
> >
> > Filip
> >
> > Arun wrote:
> > > Hi,
> > >
> > > I want to precompile jsps for apache tomcat 6. Which ant task should i
> > use .
> > > Is there a simple example for that.
> > > I am using a build.xml exported from MyEclipse. Where would the JSP
> > classes
> > > go in WEB-INF/classes. What structure does it have.
> > >
> > >
> > >
> >
> 
> > >
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date:
> > 10/10/2007 5:11 PM
> > >
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Thanks
> Arun George
>


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



Does mod_jk copy memory b/w apache and tomcat (using linux, ajp13 worker)?

2007-10-11 Thread Moran Ben-David
Can anyone tell me if mod_jk does a copy of memory when it moves
tomcat output to apache through mod_jk?  My assumption has been that
the two processes (in linux) communicate by copying data from each
other's memory spaces.

If this is the case... does anyone know if there are plans to use the
new "splice()" method introduced by the new linux kernel to avoid
memory copies?

http://kernelnewbies.org/Linux_2_6_23#head-00a396149d15f77d386939dc88f5be0f7e5b748a

My apologies for not posting some sort of benchmark or digging deeper
myself into the code/monitoring of mod_jk.  I'm hoping to leverage
someone else's experience here.

Moran Ben-David

-
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: Precompile JSPs

2007-10-11 Thread Arun
Classpath with ant has always been sticky.
This is what I compiled from the docs.



 
 

 

 
  
  
  
  
   



 




 

   
   
   
  
 
My CATALINA_HOME enviroment variable points correctly .
I had done an echo ${CATALINA_HOME} and it worked. I had  been trying on the
same script for so long.





On 10/11/07, Pid <[EMAIL PROTECTED]> wrote:
>
> Arun wrote:
> > Filip,
> >
> > That works cool.
> > Thank you for the reply.
> >
> > I do not know why the one specified in tomcat docs does not work. All I
> know
> > is that it throws an error telling me that it cant find
> > org.apache.jasper.runtime package. But that is there in the lib
> directory of
> > tomcat's home in jasper.jar. All I know is that the ant script is not
> > picking up my jasper.jar. I have correctly included the
> > catalina-tasks.xmlas well.
>
> It does work, you just need to adjust the path to a Tomcat6 applicable
> one.  See my previous mail.
>
> > I compared with yours , all I found is that the one in doc uses a
> default
> > jasper task, And you used your own(jasper2). But the Jasper shown on
> tomcat
> > docs works correctly though , but the javac fails.
> >
> >
> >
> >
> >
> >
> >
> > On 10/11/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> >> here is a script that precompiles just like Tomcat runtime, meaning,
> you
> >> still keep the ability to reload your JSPs instead of converting them
> to
> >> servlets
> >> http://people.apache.org/~fhanik/tomcat-6-precompile.xml
> >>
> >> Filip
> >>
> >> Arun wrote:
> >>> Hi,
> >>>
> >>> I want to precompile jsps for apache tomcat 6. Which ant task should i
> >> use .
> >>> Is there a simple example for that.
> >>> I am using a build.xml exported from MyEclipse. Where would the JSP
> >> classes
> >>> go in WEB-INF/classes. What structure does it have.
> >>>
> >>>
> >>>
> >>>
> 
> >>>
> >>> No virus found in this incoming message.
> >>> Checked by AVG Free Edition.
> >>> Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date:
> >> 10/10/2007 5:11 PM
> >>
> >> -
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Arun George


Re: Precompile JSPs

2007-10-11 Thread Pid
Arun wrote:
> Filip,
> 
> That works cool.
> Thank you for the reply.
> 
> I do not know why the one specified in tomcat docs does not work. All I know
> is that it throws an error telling me that it cant find
> org.apache.jasper.runtime package. But that is there in the lib directory of
> tomcat's home in jasper.jar. All I know is that the ant script is not
> picking up my jasper.jar. I have correctly included the
> catalina-tasks.xmlas well.

It does work, you just need to adjust the path to a Tomcat6 applicable
one.  See my previous mail.

> I compared with yours , all I found is that the one in doc uses a default
> jasper task, And you used your own(jasper2). But the Jasper shown on tomcat
> docs works correctly though , but the javac fails.
> 
> 
> 
> 
> 
> 
> 
> On 10/11/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
>> here is a script that precompiles just like Tomcat runtime, meaning, you
>> still keep the ability to reload your JSPs instead of converting them to
>> servlets
>> http://people.apache.org/~fhanik/tomcat-6-precompile.xml
>>
>> Filip
>>
>> Arun wrote:
>>> Hi,
>>>
>>> I want to precompile jsps for apache tomcat 6. Which ant task should i
>> use .
>>> Is there a simple example for that.
>>> I am using a build.xml exported from MyEclipse. Where would the JSP
>> classes
>>> go in WEB-INF/classes. What structure does it have.
>>>
>>>
>>>
>>> 
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG Free Edition.
>>> Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date:
>> 10/10/2007 5:11 PM
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 


-
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: Precompile JSPs

2007-10-11 Thread Filip Hanik - Dev Lists
yes, it was a long time ago since I looked into the other way of doing 
it. Since compiling JSPs into servlets defeats the purpose of reloadable 
JSPs


Filip

Arun wrote:

Filip,

That works cool.
Thank you for the reply.

I do not know why the one specified in tomcat docs does not work. All I know
is that it throws an error telling me that it cant find
org.apache.jasper.runtime package. But that is there in the lib directory of
tomcat's home in jasper.jar. All I know is that the ant script is not
picking up my jasper.jar. I have correctly included the
catalina-tasks.xmlas well.

I compared with yours , all I found is that the one in doc uses a default
jasper task, And you used your own(jasper2). But the Jasper shown on tomcat
docs works correctly though , but the javac fails.







On 10/11/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
  

here is a script that precompiles just like Tomcat runtime, meaning, you
still keep the ability to reload your JSPs instead of converting them to
servlets
http://people.apache.org/~fhanik/tomcat-6-precompile.xml

Filip

Arun wrote:


Hi,

I want to precompile jsps for apache tomcat 6. Which ant task should i
  

use .


Is there a simple example for that.
I am using a build.xml exported from MyEclipse. Where would the JSP
  

classes


go in WEB-INF/classes. What structure does it have.





No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date:
  

10/10/2007 5:11 PM

-

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






  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007 5:11 PM
  



-
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: Native Library Not found

2007-10-11 Thread Juha Laiho
Arun wrote:
> That worked finally with the increase in PermGen space.

> I am a bit concerned about my server memory.
> See my top (not mine ofcourse)
> 
> top - 09:38:18 up  9:16,  3 users,  load average: 0.27, 0.18, 0.10
>   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
>  9770 root  25   0  491m  93m  35m R  102  4.6   0:13.64 java
> 
> top - 09:38:33 up  9:16,  3 users,  load average: 0.43, 0.22, 0.11
>   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
>  9770 root  25   0  504m 138m  35m R  100  6.8   0:28.66 java
> 
> top - 09:38:42 up  9:16,  3 users,  load average: 0.52, 0.25, 0.12
>   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
>  9770 root  25   0  512m 166m  31m R  100  8.2   0:37.63 java
> 
> top - 09:39:03 up  9:17,  3 users,  load average: 0.45, 0.25, 0.12
>   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
>  9770 root  25   0  529m 175m  31m S   96  8.7   0:41.00 java
> 
> top - 09:39:21 up  9:17,  3 users,  load average: 0.42, 0.25, 0.13
>   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
>  9770 root  25   0  561m 192m  31m S9  9.5   0:47.93 java
> 
> 
> See Mem: line and see the second one . It rises so fast  . See at what rate.

Well, look at the CPU consumption at the same period - so your Tomcat
is working on something. Looking at the amount of CPU time consumed,
it could even be still running the application startup (Tomcat by itself
can take something like 20 seconds of pure CPU time, on some machine
architectures at least -- and here the CPU time usage is running from
13 to 48 seconds - so it's still too early to say whether the rise
in memory usage will continue or not).

> What is this PermGen space. Why does not it get garbage collected.

PermGen is the holding space for the program code in your currently
active classes. So, looks like whatever you're using has quite a large
active codebase.

> Is there anyway  I can tell tomcat to suggest the VM a garbage collection
> more often than the default garbage collection algorithm does. Is there any
> declerative way of doing, xml, .sh?

Even PermGen is cleaned in current JVM versions -- but classes can only
be unloaded when there's no reference to the class within the JVM.
And garbage collection overall is done when needed: it is definitely
done before JVM throws an out of memory error. There's quite a lot of
tunables for the JVM (including garbage collection), but pretty much
you should trust the defaults (unless you have experience to actually
distrust the defaults because of some specific feature in your application
or runtime environment).
-- 
..Juha

-
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: Precompile JSPs

2007-10-11 Thread Arun
Filip,

That works cool.
Thank you for the reply.

I do not know why the one specified in tomcat docs does not work. All I know
is that it throws an error telling me that it cant find
org.apache.jasper.runtime package. But that is there in the lib directory of
tomcat's home in jasper.jar. All I know is that the ant script is not
picking up my jasper.jar. I have correctly included the
catalina-tasks.xmlas well.

I compared with yours , all I found is that the one in doc uses a default
jasper task, And you used your own(jasper2). But the Jasper shown on tomcat
docs works correctly though , but the javac fails.







On 10/11/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
>
> here is a script that precompiles just like Tomcat runtime, meaning, you
> still keep the ability to reload your JSPs instead of converting them to
> servlets
> http://people.apache.org/~fhanik/tomcat-6-precompile.xml
>
> Filip
>
> Arun wrote:
> > Hi,
> >
> > I want to precompile jsps for apache tomcat 6. Which ant task should i
> use .
> > Is there a simple example for that.
> > I am using a build.xml exported from MyEclipse. Where would the JSP
> classes
> > go in WEB-INF/classes. What structure does it have.
> >
> >
> >
> > 
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date:
> 10/10/2007 5:11 PM
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Arun George


Re: Tomcat library hierarchy

2007-10-11 Thread Martin Gainty
Andrew

endorsed libraries are used to override standard libraries
(newer endorsed libraries override the older endorsed libraries)
http://java.sun.com/javase/6/docs/technotes/guides/standards/

endorsed packages includes the following JAVA packages (partial listing):

javax.rmi.CORBA
org.omg.CORBA
org.omg.CORBA.DynAnyPackage
org.omg.CORBA.ORBPackage
org.omg.CORBA.portable
org.omg.CORBA.TypeCodePackage
org.omg.CORBA_2_3
org.omg.CORBA_2_3.portable
org.omg.CosNaming
org.omg.CosNaming.NamingContextExtPackage
org.omg.CosNaming.NamingContextPackage
org.omg.Dynamic
org.omg.DynamicAny
org.omg.DynamicAny.DynAnyFactoryPackage
org.omg.DynamicAny.DynAnyPackage
org.omg.IOP
org.omg.IOP.CodecFactoryPackage
org.omg.IOP.CodecPackage
org.omg.Messaging
org.omg.PortableInterceptor
org.omg.PortableInterceptor.ORBInitInfoPackage
org.omg.PortableServer
org.omg.PortableServer.CurrentPackage
org.omg.PortableServer.POAManagerPackage
org.omg.PortableServer.POAPackage
org.omg.PortableServer.portable
org.omg.PortableServer.ServantLocatorPackage
org.omg.SendingContext
org.omg.stub.java.rmi
org.w3c.dom
org.xml.sax
org.xml.sax.ext
org.xml.sax.helpers

HTH/
Martin
- Original Message -
From: "Andrew Hole" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, October 11, 2007 10:34 AM
Subject: Re: Tomcat library hierarchy


> Only thing that doc says:
> "All unpacked classes and resources in $CATALINA_HOME/common/classes,
> as well as classes and resources in JAR files under the
> $CATALINA_HOME/commons/endorsed, $CATALINA_HOME/commons/i18n and
> $CATALINA_HOME/common/lib directories, are made visible through this
> class loader. "
>
> I don't know difference between put a jar in common lib or common endorsed
p.e.
>
> Best regards
>
>
>
> On 10/11/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > > From: Andrew Hole [mailto:[EMAIL PROTECTED]
> > > Subject: Tomcat library hierarchy
> > >
> > > What's the difference between common/lib , common/endorsed
> > > and common/classes?
> >
> > Look at the doc:
> > http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> > received this in error, please contact the sender and delete the e-mail
> > and its attachments from all computers.
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
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: Precompile JSPs

2007-10-11 Thread Filip Hanik - Dev Lists
here is a script that precompiles just like Tomcat runtime, meaning, you 
still keep the ability to reload your JSPs instead of converting them to 
servlets

http://people.apache.org/~fhanik/tomcat-6-precompile.xml

Filip

Arun wrote:

Hi,

I want to precompile jsps for apache tomcat 6. Which ant task should i use .
Is there a simple example for that.
I am using a build.xml exported from MyEclipse. Where would the JSP classes
go in WEB-INF/classes. What structure does it have.


  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007 5:11 PM
  



-
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: Precompile JSPs

2007-10-11 Thread Phi-Long LE

You can precompile jsp using
wget and jsp_precompile=true

for example I use this:

#!/usr/bin/posix/sh
for aJSP in $(find $HELIOS -name "*.jsp" | sed -e "s:$HELIOS::g") ; do
   wget http://vhpuw51:$aJSP?jsp_precompile=true
done

Le 11/10/2007 15:26, Pid a écrit :

Arun wrote:
  

jspc:



  

What is wrong?



You're sending me twice as many mails as you need to, for a start.
Reply-to-all is unnecessary - just reply to the list please.



The error message tells you what's wrong, on line 10.

 "navigation.jsp(10,20) attribute for %>" is not properly terminated "

Does the html:link tag href attribute accept scriptlets?
Probably not.

Does it accept dynamic runtime expression values?
Check in the tld definition


You'll likely have to use an expression language statement instead of a
script variable, e.g.  ${pageContext.request.contextPath}


p


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


  


-
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: Precompile JSPs

2007-10-11 Thread Pid
Arun wrote:
> Ok, I fixed that up and I have an error coming from the ant script  that I
> copied from tomcat docs. The error said, there is no such directory called
> /usr/local/bin/apache-tomcat-6.0.13/common/lib.

Correct, Tomcat 6 uses doesn't use 3 different directories (common,
server, shared) for libraries, it uses just one (lib).

> There is no folder called common/lib in my tomcat 6 home directory.
> When I commented that line from the script,  ant told me that it cannot
> find HttpJspBase class. I checked docjar.com and found that the jar file was
> jasper-runtime.jar.

That's because it needs to know where the lib directory, and the files
are.  Simply commenting the line out will not fix the problem.

Change the "common/lib" to "lib", or follow the instructions below.

> Obviously this would have been in common/lib. I downloaded my tomcat 6 from
> apache website. Why is there no jasper runtime.?

There is, you may even have found the files if you get around to looking
at your Tomcat installation.  As before, I recommend you familiarise
yourself with the documentation and also the files that make up your
Tomcat installation.

Look in the TOMCAT/bin directory, there you will find some useful files,
catalina-tasks.xml is one such that contains the Ant task definitions.
You can import that into your Ant script (see below) and it should have
the correct settings for your version of Tomcat.

  


(You may also wish to advance your knowledge by investigating what the
others do, too).


p



> On 10/11/07, David Smith <[EMAIL PROTECTED]> wrote:
>> Why are you mixing el expressions with <%= ... %> expressions?  I'd
>> replace <%=request.getContextPath()%> with ${request.contextPath}.
>>
>> --David
>>
>> Arun wrote:
>>
>>> jspc:
>>>
>>> BUILD FAILED
>>> /home/build/mobchannel/mobchannelWEB/build.xml:199:
>>> org.apache.jasper.JasperException:
>>> file:/home/build/mobchannel/mobchannelWEB/WebRoot/jsp/toolbox/navigation.jsp(10,20)
>>> attribute for %>" is not properly terminated
>>>
>>> I got this error on using the jspc task.
>>> I have copied the from the tomcat docs sited above.
>>>
>>> My navigation.jsp looks like
>>>
>>> <[EMAIL PROTECTED] pageEncoding="UTF-8"%>
>>> <[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8" %>
>>> <%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles"%>
>>> <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>
>>> <%@ taglib uri="/WEB-INF/c-rt.tld" prefix="c"%>
>>> <%@ taglib uri="/WEB-INF/fmt-rt.tld" prefix="fmt"%>
>>> 
>>> 
>>> 
>>> ‍>> key="toolbox.menu.quickmessage"/>  | 
>>> >> key="toolbox.menu.sendcard" />‌  |
>>> >> key="toolbox.menu.today" />  |
>>> >> key="toolbox.menu.lipi"/>‍  |
>>> 
>>> 
>>>
>>> What is wrong?
>>>
>>>
>>> On 10/11/07, Pid <[EMAIL PROTECTED]> wrote:
>>>
>>>
 Arun wrote:


> Hi,
>
> I want to precompile jsps for apache tomcat 6. Which ant task should i
>
>
 use .


> Is there a simple example for that.
> I am using a build.xml exported from MyEclipse. Where would the JSP
>
>
 classes


> go in WEB-INF/classes. What structure does it have.
>
>
>
>
 http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html

 Strongly recommend familiarising yourself with the documentation, where
 the config is, how it works, etc.  Most of the information you need to
 deal with common problems can be found here.


 p



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




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


-
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 library hierarchy

2007-10-11 Thread Caldarale, Charles R
> From: Andrew Hole [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat library hierarchy
> 
> I don't know difference between put a jar in common lib or 
> common endorsed p.e.

The endorsed classloader is functionally equivalent to using the
bootstrap classloader (it's actually between the bootstrap and system
classloaders, but endorsed classes have the same privileges as those
from bootstrap).  Normally, nothing should go into endorsed, unless you
want it treated like it's part of the JRE.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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 library hierarchy

2007-10-11 Thread Andrew Hole
Only thing that doc says:
"All unpacked classes and resources in $CATALINA_HOME/common/classes,
as well as classes and resources in JAR files under the
$CATALINA_HOME/commons/endorsed, $CATALINA_HOME/commons/i18n and
$CATALINA_HOME/common/lib directories, are made visible through this
class loader. "

I don't know difference between put a jar in common lib or common endorsed p.e.

Best regards



On 10/11/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > From: Andrew Hole [mailto:[EMAIL PROTECTED]
> > Subject: Tomcat library hierarchy
> >
> > What's the difference between common/lib , common/endorsed
> > and common/classes?
>
> Look at the doc:
> http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
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: Precompile JSPs

2007-10-11 Thread Arun
The build output I got after fixing, if that helps.

jspc:

precompile-jsps:
[javac] Compiling 370 source files to
/home/build/mobchannel/mobchannelWEB/WebRoot/WEB-INF/classes
[javac]
/home/build/mobchannel/mobchannelWEB/WebRoot/WEB-INF/src/org/apache/jsp/home_jsp.java:7:
package org.apache.jasper.runtime does not exist
[javac] public final class home_jsp extends
org.apache.jasper.runtime.HttpJspBase
[javac]  ^
[javac]
/home/build/mobchannel/mobchannelWEB/WebRoot/WEB-INF/src/org/apache/jsp/home_jsp.java:8:
package org.apache.jasper.runtime does not exist



On 10/11/07, Arun <[EMAIL PROTECTED]> wrote:
>
> Ok, I fixed that up and I have an error coming from the ant script  that I
> copied from tomcat docs. The error said, there is no such directory called
> /usr/local/bin/apache-tomcat-6.0.13/common/lib.
> There is no folder called common/lib in my tomcat 6 home directory.
> When I commented that line from the script,  ant told me that it cannot
> find HttpJspBase class. I checked docjar.com and found that the jar file
> was jasper-runtime.jar.
> Obviously this would have been in common/lib. I downloaded my tomcat 6
> from apache website. Why is there no jasper runtime.?
>
>
> On 10/11/07, David Smith <[EMAIL PROTECTED]> wrote:
> >
> > Why are you mixing el expressions with <%= ... %> expressions?  I'd
> > replace <%=request.getContextPath ()%> with ${request.contextPath}.
> >
> > --David
> >
> > Arun wrote:
> >
> > >jspc:
> > >
> > >BUILD FAILED
> > >/home/build/mobchannel/mobchannelWEB/build.xml:199:
> > >org.apache.jasper.JasperException:
> > >file:/home/build/mobchannel/mobchannelWEB/WebRoot/jsp/toolbox/navigation.jsp(10,20)
> >
> > >attribute for %>" is not properly terminated
> > >
> > >I got this error on using the jspc task.
> > >I have copied the from the tomcat docs sited above.
> > >
> > >My navigation.jsp looks like
> > >
> > ><[EMAIL PROTECTED] pageEncoding="UTF-8"%>
> > ><[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8" %>
> > ><%@ taglib uri=" http://struts.apache.org/tags-tiles"; prefix="tiles"%>
> > ><%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>
> > ><%@ taglib uri="/WEB-INF/c-rt.tld" prefix="c"%>
> > ><%@ taglib uri="/WEB-INF/fmt-rt.tld" prefix="fmt"%>
> > >
> > >
> > >
> > > > >href="<%=request.getContextPath()%>/toolbox/toolboxflow.do?dispatch=quickmessage">‍ >
> > >key="toolbox.menu.quickmessage"/>  | 
> > > > >href="<%=request.getContextPath()%>/toolbox/toolboxflow.do?dispatch=sendcard"> >
> > >key="toolbox.menu.sendcard" />‌  |
> > > > >href="<%=request.getContextPath()%>/toolbox/toolboxflow.do?dispatch=today"> >
> > >key="toolbox.menu.today" />  |
> > > > >href="<%=request.getContextPath()%>/toolbox/toolboxflow.do?dispatch=lipi"> >
> > >key="toolbox.menu.lipi"/>‍  |
> > >
> > >
> > >
> > >What is wrong?
> > >
> > >
> > >On 10/11/07, Pid < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > >>Arun wrote:
> > >>
> > >>
> > >>>Hi,
> > >>>
> > >>>I want to precompile jsps for apache tomcat 6. Which ant task should
> > i
> > >>>
> > >>>
> > >>use .
> > >>
> > >>
> > >>>Is there a simple example for that.
> > >>>I am using a build.xml exported from MyEclipse. Where would the JSP
> > >>>
> > >>>
> > >>classes
> > >>
> > >>
> > >>>go in WEB-INF/classes. What structure does it have.
> > >>>
> > >>>
> > >>>
> > >>>
> > >> http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html
> > >>
> > >>Strongly recommend familiarising yourself with the documentation,
> > where
> > >>the config is, how it works, etc.  Most of the information you need to
> >
> > >>deal with common problems can be found here.
> > >>
> > >>
> > >>p
> > >>
> > >>
> > >>
> > >>-
> > >>To start a new topic, e-mail: users@tomcat.apache.org
> > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Thanks
> Arun George




-- 
Thanks
Arun George


RE: Tomcat library hierarchy

2007-10-11 Thread Caldarale, Charles R
> From: Andrew Hole [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat library hierarchy
> 
> What's the difference between common/lib , common/endorsed 
> and common/classes?

Look at the doc:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Precompile JSPs

2007-10-11 Thread Arun
Ok, I fixed that up and I have an error coming from the ant script  that I
copied from tomcat docs. The error said, there is no such directory called
/usr/local/bin/apache-tomcat-6.0.13/common/lib.
There is no folder called common/lib in my tomcat 6 home directory.
When I commented that line from the script,  ant told me that it cannot
find HttpJspBase class. I checked docjar.com and found that the jar file was
jasper-runtime.jar.
Obviously this would have been in common/lib. I downloaded my tomcat 6 from
apache website. Why is there no jasper runtime.?


On 10/11/07, David Smith <[EMAIL PROTECTED]> wrote:
>
> Why are you mixing el expressions with <%= ... %> expressions?  I'd
> replace <%=request.getContextPath()%> with ${request.contextPath}.
>
> --David
>
> Arun wrote:
>
> >jspc:
> >
> >BUILD FAILED
> >/home/build/mobchannel/mobchannelWEB/build.xml:199:
> >org.apache.jasper.JasperException:
>
> >file:/home/build/mobchannel/mobchannelWEB/WebRoot/jsp/toolbox/navigation.jsp(10,20)
> >attribute for %>" is not properly terminated
> >
> >I got this error on using the jspc task.
> >I have copied the from the tomcat docs sited above.
> >
> >My navigation.jsp looks like
> >
> ><[EMAIL PROTECTED] pageEncoding="UTF-8"%>
> ><[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8" %>
> ><%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles"%>
> ><%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>
> ><%@ taglib uri="/WEB-INF/c-rt.tld" prefix="c"%>
> ><%@ taglib uri="/WEB-INF/fmt-rt.tld" prefix="fmt"%>
> >
> >
> >
> >‍ >key="toolbox.menu.quickmessage"/>  | 
> > >key="toolbox.menu.sendcard" />‌  |
> > >key="toolbox.menu.today" />  |
> > >key="toolbox.menu.lipi"/>‍  |
> >
> >
> >
> >What is wrong?
> >
> >
> >On 10/11/07, Pid <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Arun wrote:
> >>
> >>
> >>>Hi,
> >>>
> >>>I want to precompile jsps for apache tomcat 6. Which ant task should i
> >>>
> >>>
> >>use .
> >>
> >>
> >>>Is there a simple example for that.
> >>>I am using a build.xml exported from MyEclipse. Where would the JSP
> >>>
> >>>
> >>classes
> >>
> >>
> >>>go in WEB-INF/classes. What structure does it have.
> >>>
> >>>
> >>>
> >>>
> >>http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html
> >>
> >>Strongly recommend familiarising yourself with the documentation, where
> >>the config is, how it works, etc.  Most of the information you need to
> >>deal with common problems can be found here.
> >>
> >>
> >>p
> >>
> >>
> >>
> >>-
> >>To start a new topic, e-mail: users@tomcat.apache.org
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Arun George


Tomcat library hierarchy

2007-10-11 Thread Andrew Hole
Hello!

What's the difference between common/lib , common/endorsed and common/classes?

Thanks a lot

-
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: Precompile JSPs

2007-10-11 Thread Pid
Arun wrote:
> jspc:

> What is wrong?

You're sending me twice as many mails as you need to, for a start.
Reply-to-all is unnecessary - just reply to the list please.



The error message tells you what's wrong, on line 10.

 "navigation.jsp(10,20) attribute for %>" is not properly terminated "

Does the html:link tag href attribute accept scriptlets?
Probably not.

Does it accept dynamic runtime expression values?
Check in the tld definition


You'll likely have to use an expression language statement instead of a
script variable, e.g.  ${pageContext.request.contextPath}


p


-
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: Precompile JSPs

2007-10-11 Thread Arun
David,
My webapp runs and works correctly. I just want to precompile jsps to
increase initial performance. Is there anyway for Jasper to skip these
errors, and continue compilation.


On 10/11/07, David Smith <[EMAIL PROTECTED]> wrote:
>
> Why are you mixing el expressions with <%= ... %> expressions?  I'd
> replace <%=request.getContextPath()%> with ${request.contextPath}.
>
> --David
>
> Arun wrote:
>
> >jspc:
> >
> >BUILD FAILED
> >/home/build/mobchannel/mobchannelWEB/build.xml:199:
> >org.apache.jasper.JasperException:
>
> >file:/home/build/mobchannel/mobchannelWEB/WebRoot/jsp/toolbox/navigation.jsp(10,20)
> >attribute for %>" is not properly terminated
> >
> >I got this error on using the jspc task.
> >I have copied the from the tomcat docs sited above.
> >
> >My navigation.jsp looks like
> >
> ><[EMAIL PROTECTED] pageEncoding="UTF-8"%>
> ><[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8" %>
> ><%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles"%>
> ><%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>
> ><%@ taglib uri="/WEB-INF/c-rt.tld" prefix="c"%>
> ><%@ taglib uri="/WEB-INF/fmt-rt.tld" prefix="fmt"%>
> >
> >
> >
> >‍ >key="toolbox.menu.quickmessage"/>  | 
> > >key="toolbox.menu.sendcard" />‌  |
> > >key="toolbox.menu.today" />  |
> > >key="toolbox.menu.lipi"/>‍  |
> >
> >
> >
> >What is wrong?
> >
> >
> >On 10/11/07, Pid <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Arun wrote:
> >>
> >>
> >>>Hi,
> >>>
> >>>I want to precompile jsps for apache tomcat 6. Which ant task should i
> >>>
> >>>
> >>use .
> >>
> >>
> >>>Is there a simple example for that.
> >>>I am using a build.xml exported from MyEclipse. Where would the JSP
> >>>
> >>>
> >>classes
> >>
> >>
> >>>go in WEB-INF/classes. What structure does it have.
> >>>
> >>>
> >>>
> >>>
> >>http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html
> >>
> >>Strongly recommend familiarising yourself with the documentation, where
> >>the config is, how it works, etc.  Most of the information you need to
> >>deal with common problems can be found here.
> >>
> >>
> >>p
> >>
> >>
> >>
> >>-
> >>To start a new topic, e-mail: users@tomcat.apache.org
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Arun George


Re: Perl Permissions on Tomcat

2007-10-11 Thread Li Ye Chen
Script A (the problem script) continues to run after 2 minutes (with partial 
output some of the time). But script A ran under the command line (as opposed 
to the browser/Tomcat) is very fast -- under a second and gives full output. 
Script B runs under less than a second and gives full output.

-Original Message-

> Date: Wed Oct 10 18:07:30 EDT 2007
> From: "Mark Thomas" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> Li Ye Chen wrote:
> > Apparently, it may also be a speed issue, since there was once when I ran 
> > script A and after a while, I stopped the transmission -- there was 
> > actually a partial output from the script.
> 
> How long does script A take to run?
> 
> Mark
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
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: Precompile JSPs

2007-10-11 Thread David Smith
Why are you mixing el expressions with <%= ... %> expressions?  I'd 
replace <%=request.getContextPath()%> with ${request.contextPath}.


--David

Arun wrote:


jspc:

BUILD FAILED
/home/build/mobchannel/mobchannelWEB/build.xml:199:
org.apache.jasper.JasperException:
file:/home/build/mobchannel/mobchannelWEB/WebRoot/jsp/toolbox/navigation.jsp(10,20)
attribute for %>" is not properly terminated

I got this error on using the jspc task.
I have copied the from the tomcat docs sited above.

My navigation.jsp looks like

<[EMAIL PROTECTED] pageEncoding="UTF-8"%>
<[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles"%>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>
<%@ taglib uri="/WEB-INF/c-rt.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/fmt-rt.tld" prefix="fmt"%>



‍  | 
‌  |
  |
‍  |



What is wrong?


On 10/11/07, Pid <[EMAIL PROTECTED]> wrote:
 


Arun wrote:
   


Hi,

I want to precompile jsps for apache tomcat 6. Which ant task should i
 


use .
   


Is there a simple example for that.
I am using a build.xml exported from MyEclipse. Where would the JSP
 


classes
   


go in WEB-INF/classes. What structure does it have.


 


http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html

Strongly recommend familiarising yourself with the documentation, where
the config is, how it works, etc.  Most of the information you need to
deal with common problems can be found here.


p



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


   




 




-
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: Precompile JSPs

2007-10-11 Thread Arun
jspc:

BUILD FAILED
/home/build/mobchannel/mobchannelWEB/build.xml:199:
org.apache.jasper.JasperException:
file:/home/build/mobchannel/mobchannelWEB/WebRoot/jsp/toolbox/navigation.jsp(10,20)
attribute for %>" is not properly terminated

I got this error on using the jspc task.
I have copied the from the tomcat docs sited above.

My navigation.jsp looks like

<[EMAIL PROTECTED] pageEncoding="UTF-8"%>
<[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles"%>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>
<%@ taglib uri="/WEB-INF/c-rt.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/fmt-rt.tld" prefix="fmt"%>



‍  | 
‌  |
  |
‍  |



What is wrong?


On 10/11/07, Pid <[EMAIL PROTECTED]> wrote:
>
> Arun wrote:
> > Hi,
> >
> > I want to precompile jsps for apache tomcat 6. Which ant task should i
> use .
> > Is there a simple example for that.
> > I am using a build.xml exported from MyEclipse. Where would the JSP
> classes
> > go in WEB-INF/classes. What structure does it have.
> >
> >
>
> http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html
>
> Strongly recommend familiarising yourself with the documentation, where
> the config is, how it works, etc.  Most of the information you need to
> deal with common problems can be found here.
>
>
> p
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Arun George


Re: Precompile JSPs

2007-10-11 Thread Arun
Ok, Thanks

On 10/11/07, Pid <[EMAIL PROTECTED]> wrote:
>
> Arun wrote:
> > Hi,
> >
> > I want to precompile jsps for apache tomcat 6. Which ant task should i
> use .
> > Is there a simple example for that.
> > I am using a build.xml exported from MyEclipse. Where would the JSP
> classes
> > go in WEB-INF/classes. What structure does it have.
> >
> >
>
> http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html
>
> Strongly recommend familiarising yourself with the documentation, where
> the config is, how it works, etc.  Most of the information you need to
> deal with common problems can be found here.
>
>
> p
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Arun George


Re: Precompile JSPs

2007-10-11 Thread Pid
Arun wrote:
> Hi,
> 
> I want to precompile jsps for apache tomcat 6. Which ant task should i use .
> Is there a simple example for that.
> I am using a build.xml exported from MyEclipse. Where would the JSP classes
> go in WEB-INF/classes. What structure does it have.
> 
> 

http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html

Strongly recommend familiarising yourself with the documentation, where
the config is, how it works, etc.  Most of the information you need to
deal with common problems can be found here.


p



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



Precompile JSPs

2007-10-11 Thread Arun
Hi,

I want to precompile jsps for apache tomcat 6. Which ant task should i use .
Is there a simple example for that.
I am using a build.xml exported from MyEclipse. Where would the JSP classes
go in WEB-INF/classes. What structure does it have.


-- 
Thanks
Arun George


JAAS Realms, cookies and authentication

2007-10-11 Thread Emsley, I (Iain)
Hi,
 
I'm trying to implement a solution to log in users to one of our web
apps which runs on Tomcat via cookies to which I've had several false
starts and I'd like to ask some advice on the best way of implementing
this securely. 
 
What I'm trying to achieve is when the user logs in on main site and
clicks the link to the Java calendar, the link will read the cookie
(extracting the user name/password and converting into hex to send back
to the main config files to check if its valid whilst also checking that
they are a member of our service) and then grant access to the
application on success.

I was looking at the JAAS realm since the user information is kept in
what is essentially a flat file db and trying to write a LoginModule
which replicates the existing Perl scripts actions for checking
username/password and membership. AFAIUI, I'd need to write a servlet to
process the cookie before hitting the JAAS realm though. Have I
understood this correctly or can I get the LoginModule to do the
processing (which appears to be implied in the Tomcat manual on Realms)?

Ultimately I will need to be able to log users in via http, https and
the Shibboleth Single Sign On (for which I know there is a JAAS realm).
As I understand it, as long as I have a config which lists all the
various login methods, I should be able to stack these onto one Tomcat,
or have I also misunderstood this? 

Many thanks in advance. 

Iain
 
Iain Emsley
 
Support Analyst
JISCmail: www.jiscmail.ac.uk
Mailtalk: www.mailtalk.ac.uk
 

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



mod_jk: Could not init service for worker

2007-10-11 Thread Hans van Zijst
Hi,

Since I updated my system last monday, mod_jk doesn't work anymore. Tomcat 
starts up just fine, no errors or warnings. I checked that the AJP1.3 connector 
runs, it listens on port 8009. Apache runs fine as well, but as soon as I 
connect to the URL I mapped to Tomcat, I get:

"[error] jk_handler::mod_jk.c (2223): Could not init service for 
worker=confluence"

I did a few traces and found out that no connection is attempted to port 8009, 
so I assume the problem is somewhere in my Apache config. I'm lost for answers 
as I couldn't find anything on the web or in my documentation. Can anyone 
please point me in the right direction?


This is my configuration:

Linux (Debian Lenny, i386)
Tomcat 5.5
Apache 2.2.6
mod_jk 1.2.25

Here's my workers.properties:

 BEGIN workers.properties 

worker.list=confluence

worker.confluence.host=localhost
worker.confluence.port=8009
worker.confluence.type=ajp13

 END workers.properties 

I configured mod_jk to log as much as possible. This is what it logs (from 
startup to "Internal server error"):

 BEGIN mod_jk log 

[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule 
'/confluence=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule 
'/confluence=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.891 2007] [15502:3078624944] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI 
'/confluence/' from 2 maps
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context URI 
'/confluence/*=confluence' source 'JkMount'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (624): Found a wildchar match 
'/confluence/*=confluence'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] jk_handler::mod_jk.c 
(2131): Into handler jakarta-servlet worker=confluence r->proxyreq=0
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_get_worker_for_name::jk_worker.c (115): found a worker confluence
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_maintain::jk_worker.c (323): Maintaining worker confluence
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_get_name_for_type::jk_worker.c (292): Found worker type 'ajp13'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [error] jk_handler::mod_jk.c 
(2223): Could not init service for worker=confluence

 END mod_jk log 

This is the Virtual Host I configured in Apache. Apache does client 
authentication: if you don't have the right SSL certificate, you're not coming 
in.

 BEGIN virtual host 
NameVirtualHost *:80


ServerAdmin 
ServerName 
ServerAlias 

RewriteEngine On
RewriteLogLevel 3
RewriteRule ^(/)(.*)$ https://%{HTTP_HOST}/confluence/$2 [R,L]
ServerSignature Off



NameVirtualHost *:443

ServerAdmin 
ServerName 
ServerAlias 

SSLEngine On
SSLVerifyClient require
SSLVerifyDepth 2
SSLCACertificateFile /etc/apache2/ssl/minichain.crt
SSLCertificateChainFile /etc/apache2/ssl/minichain.crt

RewriteEngine On
RewriteLogLevel 3
RewriteRule ^/confluence/ - [R,L]
RewriteRule ^(.*)$ /confluence/$1 [R,L,NE]


DocumentRoot /var/www/confluence/confluence

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
SSLRequireSSL


Alias /confluence /var/www/confluence/conf

RE: Setting up Tomcat instance ..HELP !!!

2007-10-11 Thread Quodras, Naveen
Thanks a lot Bruno !!!
 

-Original Message-
From: Bruno Vilardo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 6:38 PM
To: Tomcat Users List
Subject: Re: Setting up Tomcat instance ..HELP !!!

Naveen,

First you need to download the Tomcat. Then you need to extract it on
the directory you wish to install it.

Then you will need to configure some configuration files, like
Server.xml, Tomcat-Users.xml and so on.

If you go to the Tomcat WebPage, you will find many documentation on
how to install, setup and startup Tomcat.

HTH,

Good Lucky,

Bruno

On 10/10/07, Quodras, Naveen <[EMAIL PROTECTED]> wrote:
> Could some body let me know how to go about setting upa Tomcat
instance
> on linux
>
>

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

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