Re: java.net.SocketException: Broken pipe Error

2004-08-17 Thread shiv juluru
when did u get this error,give me that configure options 

Rajesh [EMAIL PROTECTED] wrote:Hai

in my tomcat logfile am getting the following exception very rarely. 
Will this will cause any problem in server or in my code ?


Aug 14, 2004 11:46:49 AM org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654)
at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:472)
at org.apache.coyote.Response.action(Response.java:226)
at org.apache.coyote.Response.finish(Response.java:348)
at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:328)
at 
org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.java:497)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Aug 14, 2004 11:46:49 AM org.apache.jk.server.JkCoyoteHandler action


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




-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Re: Tomcat 5 on Win XP Professional

2004-08-17 Thread shiv juluru
start catalina file at command prompt and tell me what tis the problem
catalina file availabel in ur installed tomcat directory in bin directory,
bincatalina start,
if any problems it gives error,
i think this may help for u.

Shei Delfin [EMAIL PROTECTED] wrote:

Hello,

Yes, i have the option service selected during the installation... but
the error is the same Service Not Found when I pretend start Tomcat 5
on XP.


Thanks



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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Re: web.xml and servlets used in an app

2004-08-14 Thread shiv juluru
Change the root path(By default it is webapps) in server.xml file in conf directory of 
ur tomcat directory,
and configure ur servlets in web.xml file in ur context path.
 
 
ur question is not clear.

Deepa Ramamurthy [EMAIL PROTECTED] wrote:
Hello!

Do I have to map all the servlets that my application uses in web.xml?
I am using Tomcat 5.0 on Windows.
I didn't have to do this on Tomcat 4.1 on Linux.

Thanks.
Deepa

-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Re: Invoking a servlet from the browser

2004-08-14 Thread shiv juluru
put ur servlets in ur context path,and  create a WEB-INF folder in that.

Julian [EMAIL PROTECTED] wrote:
Thankyou so much. I owe you! :)




Hiroshi Iwatani wrote:

 
 
 Julian wrote:
 
 Hi,

 I'm new to tomcat and jsp. Tomcat 5 seems to be working and I can 
 sucessfully invoke jsp files. No problems there.

 I want to invoke a servlet by typing the url into a browser and I 
 can't seem to manage it. Firstly, where do I put my servlets? Do I put 
 them in [install_dir]/webapps/ROOT/WEB-INF/classes
 
 Yes.
 And enable invoker servlet in the 
 [install_dir]/webapps/ROOT/WEB-INF/web.xml
 file by uncommenting the relevant entry.
 If you done this, URL is
 http://localhost:8080/servlet/YourServlet
 
 Or, make and entries for your servlet
 in [install_dir]/webapps/ROOT/WEB-INF/web.xml file.
 URL should be
 http://localhost:8080/YourMappedUrl
 
 
 
 or somewhere else?
 

 Many thanks
 Julian

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


 

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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Re: Invoking a servlet from the browser

2004-08-03 Thread shiv juluru
u need to configure the web.xml file

Julian [EMAIL PROTECTED] wrote:Hi,

I'm new to tomcat and jsp. Tomcat 5 seems to be working and I can 
sucessfully invoke jsp files. No problems there.

I want to invoke a servlet by typing the url into a browser and I can't 
seem to manage it. Firstly, where do I put my servlets? Do I put them in 
[install_dir]/webapps/ROOT/WEB-INF/classes or somewhere else?

Many thanks
Julian

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




-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: Unable to deploy a JSP from tomcat

2004-07-31 Thread shiv juluru
i think that is the problem with ur j2sdk,change ur java version and give ur JAVA_HOME 
patha to that java directory.
one more questionm is the tomcat's default index.jsp is working or not?
Sunitha Kumar [EMAIL PROTECTED] wrote:
Set to Java's j2sdk path:
/usr/local/thirdparty/java/j2sdk

Martin, David S wrote:

Sunitha,

What is your JAVA_HOME environment variable set to? 



David Martin

-Original Message-
From: Sunitha Kumar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 29, 2004 1:19 PM
To: Sunitha Kumar
Cc: [EMAIL PROTECTED]
Subject: Re: Unable to deploy a JSP from tomcat

Also, looking at documentation at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

It says, CLASSPATH is ignored. And, tools.jar should have been loaded?

 * System - This class loader is normally initialized from the
 contents of the CLASSPATH environment variable. All such classes
 are visible to both Tomcat internal classes, and to web
 applications. However, the standard Tomcat 4 startup scripts
 ($CATALINA_HOME/bin/catalina.sh or
 %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of
 the CLASSPATH environment variable itself, and instead build the
 System class loader from the following repositories:
 o $CATALINA_HOME/bin/bootstrap.jar - Contains the main()
 method that is used to initialize the Tomcat 4 server, and
 the class loader implementation classes it depends on.
 o $JAVA_HOME/lib/tools.jar - Contains the javac compiler
 used to convert JSP pages into servlet classes.



Sunitha Kumar wrote:

 

Folks:
I have defined CLASSPATH to have $JAVA_HOME/lib/tools.jar, in
 

catalina.sh
 

However, while deploying my .war file, it fails to find tools.jar.
Any pointers?
thanks,
-sunitha

Servlet threw load() exception
org.apache.jasper.JasperException: Unable to compile class for JSP

No Java compiler was found to compile the generated source for the
 

JSP.
 

This can usually be solved by copying manually 
$JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat
 


 

restart.
If using an alternate Java compiler, please check its installation and
 


 

access path.

 at 

 

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:127) 
 

 at 

 

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:351) 
 

 at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
 at
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
 

 at
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 

 at 

 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:553) 
 

 at 

 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:291) 
 

 at 

 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 

 at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown
 

Source)
 

 at 

 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) 
 

 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)



 


 




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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Re: Java Class is not compiling

2004-07-28 Thread shiv juluru
give servlet.jar path to ur classpath ,that jar file may be in tomcat_root/common/lib 
folder

Sayeed [EMAIL PROTECTED] wrote:Sir
I am new to Tomcat.
I am now making my first Servlet and trying to creat a class (sayeed).
It give me errors as under :

C:\Apache\Tomcat\webapps\ch03\myfirstwebappjavac sayeed.java
sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;

---
Also another thing what is the PACKAGE which have to write in first line of
my servlet(sayeed):

package com.wrox.projsp.ch03.myfirstwebapp;

Can anyone please help me in detail. I have however downloaded Javax
directory from sun.java.com- where this directory i have to put? i am using
j2sdk1.4.2.

Thanx in advance.

Saeed


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




-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: Java Class is not compiling

2004-07-28 Thread shiv juluru
ok sayeed,
just open ur command prompt and give
cmdset 
classpath=%classpath%;C:\Apache\Tomcat\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\dt.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;.
now compile ur java file (ex: javac sayeed)
if it works,it's may be the problem with classpath that u have given.

Sayeed [EMAIL PROTECTED] wrote:
dear sir and Shivjuluru

these are my Paths:

set JAVA_HOME=C:\j2sdk1.4.2_04
set CATALINA_HOME=C:\APACHE\TOMCAT
set CLASSPATH=C:\Apache\Tomcat\common\lib\servlet.jar

but still when I compile my servlet file (sayeed) it give the same erros:

C:\Apache\Tomcat\webapps\ch03\WEB-INF\calsses\com\wrox\projsp\ch03\myfirstwe
bapp javac sayeed.java

sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;


- Original Message -
From: shiv juluru 
To: Tomcat Users List 
Sent: Wednesday, July 28, 2004 12:12 PM
Subject: Re: Java Class is not compiling


 give servlet.jar path to ur classpath ,that jar file may be in
tomcat_root/common/lib folder

 Sayeed wrote:Sir
 I am new to Tomcat.
 I am now making my first Servlet and trying to creat a class (sayeed).
 It give me errors as under :

 ---
 Also another thing what is the PACKAGE which have to write in first line
of
 my servlet(sayeed):

 package com.wrox.projsp.ch03.myfirstwebapp;

 Can anyone please help me in detail. I have however downloaded Javax
 directory from sun.java.com- where this directory i have to put? i am
using
 j2sdk1.4.2.

 Thanx in advance.

 Saeed


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




 -
 Do you Yahoo!?
 Yahoo! Mail - 50x more storage than other providers!


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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Problem with proper shutdown of tomcat

2004-07-28 Thread shiv juluru
ya i am also agree with rruiz
if u getting problems like this ,use killall java in linux

Rodrigo Ruiz [EMAIL PROTECTED] wrote:
Maybe you have some non-daemon threads running. This would prevent the 
JVM from exiting. I would do the following:

- Once the java process is frozen, ask it a thread stack dump (I do 
not remember well, but I think in Linux you must send the process a QUIT 
signal)
- In the trace you should see all threads still alive. Check if any of 
them is yours. Such a thread could be the problem source.
- Sometimes converting the thread in a daemon is enough. Other times you 
need to ensure a clean stop, in which case you could implement it 
through a ServletContextListener.

HTH,
Rodrigo Ruiz

dejw wrote:

 Hi,
 I have tomcat 4.1.30 installed on linux red hat 9 with java version 
 1.4.1_03. Sometimes when I shutdown tomcat by using shutdown script it 
 remains java process in memory which I have to kill manually. Only 
 then I can start up tomcat again. What can be the reason of this? I'm 
 using GridSphere portal framework with gridportlets whithin the 
 tomcat, maybe some bad written portlets or servlets are able to freeze 
 java process of tomcat?

 Dawid Szejnfeld, PSNC

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





-- 
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.727 / Virus Database: 482 - Release Date: 27/07/2004


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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Re: Request for an Immediate Solution

2004-07-21 Thread shiv juluru

it's very simple,
verify the tomcat-users.xml file in conf directory.u can find the user names and 
passwords,
other wise copy ur jsp files in ROOT directory and create one web-inf folder in that 
ROOT directory,and copy ur web.xml in that ROOT/WEB-INF directry,create one more 
classes directory in that ROOT/WEB-INF/ folder,copy all ur servlets classes in that 
directory.
 
the better thing is deploying the jar file is best way.
 

Sridharan Rajagopalan [EMAIL PROTECTED] wrote:

Hi All,

My Name is Rajagopalan. Iam doing MCA final year.

I have to do a mini project now. For the same I have installed TomCat server in my 
house. But when I type the following in Internet Explorer after installing the Server:

http://localhost:8080/index.html or any jsp file

it asks me user name and Password. So Iam not able to work with the same. I have 
to complete the project by this month end. Iam yet to start the same. So any body can 
help me out on the problem Iam facing immediately.

I request you to give me an immediate solution for this as I have to start the project 
as early as possible.

Thanx

Rajagopalan



Yahoo! India Careers: Over 65,000 jobsonline.

-
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!

Re: Request for an Immediate Solution

2004-07-21 Thread shiv juluru
i think that is the problem with ur jdk1.3,better to install another jdk or jdk131_03,
i think this may solve ur problem
 
shiva

Sayeed [EMAIL PROTECTED] wrote:
dear Shiv


wish your good health.

I have a question: when i run Tomcat4.1.3, the following error message
comes, can you plz let me know where the things are wrong and how i can
rectify:


C:\Apache\Tomcat\bincatalina.bat run
Using CATALINA_BASE: D:\Apache\Tomcat
Using CATALINA_HOME: D:\Apache\Tomcat
Using CATALINA_TMPDIR: D:\Apache\Tomcat\temp
Using JAVA_HOME: D:\JDK1.3
[ERROR] Digester - -Begin event threw exception
on: Invalid index!sun.misc.InvalidJarIndexException: Invalid index!
at
sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594)
at sun.misc.URLClassPath.getResource(URLClassPath.java:134)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
sLoader.java:621)

and more like that


i am waiting your reply.

Thanks in advance.

Saeed
Programmer
- Original Message -
From: shiv juluru 
To: Tomcat Users List 
Sent: Wednesday, July 21, 2004 11:38 AM
Subject: Re: Request for an Immediate Solution



 it's very simple,
 verify the tomcat-users.xml file in conf directory.u can find the user
names and passwords,
 other wise copy ur jsp files in ROOT directory and create one web-inf
folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF
directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy
all ur servlets classes in that directory.

 the better thing is deploying the jar file is best way.


 Sridharan Rajagopalan wrote:

 Hi All,

 My Name is Rajagopalan. Iam doing MCA final year.

 I have to do a mini project now. For the same I have installed TomCat
server in my house. But when I type the following in Internet Explorer after
installing the Server:

 http://localhost:8080/index.html or any jsp file

 it asks me user name and Password. So Iam not able to work with the
same. I have to complete the project by this month end. Iam yet to start the
same. So any body can help me out on the problem Iam facing immediately.

 I request you to give me an immediate solution for this as I have to start
the project as early as possible.

 Thanx

 Rajagopalan



 Yahoo! India Careers: Over 65,000 jobsonline.

 -
 Do you Yahoo!?
 Vote for the stars of Yahoo!'s next ad campaign!


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



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

RE: Apache 1.3 not loading Mod_Jk.so

2004-07-17 Thread shiv juluru
hi,
i think the problem is tomcat is not creating mod_jk.conf in 'tomcathome/conf/auto'
if u start tomcat it creates a mod_jk.conf in the above directory,start tomcart and 
wait for a min and check the time of creation of mod_jk.conf,now start apache.

u should modify server.xml as 
server.xml:
---
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/local/apache/modules/mod_jk.so /
and 
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true 
forwardAll=false modJk=/usr/local/apache/modules/mod_jk.so /
in httpd.conf
   -
u must add
Include /usr/local/tomcat/conf/auto/mod_jk.conf

the better thing is follow this url
http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
 
i think this will help for u.
shiva
 
 
 

[EMAIL PROTECTED] wrote:
Anyone have any ideas on this ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 4:09 PM
To: [EMAIL PROTECTED]
Subject: Apache 1.3 not loading Mod_Jk.so

All, 

If anyone can help me I would be forever grateful, I have spent hours
on this problem. I am installing Apache 1.3 and Tomcat 4.0 on AIX. Apache
installs great and tomcat installs great. I am trying to build mod_jk.so
from jk-1.2.5. The mod_jk.so builds, but my htttpd.conf and apache fails
with the following error:



Syntax error on line 202 of /usr/local/apache/conf/httpd.conf:

Can't locate API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so: Function not implemented (jk_module)

/usr/local/apache/bin/apachectl restart: httpd could not be started





This is my build method (I have pasted output to be helpful):



1) gunzip jakarta-tomcat-connectors-jk-1.2.5-src.tar.gz

2) tar -xvf jakarta-tomcat-connectors-jk-1.2.5-src.tar

3) cd /usr/local/tomcat/jakarta-tomcat-connectors-jk-1.2.5-src/jk/native

4) ./buildconf.sh 

libtoolize --force --automake --copy

aclocal

automake -a --foreign -i --copy

autoconf

5) ./configure --with-apxs=/usr/local/apache/bin/apxs

checking for libtool... /usr/local/bin/libtool

need to check for Perl first, apxs depends on it...

checking for perl... /usr/bin/perl

building connector for apache-1.3

checking for target platform... unix

no apache given

configure: creating ./config.status

config.status: creating Makefile

config.status: creating apache-1.3/Makefile

config.status: creating apache-1.3/Makefile.apxs

config.status: creating apache-2.0/Makefile

config.status: creating apache-2.0/Makefile.apxs

config.status: creating common/Makefile

config.status: creating common/list.mk

config.status: creating jni/Makefile

config.status: executing depfiles commands

6) make

cp .libs/mod_jk.lai /usr/local/tomcat/jakarta-tomcat-connectors-jk-
1.2.5-src/jk/native/apache-1.3/mod_jk.la

libtool: install: warning: remember to run `libtool --finish
/usr/local/apache/libexec'

make[1]: Leaving directory `/usr/local/tomcat/jakarta-tomcat-
connectors-jk-1.2.5-src/jk/native/apache-1.3'

make[1]: Entering directory `/usr/local/tomcat/jakarta-tomcat-
connectors-jk-1.2.5-src/jk/native'

make[1]: Nothing to be done for `all-am'.

make[1]: Leaving directory `/usr/local/tomcat/jakarta-tomcat-
connectors-jk-1.2.5-src/jk/native'

target=all; \

list='common apache-1.3'; \

for i in $list; do \

echo Making $target in $i; \

if test $i != .; then \

(cd $i  make $target) || exit 1; \

fi; \

done;

Making all in common

make[1]: Entering directory `/usr/local/tomcat/jakarta-tomcat-
connectors-jk-1.2.5-src/jk/native/common'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/usr/local/tomcat/jakarta-tomcat-
connectors-jk-1.2.5-src/jk/native/common'

Making all in apache-1.3

make[1]: Entering directory `/usr/local/tomcat/jakarta-tomcat-
connectors-jk-1.2.5-src/jk/native/apache-1.3'

/usr/local/bin/libtool --mode=install cp mod_jk.la `pwd`/mod_jk.so

cp .libs/mod_jk.a /usr/local/tomcat/jakarta-tomcat-connectors-jk-
1.2.5-src/jk/native/apache-1.3/mod_jk.a

cp .libs/mod_jk.lai /usr/local/tomcat/jakarta-tomcat-connectors-jk-
1.2.5-src/jk/native/apache-1.3/mod_jk.la

libtool: install: warning: remember to run `libtool --finish
/usr/local/apache/libexec'

make[1]: Leaving directory `/usr/local/tomcat/jakarta-tomcat-
connectors-jk-1.2.5-src/jk/native/apache-1.3' 

7) cd apache-1.3

8) ls

.cvsignore Makefile.apxs Makefile.libdir mod_jk.a
mod_jk.exp

.libs Makefile.apxs.in Makefile.tmpl mod_jk.c
mod_jk.la

Makefile Makefile.in libjk.module mod_jk.dsp
mod_jk.lo

9) No mod_jk.so is produced so I manually build the file

10) /usr/local/apache/bin/apxs -I ../common -I /usr/java14/include -i -a -c
mod_jk.c ../common/*.c -o mod_jk.so

gcc -DAIX=520 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/local/apache/include
-I../common -I/usr/java14/include -c mod_jk.c

gcc -DAIX=520 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE 

Re: problems with mod_jk2

2004-07-15 Thread shiv juluru
hi,
start the tomcat server and find where mod_jk2.so is creating.
copy that path in server.xml
ex:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/etc/httpd/modules/mod_jk2.so /
and in httpd.conf u should add this line
Include /usr/local/tomcat/conf/auto/mod_jk.conf

 
and start apache after 1 min.
bcz  tomcat creates mod_jk.so after some time.,better thing is see the time of 
creation of mod_jk2.so,using ls -l option.
.
i am giving one url to u.
http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
 
i think it's help for u.
 
 
 
 
/usr/local/apache2/modules/jkjni.so
/etc/httpd/modules/mod_jk2.so


sarojini chowdary [EMAIL PROTECTED] wrote:
Please Help... 
Hi, 
I have problem with mod_jk2.so 
I have installed redhat 9 and I used the default 
version of apache that came with redhat 9 i.e. 
apache/2.0.40 
and I installed and configured tomcat 5.0.25. 
Till now both work fine when I start them alone. 
I have installed mod_jk 2 connector latest version 
i.e. jakarta-tomcat-connectors-jk2-2.0.4-src. 
I restarted tomcat. 
And when I look at CATALINA_OUT I see this line. 
INFO: APR not loaded, disabling jni components: 
java.io.IOException: java.lang.UnsatisfiedLinkError:

/usr/local/apache2/modules/jkjni.so: 
/usr/local/apache2/modules/jkjni.so: undefined 
symbol: 
apr_md5_final 
When I try to use apu-config to know the list of
libraries to attach it says the command is not found.
After this point, when I try to restart apache it 
gives this error. 
Starting httpd: Syntax error on line 157 of 
/etc/httpd/conf/httpd.conf: 
Cannot load /etc/httpd/modules/mod_jk2.so into 
server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: 
apr_socket_send 

[FAILED] 
I was trying to fix it right from past 2 days and I 
could not do it. 
Please tel me what I should do. 
Thanks in advance. 
Sarojini. 
IndusRAD Inc. 
Peoria, IL, 61606 
USA 
309-691-0591 



Yahoo! India Careers: Over 50,000 jobs online
Go to: http://yahoo.naukri.com/

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



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: Apache2 and Tomcat 5.0.25 Configuration Using Mod_jk2

2004-07-15 Thread shiv juluru
test ur luck by use this site..
http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html


Tonte Pouncil [EMAIL PROTECTED] wrote:
Hello:

I am using window 2000, Apache2, and Tomcat5.0.25. I have downloaded the mod_jk2.so 
from the tomcat-connectors site. http://jakarta.apache.org/site/binindex.cgi

How do I get Apache2 and Tomcat5 to talk to each other using the mod_jk2? If any one 
know of another solution, please do tell. I have already tried just about every 
suggestion on different forms, but still no luck.

Thanks!

Tonté

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

html file problem in apache-tomcat/serious problem

2004-06-24 Thread shiv juluru

hi friends,
i am using apache 2.x ,tomcat 4x and mod_jk for redhat 9.
my configuration in server.xml is 

1)Host name=localhost debug=0 appBase=/home/shiva unpackWARs=true 
autoDeploy=true
2)Context path=/examples docBase=examples debug=0   
reloadable=true crossContext=true

i created one folder 'examples' in /home/shiva

i put all of my jsp,html files in /home/shiva/examples

using tomcat, jsp and html files are working fine,i am calling in browser like 
http://myhost:8080/examples/jspname.jsp;

and using apache jsp files are working fine,i am calling in browser like 
http://myhost/examples/jspname.jsp;

but my problem is html files are not working using apache.

note:all jsps and htmls are have same permissions.

i am getting the following error in the browser

**begin**
Forbidden
You don't have permission to access /examples/forward1.html on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an 
ErrorDocument to handle the request.

-

 
Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.7a mod_jk/1.2.5 Server at 
192.168.68.10 Port 80

**end*

 

i test it by 777 also.

 

plz help me.

 

thanks in advance.

shiva


-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: bean problem

2004-06-22 Thread shiv juluru
i am also gr\etting the same problem like u,
using tomcat jsps and htmls are working,but using apache onlu jsps are working but not 
htmls.if u find the solution plz send me that solution.
 
thanks in advance,
shiva

deepak shripat mane [EMAIL PROTECTED] wrote:

Hii..

Can u tell me Wat is scope of beans in ur JSP Page. Can u send me ur source code. If u 
not specified scope of beans then u have to specify scope of beans


Deepak


On Mon, 21 Jun 2004 Casas,Claudia wrote :
Hello everyone,
I have managed to install tomcat4.1.30, apache2.0.49 and the jk1.2.5
connector.
I included inside my server.xml file a new context path so that I can
run my jsp application through my user directories.
Here is what I included:
reloadable=true crossContent=true

So now, I am able to run under /home/myuser/wwwdocs/test.jsp as follows:
http://my.domain.com:8080/myuser/test.jsp or
http://my.domain.com/myuser/test/jsp
The both work ok.

I also have a jsp called list.jsp that uses a bean to connect to an
oracle database. When I run
http://my.domain.com:8080/myuser/admin/list.jsp everything works perfect
and I get an html table with list of my records from my database. But if
I run http://my.domain.com/myuser/admin/list.jsp, then the jsp works,
but I do get my html table but I do not get any records back at all.

The bean is inside
/home/myuser/wwwdocs/WEB-INF/classes/tools/dbbean.java, while the
list.jsp is only inside /home/myuser/wwwdocs/admin

 Does anyone know what is going on in here?


Technology does not drive change -- it enables change.  -- 












[input][input][input] 





 [input]   






















Copyright © 2004 Rediff.com India Limited. All Rights Reserved.










-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: I do not want port 8080. Anyone know how to?

2004-06-22 Thread shiv juluru
follow this url 
http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Filip Hanik - Dev [EMAIL PROTECTED] wrote:
ok, try mod_proxy, it might be easier.
but your problem is that you prolly didn't configure mod_jk properly, read the docs 
(should be tons of them out there) and try again

Filip

- Original Message -
From: Casas, Claudia 
To: Tomcat Users List 
Sent: Monday, June 21, 2004 4:47 PM
Subject: RE: I do not want port 8080. Anyone know how to?


 Thanks for your prompt answer.
 Unfortunately this solution did not work for me. When I remove the http
 connector, then I can see my web pages through apache. But I cannot see
 any jsp's at all.

 Also, If I change port 8080 to port 80 in my server.xml file; then I
 have the same problem. I can see my web pages, but not my jsp's.

 -Original Message-
 From: Dale, Matt [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 21, 2004 3:29 PM
 To: Tomcat Users List
 Subject: RE: I do not want port 8080. Anyone know how to?


 Hi,

 You merely need to comment out the HTTP connector in your
 conf/server.xml

 Ta
 Matt

 -Original Message-
 From: Casas, Claudia [mailto:[EMAIL PROTECTED]
 Sent: 21 June 2004 22:19
 To: Tomcat Users List
 Subject: I do not want port 8080. Anyone know how to?



 Hello everyone,
 I have my jsps running thorugh my user directories. For example,
 http://mydomain.com:8080/myuser/myfile.jsp
 I would like see if it is possible to take out the port 8080, so that it
 would seem like apache is processing the page.
 http://my.domain.com/myuser/myfile.jsp

 Is this possible? Does anybody know how? My jk connector is working
 because http://localhost:8080/examples and http://localhost/examples
 work both fine. I thought that some of my jsp files were already working
 like this, but I just realized only the html was being processed when no
 port 8080 was included.

 Application Development Coordinator
Digital Media Center, Ext. 5940 --
 Technology does not drive change -- it enables change. 


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


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



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: Multiple Tomcat Instances with Linux

2004-06-22 Thread shiv juluru
start the server,after that change the port#  in conf file and start the server 
again,i think this may helpful for u

Dan Barron [EMAIL PROTECTED] wrote:Jon,

I have used the CATALINA_HOME/common/lib to share jar files among different 
instances. Not sure if that answers your question though.

Dan

At 10:54 AM 6/21/2004, you wrote:
Dan,

Thanks for the post, good ideas I'm going to try them.
 One thing I'm still not clear on. My application is
configured to deploy shared modules (jar files) under
CATALINA_HOME/shared/lib.

If I create multiple instances, how do I configure the
apps to share the correct version of
CATALINA_HOME/shared/lib?

Do you create a separate document root that contains a
shared/lib for each entry in the server.xml
configuration?

Jon


--- Dan Barron wrote:
  Jon,
 
  I run multiple tomcat services on a Linux box with
  Apache for various
  development and distributions. The way I went about
  it is to setup
  multiple configurations within the
  server.xml file. Each service
  has it own port for connectivity and its own worker
  for mod_jk. I create a
  virtual host entry in mod_jk.conf file which mounts
  the assigned worker
  which in turn points to the specific tomcat service.
  Here's the three
  files I touch to make it work and an example entry.
  My environment is
  Tomcat 4.1.29, mod_jk, and Apache 1.3.27.
 
  Hope this helps.
 
  Dan
 
  *FILE:mod_jk.conf
 
#~~~
  # domain.com Virtual Host Definition
 
#~~~
 
  
  ServerName www.domain.com
  DocumentRoot /usr/www/domain.com
  ErrorLog logs/domain.com/error_log
  CustomLog logs/domain.com/access_log common
 
  ScriptAlias /cgi-bin/
  /usr/www/domain.com/cgi-bin/
 
  
  AllowOverride None
  Options None
  Order allow,deny
  Allow from all
  
 
  JkMount /servlet/* domain_worker
  JkMount /alpha/*.jsp domain_worker
  JkMount /*.jsp domain_worker
 
  
 
  **FILE: workers.properties
 
  worker.list=ajp13, domain_worker
 
  worker.ajp13.port=8009
  worker.ajp13.host=localhost
  worker.ajp13.type=ajp13
 
  worker.ajp13.lbfactor=20
  worker.ajp13.cachesize=20
 
  worker.domain_worker.port=8010
  worker.domain_worker.host=localhost
  worker.domain_worker.type=ajp13
 
  worker.domain_worker.lbfactor=20
  worker.domain_worker.cachesize=20
 
 
  *FILE:server.xml
 
  
  ...
 
  
 
port 8081 --
   
className=org.apache.catalina.connector.http.HttpConnector
  port=8081 minProcessors=5
  maxProcessors=75
  enableLookups=true
  redirectPort=8443
  acceptCount=10 debug=0
  connectionTimeout=6/
 
--
className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8010 minProcessors=5
  maxProcessors=75
  acceptCount=10 debug=0/
 
container hierarchy --
defaultHost=www.domain.com debug=0
 
levels --
className=org.apache.catalina.logger.FileLogger
  prefix=catalina_domain_log.
  suffix=.txt
  timestamp=true/
 
will be shared globally --
className=org.apache.catalina.realm.MemoryRealm /
 
  
appBase=webapps/domain.com
  unpackWARs=true autoDeploy=true
 
   
className=org.apache.catalina.valves.AccessLogValve
  directory=logs
  prefix=domain_access_log. suffix=.txt
  pattern=common/
 
className=org.apache.catalina.logger.FileLogger
  directory=logs
  prefix=domain_log. suffix=.txt
  timestamp=true/
 
  
  
 
  
 
  
 
 
  
 
  
 
 
  At 05:26 PM 6/18/2004, Jon Feauto wrote:
  I see this question posted quite often, but rarely
  answers abound. Is it because this is too complex
  a
  topic to explain in a user group?
  
  I would think it is fairly common, anyone have
  ideas?
  
  Jon
  
  
  --- Jon Feauto wrote:
Hello,
   
I'm certain I am behind the curve on this one,
  but
I've been looking around for several days now
  and
haven't found the answers I need.
   
I'm looking to setup multiple environments for
Tomcat
4x on a single linux server. One for each
  developer
and several others for different versions of
  test.
   
From the mail list archives I've come to
  understand
that CATALINA_BASE can be used to configure
  multiple
instances. However, most examples I've seen use
this
in coordination with multiple server.xml files.
   
I'm hoping there is a trick to this that I'm
missing.
I don't mind the extra configuration as long as
  that
is the recommended approach.
   
For an installation supporting a linux service,
  does
the /etc/init.d/tomcat4 script need to be
  modified
to
set the CATALINA_BASE for each instance started?
   
Do I need to use different port numbers to
  access
those instances?
   
Is the CATALINA_HOME/shared/lib actually
  shared
across instances or can it be unique to an
  instance
according to CATALINA_BASE?
   
 
=== message truncated ===




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than 

Re: mod_jk install problem

2004-06-20 Thread shiv juluru

as per my knowledge follow the INSTALL file in ur apache folder.

or

for more details follow this url 
http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

i hope it may helpful for u.


-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!