You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sam Joseph <ga...@yha.att.ne.jp> on 2000/11/16 09:22:01 UTC

Tomcat with Java 1.3 under NT

Hi there,

I just upgraded to Java 1.3 but now my tomcat won't run, complaining
that it wants to see jre 1.2 instead of jre 1.3 (which it finds in the
registry).  I tried to re-install tomcat, both the latest stable and
milestone builds, but to no avail.  I giess I am about to start
uninstalling java 1.3, but I know from a friend that tomcat runs with
java 1.3 under linux, so perhaps there is a way around this.

Any suggestions?

CHEERS> SAM





ApacheModuleJServ.dll

Posted by Sebastian Schulz <se...@sebastian-schulz.com>.
hi,

i uses Apache + mosssl under Win32.

Therefor i need a -DEAPI-compiled version
of ApacheModuleJServ.dll.

Unfortunately i have no MS Visual C++ Compiler
available, so i'am not able to do this by myself.

many thanks in advance!

basti



Re: Testing woes - please help!!

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Mike La Budde wrote:

> I'm trying to slice up the GTest.java ant task that comes with the tomcat
> distribution. Since we are using struts and placing some things in the
> session (tho' we try to minimize that) any of my actions/pages I request
> that rely on stuff being in the session error out.
>
> What I was hoping to do was create a new ant task(def), let's call this
> testcase, and the gtest task becomes a nested subtask. This way I could
> open the socket/connection in the testcase and just reuse it in the gtest
> subtask. Good thought, but it doesn't work. The first gtest task works, but
> all subsequent ones fail (the response is always null). Naturally, socket
> programming is not something I've done before and I was hoping there would
> be an easier way.
>

You are probably running into the fact that HTTP/1.0 is a request-response
protocol.  If you want to reuse an existing socket, you need to set the
appropriate HTTP headers for persistent connections, and the server needs to
support them.

>
> So, where to from here?
>
> 1) Can somebody offer pointers on socket programming?
>
> 2) Is there a better way? (What are others doing to test their webapps?)
>

You might want to look at using a URLConnection instead.  In particular, since
you will be talking to an "http:" type URL, you can cast the URLConnection
object you get back to HttpURLConnection so that you can do things like set the
request type to POST (for example).  There's some simple examples of using
URLConnection in the Networking Trail of the Java Language Tutorial
<http://java.sun.com/docs/books/tutorial>, or you can do searches for
URLConnection in the archives (or various search engines) to find out more.

>
> 3) Is there documentation on using the JUnit ant task? And documentation on
> JUnit itself?
>
> Thanks in advance,
>
> Mike

Craig McClanahan



Testing woes - please help!!

Posted by Mike La Budde <mi...@irista.com>.
I'm trying to slice up the GTest.java ant task that comes with the tomcat 
distribution. Since we are using struts and placing some things in the 
session (tho' we try to minimize that) any of my actions/pages I request 
that rely on stuff being in the session error out.

What I was hoping to do was create a new ant task(def), let's call this 
testcase, and the gtest task becomes a nested subtask. This way I could 
open the socket/connection in the testcase and just reuse it in the gtest 
subtask. Good thought, but it doesn't work. The first gtest task works, but 
all subsequent ones fail (the response is always null). Naturally, socket 
programming is not something I've done before and I was hoping there would 
be an easier way.

So, where to from here?

1) Can somebody offer pointers on socket programming?

2) Is there a better way? (What are others doing to test their webapps?)

3) Is there documentation on using the JUnit ant task? And documentation on 
JUnit itself?

Thanks in advance,

Mike


Re: Tomcat with Java 1.3 under NT

Posted by Sam Joseph <ga...@yha.att.ne.jp>.

Jens Rehp�hler wrote:

> Hello Sam,
>
> > > [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
> > > "CurrentVersion"="1.3"
> >
> > You changed the registry key back to 1.2?  Changed something else?
>
> No, I changed it not back, I changed it to "1.3". Perhaps you should check the
> "CurrentVersion" Key in "Java Developement Kit" too.

weird.  I got an error which said that the registry key was 1.3 and that it should
be 1.2
I unistalled the JRE and now tomcat works fine

> Did you set the JAVA_HOME and PATH Variables correctly?

with JRE uninstalled there is no problem.   However checking JAVA_HOME I can see I
was trying to run tomcat with the JAVA_HOME and PATH still set to jdk1.2.2, duh.

Thanks for the help, I think this should work now.

CHEERS> SAM


Re: Tomcat with Java 1.3 under NT

Posted by Jens Rehpöhler <je...@rehpoehler.de>.
Hello Sam,

> > [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
> > "CurrentVersion"="1.3"
>
> You changed the registry key back to 1.2?  Changed something else?

No, I changed it not back, I changed it to "1.3". Perhaps you should check the
"CurrentVersion" Key in "Java Developement Kit" too.

Did you set the JAVA_HOME and PATH Variables correctly?

Regards,

Jens

Re: Tomcat with Java 1.3 under NT

Posted by Sam Joseph <ga...@yha.att.ne.jp>.

Jens Rehp�hler wrote:

> Hi Sam,
>
> I had the same problem and could fix it by making some changes in the
> registry:
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
> "CurrentVersion"="1.3"

You changed the registry key back to 1.2?  Changed something else?

I just uninstalled the jre and now tomcat runs again, but I may need jre 1.3
for other applications, I'm not quite sure at the moment.

Thanks for taking the time to mail me, and apologies for the further
questions.

CHEERS> SAM


Re: Tomcat with Java 1.3 under NT

Posted by Jens Rehpöhler <je...@rehpoehler.de>.
Hi Sam,

I had the same problem and could fix it by making some changes in the
registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.3"

> I just upgraded to Java 1.3 but now my tomcat won't run, complaining
> that it wants to see jre 1.2 instead of jre 1.3 (which it finds in the
> registry).  I tried to re-install tomcat, both the latest stable and
> milestone builds, but to no avail.  I giess I am about to start
> uninstalling java 1.3, but I know from a friend that tomcat runs with
> java 1.3 under linux, so perhaps there is a way around this.
>
> Any suggestions?
>
> CHEERS> SAM

--
Jens Rehpöhler