You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Egger Oliver <ol...@ecofin.ch> on 2002/03/08 11:19:32 UTC

two resin instances

hello,

testing with cactus-ant.jar v1.2

I have to use two instances of resin for developing a webservice
application. I can run each sepearte instance from within ant seperatly,
but when I use them together an expection is thrown. Did anybody have
the same problem and yes, did he find a solution for that problem?

Thanks for any help
Oliver

(tomcat -> resin no problem)
(resin -> tomcat no porblem)
(nothing -> resin no problem)
(resin -> nothing not porblem)
(resin -> resin fails ...)

start_resin_20:
[java] Resin 2.0.4 (built Thu Nov 15 17:56:24 PST 2001)
[java] Copyright(c) 1998-2001 Caucho Technology. All rights reserved.
[java]
[java] Starting Resin on Fri, 08 Mar 2002 11:06:24 +0100 (CET)
[java] http listening to *:8081
[java] srun listening to 127.0.0.1:6802
[java] [2002-03-08 11:06:25.215] initializing application /axis
[java] [2002-03-08 11:06:25.245] initializing application /

start_resin_20:
[java] Resin 2.0.4 (built Thu Nov 15 17:56:24 PST 2001)
[java] Copyright(c) 1998-2001 Caucho Technology. All rights reserved.
[java]
[java] Starting Resin on Fri, 08 Mar 2002 11:07:43 +0100 (CET)
[java] http listening to *:80
[java] srun listening to 127.0.0.1:6812
[java] [2002-03-08 11:07:51.078] initializing application /quoteclient
[java] [2002-03-08 11:08:18.528] initializing application /
[java] java.net.BindException: Address in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:170)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:82)
[java] at
org.apache.cactus.ant.AbstractServerRun.setUpListenerSocket(AbstractServerRu
n.java:250)
[java] at
org.apache.cactus.ant.AbstractServerRun.run(AbstractServerRun.java:205)
[java] at java.lang.Thread.run(Thread.java:484)
[java] java.lang.RuntimeException: Error setting up the server listener
socket
[java] at
org.apache.cactus.ant.AbstractServerRun.setUpListenerSocket(AbstractServerRu
n.java:253)
[java] at
org.apache.cactus.ant.AbstractServerRun.run(AbstractServerRun.java:205)
[java] at java.lang.Thread.run(Thread.java:484)

Neu: NZZ finfox
Die Finanz- und Vermögensplanung für Private
http://finfox.nzz.ch
ECOFIN Research and Consulting AG
Neumuensterallee 6
CH-8032 Zuerich
+41 1 389 65 29
oliver.egger@ecofin.ch
http://www.ecofin.ch
 
-----Original Message-----
From: Luis M. Rosso [mailto:lrosso@up2u.com.ar]
Sent: Donnerstag, 7. März 2002 22:13
To: cactus-user@jakarta.apache.org
Subject: TestSampleServlet - java.io.FileNotFoundException


Hi, as I am learning Cactus, I am trying the sample included with the
distribution, in particular, TestSampleServlet.

I have found some messages about this matter in the mailing list's archive,
but I wasn't able to jump to any conclusion. And the "indentation" due to
responses, in conjunction with fragmented responses mixed with the
questions, made them VERY DIFFICULT to understand.

The result I am getting is:
Runs: 12/12    Errors: 1    Failures: 0

And the following exception:

java.io.FileNotFoundException:
http://localhost:8080/cactus-sample/ServletRedirector/
 at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:562)
 at
org.apache.cactus.client.AutoReadHttpURLConnection.getInputStream(AutoReadHt
tpURLConnection.java:127)
 at
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:1
36)
 at
org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422)
 at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130)
 at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:131)
 at junit.framework.TestSuite.runTest(TestSuite.java:173)
 at junit.framework.TestSuite.run(TestSuite.java:168)
 at junit.swingui.TestRunner$17.run(TestRunner.java:644)

I have attached the client log, cactus.properties and web.xml files.

The webapp name is cactus-sample, and its file structure is:
/cactus-sample
    jspRedirector.jsp
    test.jsp
    /WEB-INF
        web.xml
        /lib
            cactus.jar
            junit.jar
            log4j-core.jar
            log_server.properties
        /classes (includes the classes compiled from the source code
provided with the distribution, package org.apache.cactus.sample)

I am using Tomcat 3.2.3, the version which comes integrated with JBoss.

Could someone tell me please what I am doing wrong, and what I should do, in
order to solve this error?

Thanks in advance

Luis

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>