[EMAIL PROTECTED] wrote:

On Thu, 04 Nov 2004 13:28:28 +0000, "David Sinclair"
<[EMAIL PROTECTED]> said:


Thanks Dan, that seems to have worked. I have a couple of follow on questions though...first, can I restart Tomcat from within Ecplipse now?


On the Run menu of the main menu bar there should be 'Stop J2EE Container' and 'Restart J2EE Container' menu items.
These will only become enabled when the container is running.




These menu items are never enabled for me ...the only way I can stop tomcat is to close eclipse. I notice that there are some exceptions in the log that may be related, eg:

!MESSAGE An exception occurred during launch change notification.
!STACK 0
java.lang.ClassCastException
at orbeon.oxfstudio.eclipse.J2EEContainerManager.getRunningContainerProcess(J2EEContainerManager.java:273)
at orbeon.oxfstudio.eclipse.ui.ContainerAction.updateAction(ContainerAction.java:74)
at orbeon.oxfstudio.eclipse.ui.ContainerAction$LaunchListener.launchesChanged(ContainerAction.java:48)
at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.run(LaunchManager.java:1422)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.notify(LaunchManager.java:1445)
at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:371)
at org.eclipse.debug.core.Launch.fireChanged(Launch.java:400)
at org.eclipse.debug.core.Launch.addProcess(Launch.java:362)
at org.eclipse.debug.core.model.RuntimeProcess.<init>(RuntimeProcess.java:115)
at org.eclipse.debug.core.DebugPlugin.newProcess(DebugPlugin.java:534)
at org.eclipse.jdt.launching.AbstractVMRunner.newProcess(AbstractVMRunner.java:110)
at org.eclipse.jdt.internal.launching.StandardVMRunner.run(StandardVMRunner.java:252)
at orbeon.oxfstudio.eclipse.ui.OXFAppLaunchConfigurationDelegate.launch(OXFAppLaunchConfigurationDelegate.java:244)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)


Do you want me to send you the whole log?

I dont see a way to do this. Second, I now no longer get logging events coming through in the Logging Events view. My web.xml is setup to the ChainsawAppender (I didnt change this). Is there anything else I should be looking out for?



Shoot. I think I know what this is. In the unstable builds of pres serv we have moved to log4j 1.3 alpha and commons-logging 1.0.4. However the current log4j uses a different protocol than the log4j 1.2.8.

So first things first, try the following :
o remove log4j-1_2_8.jar and commons-logging-1_0_3.jar
from your WEB-INF\lib o Copy log4j-1.3alpha0.jar and commons-logging-1_0_4.jar to your
WEB-INF\lib directory.


To get your hands on these jars either
a.) Create a new 'OXF App' project, or
b.) Look under the plugins dir of your studio install. You should find one copy of commons-logging-1_0_4.jar and
one or more copies of log4j-1.3alpha0.jar. If there are multiple copies of log4j-1.3alpha0.jar grab the
latest.




I just gave this a go and it doesnt seem to fix the issue. I am just using the console appender for the time being and this works but is just a little less convenient than the LoggingEvents view.

Now I'll just need to think about how we are going to handle
this scenario ( old pres serv/new studio ) in the future...

-- Dan S


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to