tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bradberry, Rick" <rb111...@exchange.DAYTONOH.NCR.com>
Subject RE: Unable to find a javac compiler
Date Fri, 01 Aug 2003 11:37:30 GMT


I have the env variables set and have tried it as a services and as a
inprocess with the same results with mod_jk2. I found a HOWTO on mod_jk and
it seems to work ok using Tomcat as a service. The only problem now is that
the auto gen conf files have a problem with blanks in the paths of the
webapps. I can fix this manually until I can get all the paths changed.

Question:
What am I giving up using jk instead of jk2

Rick

-----Original Message-----
From: shyam [mailto:shyam@adamshand.net]
Sent: Thursday, July 31, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Unable to find a javac compiler


I also had the same problem. If you have installed tomcat as a service this
problem comes. You need to have the JAVA_HOME variable set to your
j2sdk1.4.1 directory in the environmental variables . Hope this helps you.
----- Original Message ----- 
From: "Bradberry, Rick" <rb111672@exchange.DAYTONOH.NCR.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, July 31, 2003 3:42 PM
Subject: Unable to find a javac compiler


> Hi,
>
> Got a problem with Apache 2.0.47, Tomcat 4.1.18 and  j2sdk 1.4.1.01. I've
> read through the archive and
> found some close to my problem, but not quit.
>
> My problem:
>
> I've installed Apache and Tomcat as standalone servers and they both work
> great. Now I'm trying to
> get them to talk to each other.
>
> I read through a HOWTO on setting it up on win2K as a inprocess server for
> jk2 and it almost works.
> Apache passes the request to Tomcat and Tomcat will process them unless it
> comes across
> a jsp page that has not been complied. Then I get
> "Unable to find a javac compiler" in the Tomcat logs. However, If I start
> Tomcat as a stand alone and
> go to the same page it compiles it and then I can go back to Apache and it
> will work.
>
> I've tried everything I can find, but get the same results.
>
> any help would be greatly appreciated.
>
> Some setup
>
> JAVA_HOME=C:\Program Files\eclipse\j2sdk1.4.1_01
> CATALINA_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
> TOMCAT_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
>
> JK2.properties from HOWTO
>
> ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
> ## WHEN YOU EDIT THE FILE.
> ## COMMENTS WILL BE _LOST_
>
> ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
>
> # Override the default port for the socketChannel
> # channelSocket.port=8019
> # Default:
> # channelUnix.file=${jkHome}/work/jk2.socket
> # Just to check if the the config  is working
> shm.file=C:\Program Files\Apache Group\Apache2/logs/jk2.shm
>
> # In order to enable jni use any channelJni directive
> channelJni.disabled = 0
> # And one of the following directives:
>
> # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
>
> # If set to inprocess the mod_jk2 will Register natives itself
> # This will enable the starting of the Tomcat from mod_jk2
> apr.jniModeSo=inprocess
>
>
> worker.properties from the HOWTO.
>
> [logger]
> level=DEBUG
>
> [config:]
> #file=${serverRoot}/conf/workers2.properties
> file=C:/Program Files/Apache Group/Apache2/conf/workers2.properties
> debug=0
> debugEnv=0
>
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=0
>
> # Alternate file logger
> #[logger.file:0]
> #level=DEBUG
> #file=${serverRoot}/logs/jk2.log
>
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with multiprocess
> servers
> file=C:/Program Files/Apache Group/Apache2/logs/jk2.shm
> size=1000000
> debug=0
> disabled=0
>
> [workerEnv:]
> info=Global server options
> timing=1
> debug=0
> # Default Native Logger (apache2 or win32 )
> # can be overriden to a file logger, useful
> # when tracing win32 related issues
> #logger=logger.file:0
>
> [lb:lb]
> info=Default load balancer.
> debug=0
>
> #[lb:lb_1]
> #info=A second load balancer.
> #debug=0
>
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009
>
> #[channel.socket:localhost:8019]
> #info=A second tomcat instance.
> #debug=0
> #tomcatId=localhost:8019
> #lb_factor=1
> #group=lb
> #group=lb_1
> #disabled=0
>
> #[channel.un:/opt/33/work/jk2.socket]
> #info=A second channel connecting to localhost:8019 via unix socket
> #tomcatId=localhost:8019
> #lb_factor=1
> #debug=0
>
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
>
> [status:]
> info=Status worker, displays runtime informations
>
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
> OPT=-Djava.class.path=C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/bin/tomcat-jni.jar;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/server/lib/commons-logging.jar;C:/Program
> Files/eclipse/j2sdk1.4.1_01/bin;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/jre/lib/rt.jar;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/lib/tools.jar
> OPT=-Dtomcat.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18
> OPT=-Dcatalina.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18
> OPT=-Djava.home=C:/Program Files/eclipse/j2sdk1.4.1_01
> OPT=-Xmx128M
> #OPT=-Djava.compiler=NONE
> OPT=-Djava.compiler=C:/Program Files/eclipse/j2sdk1.4.1_01/bin/javac
> disabled=0
>
> [worker.jni:onStartup]
> info=Command to be executed by the VM on startup. This one will start
> tomcat.
> class=org/apache/jk/apr/TomcatStarter
> ARG=start
> disabled=0
> stdout=C:/Program Files/Apache Group/Apache2/logs/stdout.log
> stderr=C:/Program Files/Apache Group/Apache2/logs/stderr.log
>
> [worker.jni:onShutdown]
> info=Command to be executed by the VM on shutdown. This one will stop
> tomcat.
> class=org/apache/jk/apr/TomcatStarter
> ARG=stop
> disabled=0
>
> [uri:/jkstatus/*]
> info=Display status information and checks the config file for changes.
> group=status:
>
> #[uri:127.0.0.1:8003]
> #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to
test
> it
> #alias=myVirtualHost:8003
>
> #[uri:127.0.0.1:8003/ex]
> #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
> localhost:8019 )
> #context=/ex
> #group=lb_1
>
> [uri:/examples]
> info=Example webapp in the default context.
> context=/examples
> debug=0
>
> #[uri:/examples1/*]
> #info=A second webapp, this time going to the second tomcat only.
> #group=lb_1
> #debug=0
>
> [uri:/examples/servlets/*]
> info=Prefix mapping
>
> [uri:/examples/servlets/*]
> info=Prefix mapping
>
> [uri:/examples/*.jsp]
> info=Extension mapping
>
> [uri:/examples/*]
> info=Map the whole webapp
>
> [uri:/examples/servlets/HelloW]
> info=Exampel with debug enabled.
> debug=10
>
> Rick
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
View raw message