Before asking my question, I would just like to say that I am very impressed with Orbeon. I was considering using cocoon, but I really wanted to use xforms in my application. There is the chiba project, which supports xforms, but it is still very green and does not integrate with the latest cocoon version. I also like that Orbeon lets me do more without writing java code.

 

OK, Enough of that�.

 

I have been using Orbeon Presentation Server 2.5.4 for a couple of weeks and just upgraded to 2.6 and Orbeon Studio 1.1. I have a couple of questions about the latest studio release with regards to log4j�

 

(1)

I used the wizard with the previous version of Orbeon to create a simple test app and this worked OK. It looks like the log4j config file created with the 1.1 studio wizard has not been updated to the latest version as specified in the help(nit). Tomcat complains about the file format (it expects <log4j:configuration> instead of just <configuration> as a root element) when it starts.

 

(2)

With the previous version of studio, I always had 2 or 3 OIS projects in my workspace at a time. I always kept the Orbeon example war file loaded for reference and 1 or 2 of my own projects. My problem is that with the new version of log4j, I can�t configure my environment to capture logs (in the studio monitor window) with more than one project at a time. If I have 3 projects and enable the line:

 

        <appender-ref ref="StudioAppender"/>

 

in the log4j.xml file in all 3 projects, only the first project (in the project list) actually captures logs in the monitor window. If I disable the first project (comment out the appender), the second project is the only one that captures logs. I have to restart the tomcat container to switch from logging one app to the next after uncommenting the appropriate log4j line. This was not an issue with the last release of studio. I know based on the help that the log4j config format has changed. I guess there were other changes as well. I really don't understand how log4j works. I just followed the directions in the help. Anyway, this is not a show-stopper for me, but it is a little annoying.

 

I also have one old problem that I have already worked around that seems to be in both versions. Apparently, the Orbeon �Integrating w/java� example has a problem finding the java compiler when I run it in studio. When I try to run the example (or my own java processor in my own project), I get the error at the bottom of this email. If I zip up a war file from my studio environment and load it into my tomcat installation, the example works fine. I tried many things to make this work in studio, and finally I got it to work by copying the tools.jar file from my java installation into the lib directory of my project (and the Orbeon example project). This worked, but I was wondering what the correct solution is. Is there some configuration that I can do to my studio tomcat installation that will fix this without having to doctor up your release lib? Since you can�t know what java release a user has, you can�t fix this by including the tools.jar in your release. Why does this work in the real tomcat container?

 

Anyway, none of these issues are stopping me from using and enjoying Orbeon. Thanks for making this great product open source�.

 

Tony

 

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at �.
 
<snip>

root cause

java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
        at org.orbeon.oxf.processor.JavaProcessor.getProcessor(JavaProcessor.java:161)
        at 
 
<snip>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to