One problem you will have is that the jboss-all checkout applies only to
3.0-rabbithole and looking for the 2.4.1 tag is unlikely to give you a
working... well, anything.  There may be an easier way but I think pre rh
you had to check out each directory (jboss, jbosscx, jbossmq....)
individually and build them individually.

david jencks

On 2001.09.15 18:18:02 -0400 David M. Karr wrote:
> I'm going through the somewhat painful process of trying to debug
> JBoss-2.4.1_Tomcat-3.2.3 in NetBeans, internally, without using the
> "attach"
> strategy.  I noticed a description of how to "attach" to it at one point,
> but
> I'd prefer to be able to trace the startup flow, which I think would be
> difficult using "attach".
> 
> I'd appreciate any help in properly setting this up.
> 
> I'm addressing each issue one by one.  I have some issues that I don't
> how to
> deal with.
> 
> I checked out "jboss-all" with the "JBoss_2.4.1" label (the spelling
> might not
> be exactly right on that label).
> 
> I've added all the source dirs to my NB project, and mounted all of the
> jars in
> the "src/lib" directories.
> 
> There were some tricky details about the "log", "tmp", and "db"
> directories.  I
> had to mount those directories from the binary release, but I also had to
> copy
> them to the source tree.  Some code was loading files through the
> classloader,
> and some were loading them in a different way, such that putting them in
> the
> CLASSPATH wasn't enough.  I would love to figure out a cleaner way to do
> that.
> 
> Currently, I see the following anomalies in the output in the debugger
> that I
> don't see when I start JBoss-Tomcat normally:
> 
> ----------
> Please make sure the following is intended (check your CLASSPATH):
>  jndi.properties is read from 
>file:/C:/JBoss-2.4.1_Tomcat-3.2.3/jboss/conf/tomcat/jndi.properties
> ----------
> 
> I found this code in "Main.java".  I would guess this gets printed if the
> "conf/tomcat" directory is in my CLASSPATH, at this point in time.  When
> I run
> outside of NB, I don't see this, so I guess that directory is not in my
> CLASSPATH.  I mounted that directory in NB because I saw other errors
> when I
> didn't do that (although I don't remember what they were).  I think this
> is
> another case where some files are loaded through the classloader, and
> some are
> loaded in other ways.
> 
> ----------
> [EmbeddedTomcatServiceSX] Starting
> [EmbeddedTomcatSX] Starting EmbeddedTomcatSX....
> [Default] ERROR reading C:\netbeans\modules\conf\server.xml
> [Default] At File "file:C:/netbeans/modules/conf/server.xml" not found.
> [Default] 
> [Default] FATAL: configuration error
> [Default] org.xml.sax.SAXParseException: File
> "file:C:/netbeans/modules/conf/server.xml" not found.
> [Default]         at 
>org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1066)
> [Default]         at 
>org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:512)
> [Default]         at 
>org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:309)
> [Default]         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:951)
> [Default]         at 
>org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> [Default]         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> [Default]         at javax.xml.parsers.SAXParser.parse(SAXParser.java:290)
> [Default]         at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
> [Default]         at org.jboss.tomcat.TomcatEntry.execute(TomcatEntry.java:329)
> ----------
> 
> I can't figure out much about this.  I don't seem to have source for
> "TomcatEntry", or the related "EmbeddedTomcatServiceSX" class (not
> "EmbeddedTomcatSX", which doesn't exist as a class anywhere).  Is there
> some
> reason that some classes in this package are not in the "jboss-all"
> module?
> 
> ----------
> [Default] Starting tomcat. Check logs/tomcat.log for error messages 
> [Default] ContextManager: Engine init
> [Default] No webapps/ directory C:\netbeans\modules\webapps
> [Default] PoolTcpConnector: Starting HttpConnectionHandler on 0
> ----------
> 
> Not finding a "webapps" directory is probably bad.  I'm not sure what I
> need to
> fix for this, although I have a feeling the correct solution to this will
> probably fix several problems.
> 
> After JBoss-Tomcat started up, I tried to test my combined web/ejb
> application.
> These two parts are pretty simple, and work fine when JB-TC starts
> outside of
> NB.  I found that a web request for my start page failed (without even a
> server
> error).  I found that the EJB application worked, but I noticed that it
> didn't
> delete and recreate my tables at startup, both of which I specify in my
> "standardjaws.xml".
> 
> -- 
> ===================================================================
> David M. Karr          ; Best Consulting
> [EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to