some doubts abt precompiling jsps.

2001-05-02 Thread kamesh jayachandran

Hai all,
As suggested I can precompile the jsps to classes,but the problem is
1)With jspc I am able to parse the jsps to java files.Now I can
compile.But tomcat follows its own naming convention when compiling the
jsps to classes upon request(if it is not precompiled).Shall I have to
follow the conventions in to make tomcat recognize it.But one solution
sugested is 
$./jspc.sh -webxml $TOMCAT_HOME/webapps/urcontext/WEB-INF/web.xml -d
$TOMCAT_HOME/webapps/urcontext/WEB-INF/classes -webapp
$TOMCAT_HOME/webapps/urcontext/

It parses the jsp files in the context "urcontext" to java files to my
classes folder now I have to compile it.

It generates the web.xml file which maps the jsp request to a compile
servlet.
According to my understanding each web application will have one
JSPServlet instance and depending on the request the corresponding pages
will be shown as the output stream of JSPServlet.(This is what I infer
from the extension mapping in the ROOT web.xml file).If I generate the
web.xml which points to each request to each servlet,It will lead to many
servlets instanaces instead of one JSPServlet.

Any other solution .....
kamesh jayachandran

-- 
"I would suggest you to read through the following book and files:
* Kernighan & Pike, "The Practice of Programming"
* Documentation/CodingStyle
* drivers/net/aironet4500_proc.c
 and consider, erm, discrepancies. On the second thought, reading K&R
 might also be useful. IOW, no offense, but your C is bad beyond belief."
- Al Viro




How to precompile the jsps?

2001-04-30 Thread kamesh jayachandran

Hai all,
I have used jspc.sh to compile the jsps.
I have invoked the jspc like below
>From the tomcat bin directory
$./jspc.sh -d ../work/localhost_8080%2Fmycontext/ -webapp
../webapps/mycontext
This results in only parsed jsp files(.java files) not the .class files.
Any options to be included?
waiting for ur reply
kamesh jayachandran

-- 
"Hardware simply does not work like the manual says and no amount 
 of Zen contemplation will ever make you at one with a 3c905B 
 ethernet card."
- Alan Cox




RE: /examples/servlet

2001-04-11 Thread kamesh jayachandran

Hai,
Finally I fixed this problem,by commenting out the Alias directive for
each Context in the auto generated tomcat-apache.conf file and adding one
more line like "ApJServMount /examples /root" above the already existing
ApJServMount line for each Context("ApJServMount /example/servlet
/examples ").
Everything is working fine.
But what is /root mean?
Thanks all for ur kind replies
kamesh jayachandran
 On Wed, 11 Apr 2001
[EMAIL PROTECTED] wrote:

> 
> 
> Kamesh,
> I wouldn't know how to get mod_jk.so for linux. If you're using modjserv then
> you're in luck because the user guidelines are for mod_jserv only. Have you been
> to:
> http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html
> 
> Scroll down a third of the way to the part that says:
> "Setting Tomcat to Cooperate with the Apache Web Server"
> 
> Good luck,
> suha.
> 
> 
> 
> 
> 
> Kamesh J <[EMAIL PROTECTED]> on 04/11/2001 12:17:32 AM
> 
> To:   Suha Yacoub/IL/ONE@BANCONE
> cc:
> Subject:  RE: /examples/servlet
> 
> 
> 
> Hai,
> Thanks for responding.I am using mod_jserv.As I am not successful with
> mod_jk.so.I am getting garbled and invalid DSO module error repeatedly.So
> using only mod_jserv.so
> If possible send me the mod_jk.so for linux on intel.
> 
> Thanks again
> kamesh jayachandran
> 
> > --
> > From:   [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
> > Sent:   Wednesday, April 11, 2001 1:07 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: /examples/servlet
> >
> >
> >
> > Hello Kamesh,
> > Did you specify your java home directory and your jakarta home directory
> > in the
> > workers.properties file?
> > I'll email you if I think of something else, or feel free to email me.
> > take care,
> > suha.
> >
> >
> >
> >
> >
> > kamesh jayachandran <[EMAIL PROTECTED]> on 04/10/2001 11:45:26 PM
> >
> > Please respond to [EMAIL PROTECTED]
> >
> > To:   Suha Yacoub/IL/ONE@BANCONE
> > cc:   [EMAIL PROTECTED]
> > Subject:  Re: /examples/servlet
> >
> >
> >
> > Hai,
> > Even after commenting out the HTTP port part in server.xml I am getting
> > the 404 file not found error.can u send ur server.xml and
> > tomcat-apache.conf files.
> > Thanks again
> > kamesh jayacahnadran
> > On Tue, 10 Apr 2001 [EMAIL PROTECTED] wrote:
> >
> >
> > >
> > >
> > > Kamesh,
> > > We had the same problem. In the server.xml file comment out the HTTP
> > port part
> > > that tells tomcat to use port 8080. Make sure that ajp12 is talking to
> > apache
> > > via port 8007. This should be in the server.xml file also.
> > > Hope this helps.
> > >
> > >
> > >
> > >
> > >
> > > Kamesh J <[EMAIL PROTECTED]> on 04/10/2001 02:15:17 AM
> > >
> > > Please respond to [EMAIL PROTECTED]
> > >
> > > To:   "'[EMAIL PROTECTED]'"
> > <[EMAIL PROTECTED]>
> > > cc:(bcc: Suha Yacoub/IL/ONE)
> > > Subject:  /examples/servlet
> > >
> > >
> > >
> > > when the request is coming for URL
> > > http://localhost:8080/examples/servlet/HelloWorldExample,Tomcat responds
> > > without any problem.
> > > But when the request is coming for URL
> > > http://localhost/examples/servlet/HelloWorldExample apache is taking
> > charge
> > > and gives file not found error.
> > > I have ApJservMount /examples/servlet /examples in tomcat-apache.conf
> > file
> > > and including it in httpd.conf file
> > >
> > > I have RHL6.2,Tomcat3.2.1,apache 1.3.12
> > > waiting eagerly for ur reply
> > > kamesh jayachandran
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > "Think of it this way: threads are like salt, not like
> >  pasta. You like salt, I like salt, we all like salt. But we
> >  eat more pasta."
> >  - Larry McVoy
> >
> >
> >
> >
> >
> >
> >
> 
> 
> 
> 

-- 
"I want you guys to look at your computer screen, imagining the worst
 monster you can (the cacodeamon from Quake will do, just make him hairier
 and bigger and more MEAN), and think of me. Think of me like I am when I
 see a patch which isn't a pure bug-fix.

 If you're whimpering just _thinking_ about sending me a new feature,
 you're in the right mindframe. Keep that mindframe."
- Linus Torvalds




Re: /examples/servlet

2001-04-10 Thread kamesh jayachandran

Hai,
Even after commenting out the HTTP port part in server.xml I am getting
the 404 file not found error.can u send ur server.xml and
tomcat-apache.conf files.
Thanks again
kamesh jayacahnadran
On Tue, 10 Apr 2001 [EMAIL PROTECTED] wrote:


> 
> 
> Kamesh,
> We had the same problem. In the server.xml file comment out the HTTP port part
> that tells tomcat to use port 8080. Make sure that ajp12 is talking to apache
> via port 8007. This should be in the server.xml file also.
> Hope this helps.
> 
> 
> 
> 
> 
> Kamesh J <[EMAIL PROTECTED]> on 04/10/2001 02:15:17 AM
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> cc:(bcc: Suha Yacoub/IL/ONE)
> Subject:  /examples/servlet
> 
> 
> 
> when the request is coming for URL
> http://localhost:8080/examples/servlet/HelloWorldExample,Tomcat responds
> without any problem.
> But when the request is coming for URL
> http://localhost/examples/servlet/HelloWorldExample apache is taking charge
> and gives file not found error.
> I have ApJservMount /examples/servlet /examples in tomcat-apache.conf file
> and including it in httpd.conf file
> 
> I have RHL6.2,Tomcat3.2.1,apache 1.3.12
> waiting eagerly for ur reply
> kamesh jayachandran
> 
> 
> 
> 
> 
> 
> 
> 

-- 
"Think of it this way: threads are like salt, not like
 pasta. You like salt, I like salt, we all like salt. But we
 eat more pasta."
- Larry McVoy




RE: mod_jk.so garbled

2001-01-16 Thread kamesh jayachandran

On Tue, 16 Jan 2001, GOMEZ Henri wrote:
Hai,
I am using RHL6.2 stock install.I don't know whether it has mod_ssl
support or not.I have seen apache's libexec directory which has no
mod_ssl.Where can I get mod_ssl to make mod_jk.so work on my machine?
What is EAPI?
Thanks 
kamesh jayachandran
> >hai,
> >I copied  mod_jk.so file in the libexec directory of 
> >serverroot of apache.
> >But when I try to restart the apache I get the error as
> 
> The RPM you got on falsehope is mod_jk/mod_jserv for an apache
> compiled with EAPI !
> 
> You must run an apache with EAPI (ie apache-mod_ssl or apache present
> on Redhat 6.2/7.0 and may be recent Suse/Mandrake
>  
> >"Starting httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf:
> >API module structure `jk_module' in file 
> >/etc/httpd/libexec/mod_jk.so is 
> >garbled - perhaps this is not an Apache module DSO?"
> >
> >I got mod_jk.so from www.rpmfind.net,later by compiling with 
> >`make all in
> >the Makefile.linux in the tomcat 3.2.1 source 
> >distribution".Finally with
> >the command line given in the mod_jk-homto.html
> >
> >I have apache 1.3.12
> >tomcat 3.2.1
> >JDK1.3
> >RHL6.2
> >
> >Waiting for your reply
> >kamesh jayachandran
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, email: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-- 
/usr/games/fortune kernelnewbies|


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




mod_jk.so garbled

2001-01-16 Thread kamesh jayachandran

hai,
I copied  mod_jk.so file in the libexec directory of serverroot of apache.
But when I try to restart the apache I get the error as

"Starting httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf:
API module structure `jk_module' in file /etc/httpd/libexec/mod_jk.so is 
garbled - perhaps this is not an Apache module DSO?"

I got mod_jk.so from www.rpmfind.net,later by compiling with `make all in
the Makefile.linux in the tomcat 3.2.1 source distribution".Finally with
the command line given in the mod_jk-homto.html

I have apache 1.3.12
tomcat 3.2.1
JDK1.3
RHL6.2

Waiting for your reply
kamesh jayachandran




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




What is JDBCRealm?

2001-01-11 Thread kamesh jayachandran

I am having Postgresql db and using tomcat 3.2.1.I am accessing the DB
using JDBC.The JDBC Driver for Postgresql is in my system classpath.
Then what this JDBCRealm mean?
What is the speciality about JDBCRealm?
kamesh jayachandran


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