On Sun, 21 Nov 2004 00:17:36 -0800 (PST), "Tony Jorgenson" <[EMAIL PROTECTED]> said: > > > (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.
OK, logged a bug. > (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\x92t 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. We switched from using SocketAppender by default to using SocketHubAppender by default. While in general SocketHubAppender is better in general this is one drawback. Probably best thing for you to do is to give each project a unique port number. ( Just search for 'Port' and you will find the param that needs changing. ) Logged an RFE for this - Studio should not generate conflicting log4j files/should warn if there are conflicting log4j files. > > > > I also have one old problem that I have already worked around that seems > to be in both versions. Apparently, the Orbeon \x93Integrating w/java\x94 > 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\x92t know what java release a user has, you can\x92t > fix this by including the tools.jar in your release. Why does this work > in the real tomcat container? Just tried this with Studio 1.1/Pres Serv 2.6 and it seems to work. The error message that you posted is from what version of Presentation Server? I ask because when I look at the JavaProcessor.java that went into the release I see that line 161 doesn't have a ref to com.sun.tools.javac.Main ( and so couldn't have caused exception below ). -- Dan S > > > > 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 \x85. > > > > <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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
