Hi Johnson,
even with only the changes you propose to make, the error persists. The
MalformedURLException from the stack trace I sent in my last mail showed up
again.
But nevertheless, thx for showing me where the tomcat-config should be
placed in pre-2.1.
Any other comments?
.bbr
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im Auftrag von Johnson Lim
> Gesendet: Donnerstag, 4. Januar 2001 13:55
> An: jBoss
> Betreff: RE: [jBoss-User] Embedded Tomcat and server.xml
>
>
> Hi Benjamin,
>
> There are several changes in the latest snapshot on JBoss
> PRE-2.1. What you
> are showing is the jboss.conf for JBoss 2.0, you have to use the latest
> configuration.
>
> Let do this :
> 1. Please make sure you have uncomment the tomcat part in
> jboss.conf it will
> show :
>
> <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
> CODEBASE="../../lib/ext/">
> <ARG TYPE="java.lang.String" VALUE="../../Tomcat/lib/">
> <ARG TYPE="java.lang.String" VALUE="Tomcat">
> </MLET>
>
> 2. Please make sure you have uncomment the tomcat part on jboss.jcml:
>
> <mbean code="org.jboss.tomcat.EmbeddedTomcatService"
> name="DefaultDomain:service=EmbeddedTomcat" />
>
> Note: Change the path ../../Tomcat/lib/ to your tomcat lib path.
> I thinks it will help
>
> Regards,
> Johnson
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Benjamin Broll
> Sent: Thursday, January 04, 2001 7:30 PM
> To: jBoss
> Subject: [jBoss-User] Embedded Tomcat and server.xml
>
>
> Hi,
>
> I just build the latest cvs snapshot of jboss and tried to
> integrate it with
> my tomcat installation (aside: I have been using the jboss final 2.0 with
> tomcat integration without any problems). After adding the appropriate
> section to jboss.conf
>
> <MLET CODE = "org.jboss.tomcat.EmbeddedTomcatService" ARCHIVE="jboss.jar"
> CODEBASE="../../lib/ext/">
> <ARG TYPE="java.lang.String" VALUE="../../../TOMCAT/conf/server.xml">
> <ARG TYPE="int" VALUE=8080>
> </MLET>
>
> and building the tomcat part of the contrib package (+ including it in
> lib/ext, of course), I tried to run jboss and got the following output:
>
> (...)
> [EmbeddedTomcat] Starting
> [EmbeddedTomcat] Testing if Tomcat is present....
> [EmbeddedTomcat] OK
> [EmbeddedTomcat] ContextManager: Adding context Ctx( )
> [EmbeddedTomcat] path="" :jsp: init
> [EmbeddedTomcat] Stopped
> [EmbeddedTomcat] java.net.MalformedURLException: no protocol: server.xml
> [EmbeddedTomcat] at java.net.URL.<init>(Unknown Source)
> [EmbeddedTomcat] at java.net.URL.<init>(Unknown Source)
> [EmbeddedTomcat] at java.net.URL.<init>(Unknown Source)
> [EmbeddedTomcat] at
> com.sun.xml.parser.InputEntity.init(InputEntity.java:140)
> [EmbeddedTomcat] at
> com.sun.xml.parser.Parser.parseInternal(Parser.java:463)
> [EmbeddedTomcat] at com.sun.xml.parser.Parser.parse(Parser.java:284)
> [EmbeddedTomcat] at
> com.sun.xml.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:95)
> [EmbeddedTomcat] at
> javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:171)
> [EmbeddedTomcat] at
> org.jboss.tomcat.EmbeddedTomcatService.startService(EmbeddedTomcat
> Service.ja
> va:211)
> (...)
>
> As I tried to play around with the jboss.conf server.xml parameter for
> tomcat integration I noticed that it never made its way through to the
> EmbeddedTomcatService. Thus the standart location for the file was always
> used - but this was not the problem, as the server.xml is in its std.
> location. However, is that the way it should work?
>
> After fooling around with EmbeddedTomcatService for a while, I
> saw that when
> I changed the line referenced by the stack trace
>
> Document doc = docBuilder.parse(new File(configFile));
>
> to
>
> Document doc = docBuilder.parse(new File(configFile).toURL().toString());
>
> everything worked out fine, and I did not get the MalformedURLException
> again.
>
> Did anybody else experience this problem?
> Is this a bug in "parse(java.io.File)"?
> Any comments?
>
> ..bbr
>
> PS: I'm also getting a NullPointerException when the NamingService is shut
> down. In case you like the stack trace:
>
> (...)
> [Naming] Stopping
> [Naming] java.lang.NullPointerException
> [Naming] at org.jnp.server.Main.stop(Main.java:118)
> [Naming] at
> org.jboss.naming.NamingService.stopService(NamingService.java:107)
> [Naming] at
> org.jboss.util.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:125)
> [Naming] at java.lang.reflect.Method.invoke(Native Method)
> [Naming] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Naming] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Naming] at
> org.jboss.util.ServiceControl.stop(ServiceControl.java:131)
> [Naming] at java.lang.reflect.Method.invoke(Native Method)
> [Naming] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Naming] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Naming] at
> org.jboss.util.Shutdown.shutdownServices(Shutdown.java:87)
> [Naming] at org.jboss.util.Shutdown$1.run(Shutdown.java:56)
> [Naming] JNP server stopped
> [Naming] Stopped
> (...)
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]