After tinkering with trying to get the ZOAP sources running on my EmbeddedTomcat JBoss 
server over the past few days, I've finally met some moderate success.  Here are my 
notes:

1- First of all, the ZOAP stuff was clearly developed on some microsoft platform, as 
is evidenced by the various ".bat" files that are shipped.  Perhaps I'll look into 
converting the relevant .bat files to sh scripts sometime soon, but right now it's not 
a high priority.

2- The only "documentation" that is really available is in a file called 
"examples.html".  As written, the documentation didn't allow me to succeed in 
integrating ZOAP with JBoss.  Here are the discrepancies:

a. It said to add the lines below to jboss.conf (although I believe it MEANT 
jboss.jcml).
        <mbean code="org.jboss.zoap.HttpServer" name="zoap:server=HTTP">
        </mbean>
Besides the ".conf" / ".jcml" typo, the lines just didn't work for me.  The JBoss 
server (on startup) automatically removed these lines from my jboss.jcml file after I 
added them.  :-(  However, adding these lines to jboss.conf *did* seem to work:

        <MLET CODE="org.jboss.zoap.HttpServer" ARCHIVE="zoap.jar" 
CODEBASE="../../lib/ext/">
        </MLET>

3- After getting ZOAP up-and-running to the point that test-bean.jar would deploy 
properly, running the test.Test class (which I believe is a JUnit test suite) ran okay 
except for 1 error:

.E
[EMAIL PROTECTED](): encountered 
java.lang.NullPointerException which probably means that this service has been stopped.
java.lang.NullPointerException
        at de.infor.ce.http.Server.run(Server.java:185)
        at de.infor.ce.thread.PooledThread.run(PooledThread.java:109)
[EMAIL PROTECTED](): encountered 
de.infor.ce.http.StartLineException: 
[EMAIL PROTECTED](java.io.BufferedReader@52906a) could 
not read start line 
de.infor.ce.http.StartLineException: 
[EMAIL PROTECTED](java.io.BufferedReader@52906a) could 
not read start line 
        at de.infor.ce.http.Request.readStartLine(Request.java:157)
        at de.infor.ce.http.Command.read(Command.java:231)
        at de.infor.ce.http.Server.run(Server.java:261)
        at de.infor.ce.thread.PooledThread.run(PooledThread.java:109)
[EMAIL PROTECTED](): encountered java.lang.NullPointerException 
which probably means that this service has been stopped.
java.lang.NullPointerException
        at de.infor.ce.http.Server.run(Server.java:185)
        at de.infor.ce.thread.PooledThread.run(PooledThread.java:109)
[EMAIL PROTECTED](): encountered java.lang.NullPointerException 
which probably means that this service has been stopped.
java.lang.NullPointerException
        at de.infor.ce.http.Server.run(Server.java:185)
        at de.infor.ce.thread.PooledThread.run(PooledThread.java:109)
[EMAIL PROTECTED](): encountered java.lang.NullPointerException 
which probably means that this service has been stopped.
java.lang.NullPointerException
        at de.infor.ce.http.Server.run(Server.java:185)
        at de.infor.ce.thread.PooledThread.run(PooledThread.java:109)
[EMAIL PROTECTED](): encountered java.lang.NullPointerException 
which probably means that this service has been stopped.
java.lang.NullPointerException
        at de.infor.ce.http.Server.run(Server.java:185)
        at de.infor.ce.thread.PooledThread.run(PooledThread.java:109)
.....
Time: 3.995

FAILURES!!!
Test Results:
Run: 24 Failures: 0 Errors: 1
There was 1 error:
1) de.infor.ce.http.test.Http.testHttp
java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
        at java.net.ServerSocket.<init>(ServerSocket.java:170)
        at java.net.ServerSocket.<init>(ServerSocket.java:82)
        at de.infor.ce.http.Server.start(Server.java:124)
        at de.infor.ce.http.test.Http.testHttp(Http.java:59)
        at java.lang.reflect.Method.invoke(Native Method)
        at junit.framework.TestCase.runTest(TestCase.java:321)
        at junit.framework.TestCase.runBare(TestCase.java:299)
        at junit.framework.TestResult.run(TestResult.java:65)
        at junit.framework.TestCase.run(TestCase.java:289)
        at junit.framework.TestSuite.run(TestSuite.java:119)
        at junit.framework.TestSuite.run(TestSuite.java:119)
        at junit.textui.TestRunner.doRun(TestRunner.java:32)
        at junit.textui.TestRunner.run(TestRunner.java:69)
        at test.Test.main(Test.java:57)



Hopefully this information will be useful to someone else.

Also: if I get time, I'll try to write up the sh scripts.  Perhaps I could have a CVS 
login?

++Jeff





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to