[Laszlo-dev] FW: Debugging JRun

Doug Hughes dhughes at alagad.com
Thu Jan 27 02:54:30 PST 2005


 
Hey all, 
 
I'm done for the night, but I've managed to knock down a bunch of roadblocks
with Laszlo and JRun.  Most of them are configuration issues.  
 
Here's the process so far:
 
- Use the JRun admin interface to create a JRun server named Laszlo.  Make
sure the server is not on.
- Under the folder which is created (c:\jrun4\servers\Laszlo) delete the
default-ear (actually, I'm not doing this, but it should be done)
- Under the folder which is created (c:\jrun4\servers\Laszlo) create a
folder called Laszlo-war
- Copy the core files (I've been building mine) into the Laszlo-war folder.
This should have a number of directories, one of which should be WEB-INF.
- under the WEB-INF folder create a file named jrun-web.xml.  Add the
following in as the contents of that document.  Note, the reload and compile
elements should be left out for production (if this ever gets that far)
 
<?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE jrun-web-app PUBLIC "-//Macromedia, Inc.//DTD jrun-web 1.0//EN"
 "http://www.macromedia.com/dtd/jrun-web.dtd">
 
<jrun-web-app>
 
  <load-system-classes-first>false</load-system-classes-first>
  <!-- Set these to false for production, they are false by default -->
  <reload>true</reload>
  <compile>true</compile>
 
</jrun-web-app>
 
- Make sure that the Laszlo server has it's own jvm.config file.  By default
all JRun servers share their config.  To give a server it's own jvm.config
name it jvm.config_{servername} where server name is the name of the server.
For instance: jvm.config_Laszlo.  When this file exists JRun will first look
at jvm.config and THEN at jvm.config_Laszlo.  I'm running ColdFusion on
another JRun server.  I ended up making a jvm.config_cfusion file and moving
all coldfusion specific settings into that file and out of the jvm.config.
This means that when the Laszlo server starts up that it's not being
confused by class paths, etc for ColdFusion.
 
- JRun does not come with xerces.jar, it uses something else in its place.
Copy xerces.jar from the lps-3.0b1-src\3rdparty\jing-20030619\bin directory
to the JRun\Servers\Laszlo\Laszlo-war\WEB-INF\lib folder.  Because you set
the load-system-classes-first to false in the jrun-web.xml, JRun will load
this first and get past the first big problem that ususaly crops up with
JRun.
 
 
Note: all of the above is are the steps I've taken... I don't know that this
is right or not, it's simply what I've done.  
 
Where I'm at now is I'm seeing an error being thrown from HTTPDataSource:
 
26 Jan 2005 22:16:01 () INFO  data.HTTPDataSource  - using connection pool
26 Jan 2005 22:16:01 () ERROR servlets.LZServlet   - Throwable: 
java.lang.ExceptionInInitializerError
 at org.openlaszlo.data.HTTPDataSource.this(HTTPDataSource.java:79)
 at org.openlaszlo.data.HTTPDataSource.<init>(HTTPDataSource.java:42)
 at
org.openlaszlo.servlets.responders.ResponderCache.init(ResponderCache.java:2
65)
 at
org.openlaszlo.servlets.responders.ResponderMEDIA.init(ResponderMEDIA.java:5
8)
 at org.openlaszlo.servlets.LZServlet.getResponder(LZServlet.java:338)
 at org.openlaszlo.servlets.LZServlet.initLPS(LZServlet.java:189)
 at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:240)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
(there's a lot more info in lps.log, but I'm not putting it here).
 
The line it's failing on in HTTPDataSource.java is this:  
 
mConnectionMgr = new MultiThreadedHttpConnectionManager();
 
MultiThreadedHttpConnectionManager appears to be Apache HttpClient.  At the
moment I don't know why this is throwing an ExceptionInInitializerError.
I'm pretty sure that the Apache HttpClient is already in that WEB-INF\lib
folder, so I don't know what's up with this yet. 
 
If anyone has any further suggestions, I'm all ears.  I'll keep going
tomorrow.
 
Doug
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20050127/213bea43/attachment.htm


More information about the Laszlo-dev mailing list