Hi Stephen,
> Does this refer to the Main class in the sun tab which I have already set
to org.jboss.Main??
You are corrrect, the startup parameter is the argument passed to
org.jboss.Main in the run tab of the project.
Beware though things are never quite that simple, (see classpath
modification to your setup below) it is also necessary to adjust the
classpath in the library below to replace conf/default with conf/tomcat.
This is a class loader related issue. I have not tried this out myself so
please let me know if you have problems with it. Note on JBuilder 5
professional and enterprise there is an integrated tomcat version 3.2.1.
You also have the ability to tell jBuilder the base path location for this
externam tomcat application using the project/properties/server setup page,
There is also support for a vanilla EJB1.1 server (however you require the
expensive 3k+ enterprise version to take advantage of that and my readme
suffices to do source debugging for this anyhow so don't bother. It's
really quite incredible what the jbuilder folks have been doing. The only
issue I had was regarding JNDI lookups from a tomcat 3.2.x servlet in its
own VM I could not get these to work and it turned out that the issue was
class loader related whereby I had to plug in tomcat 4 beta to work around
it. I thik it is not an issue if you use the embedded tomcat as it works in
the same vm and classloader issues are a mote point. Also another thing
about using the non-embedded tomcat is that in JBuilder 5 you can add a
servlet or JSP (via the servlet wizard) and you debug it using the context
menu from the servlet source file (web debug), this uses the non embedded
tomcat located in \jbuilder\jakarta-tomcat-3.2.1\ - it is a really nice
feature.
I'd love to hear how you get on with embedded tomcat debugging.
John Coffey
Pingtel Corporation
Iv also changed my $Jboss_tomcat_home var to c:\JBossTomcat (which is the
physical path to my jboss tomcat installation).
Im pretty sure Iv followed the right order for the class set up but just in
case you may doubt this Ill past in my Jboss-server xml file :-
<?xml version="1.0" encoding="UTF-8"?>
<library>
<!--JBuilder Library Definition File-->
<fullname>JBoss-Server</fullname>
<class>
<path>[../../../../JBossTomcat/jboss/lib/crimson.jar]</path>
......
<path>../../../../JBossTomcat/jboss/db</path>
<path>../../../../JBossTomcat/jboss/conf/default</path> (change to
Tomcat) <path>../../../../JBossTomcat/jboss/conf/tomcat</path>
<path>[../../../../JBossTomcat/jboss/lib/ext/log4j.jar]</path>
<path>../../../../JBossTomcat/jboss/log</path>
<path>../../../../JBossTomcat/jboss/tmp</path>
<path>[../../../../JBossTomcat/jboss/lib/ext/jbosssx.jar]</path>
<path>[../../../../JBossTomcat/jboss/lib/ext/jbosscx-0.2.jar]</path>
<path>[../../../../JBossTomcat/jboss/lib/ext/connector.jar]</path>
<path>[../../../../JBossTomcat/jboss/lib/ext/minerva-1_0b3.jar]</path>
</class>
<source>
<path>../../../../JBossTomcat/jboss/src</path>
</source>
</library>
And now for the errors :-
1.
Using JAAS LoginConfig: file:/C:/JBossTomcat/jboss/conf/default/auth.conf
Using configuration "default" Please make sure the following is intended
(check your CLASSPATH): jndi.properties is read from
file:/C:/JBossTomcat/jboss/conf/default/jndi.properties
Not too sure about this..
2.
[Default] log4j:ERROR setFile(null,false) call failed. [Default]
java.io.FileNotFoundException: ../log/server.log (The system cannot find the
path specified) [Default] at java.io.FileOutputStream.open(Native
Method) [Default] at
java.io.FileOutputStream.<init>(FileOutputStream.java:102) [Default]
at java.io.FileWriter.<init>(FileWriter.java:52) [Default] at
org.apache.log4j.FileAppender.setFile(FileAppender.java:316) [Default]
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:182)
[Default] at
org.apache.log4j.PropertyConfigurator.configureOptionHandler(PropertyConfigu
rator.java:451) [Default] at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.jav
a:585) [Default] at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.jav
a:555) [Default] at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigur
ator.java:462) [Default] at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
388) [Default] at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
414) [Default] at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.
java:345) [Default] at
org.apache.log4j.Category.<clinit>(Category.java:160) [Default] at
org.jnp.server.Main.<init>(Main.java:95) [Default] at
org.jboss.naming.NamingService.<init>(NamingService.java:37) [Default]
at java.lang.reflect.Constructor.newInstance(Native Method) [Default] at
com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.
java:2117) [Default] at
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:509)
[Default] at
org.jboss.configuration.ConfigurationService.create(ConfigurationService.jav
a:340) [Default] at
org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration
Service.java:271) [Default] at java.lang.reflect.Method.invoke(Native
Method) [Default] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Default] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Default] at org.jboss.Main.<init>(Main.java:209) [Default] at
org.jboss.Main$1.run(Main.java:121) [Default] at
java.security.AccessController.doPrivileged(Native Method) [Default]
at org.jboss.Main.main(Main.java:117) [Service Control] Initializing 23
MBeans
>So I guess this is to do with the server.log file not being found, however
if you refer to my xml file above Iv included the log dirs as
quoted in the doc...
May seem alot but I hope you can help a little.
Just to finish off Im running JBuilder4 Enterprise on NT4.
Speak to you soon,
Stephen.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user