Re: Troubles with com.webobjects.jspservlet
Filippo Laurìa <[email protected]> Wed, 15 May 2013 15:29:21 +0200
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <CAKdmw2g=R=CKsRZeGQDhJ4fN9E_zchCONnvsCn6ro5-GXc49JQ@mail.gmail.com> |
2013/5/15 Pascal Robert <[email protected]>: >> I think that this error is due to a bug of WOLips37Stable while >> generating "JAR Project". This because when trying to generate a new >> "JAR Project" (or simply when accessing JAR project implementing >> net.sf.webcat package) I get the same error described here [2]. So I >> decided to replace this sources with pre-built jar got from >> distributed war file of Web-CAT and it goes fine, without any >> exception. > > Jar Project? I don't think that's the good thing to do, you should try wi= th a Wonder Application application type. I'm not sure a Jar Project will c= reate a WAR correctly. > Well, the entire system is a set of subsystems, some of them are Frameworks= . This particular subsystem (that one that failed) is a JAR Project. WAR file is generated, with a build.xml script of a "holding Wonder Application". This ant file places Frameworks into WEB-INF/App.woa/Contents/Library/Frameworks and jar file generated into WEB-INF/lib/MyJar.jar Looking at eclipse log it seems that some boolean properties are missing, is that this fact can be the cause of an incorrect build of JAR Project? >> Here you can find some of the eclipse log: >> >> this for creation of new JAR project: >> -- >> !SESSION 2013-05-12 23:09:28.135 ---------------------------------------= -------- >> eclipse.buildId=3DM20120208-0800 >> java.version=3D1.7.0_21 >> java.vendor=3DOracle Corporation >> BootLoader constants: OS=3Dlinux, ARCH=3Dx86_64, WS=3Dgtk, NL=3Dit_IT >> Framework arguments: -product org.eclipse.epp.package.jee.product >> Command-line arguments: -os linux -ws gtk -arch x86_64 -product >> org.eclipse.epp.package.jee.product >> >> !ENTRY org.objectstyle.wolips.wizards.WizardsPluginResources 4 4 >> 2013-05-12 23:12:56.922 >> !MESSAGE Internal Error >> !STACK 0 >> java.lang.NullPointerException >> at org.objectstyle.wolips.wizards.NewWOProjectWizard$InstallProjectTe= mplateOperation.createFrameworksSupport(NewWOProjectWizard.java:963) >> at org.objectstyle.wolips.wizards.NewWOProjectWizard$InstallProjectTe= mplateOperation.finishInstallTemplate(NewWOProjectWizard.java:896) >> at org.objectstyle.wolips.templateengine.InstallTemplateOperation.exe= cute(InstallTemplateOperation.java:68) >> at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceMod= ifyOperation.java:106) >> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2= 344) >> at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModif= yOperation.java:118) >> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Mo= dalContext.java:121) >> >> !ENTRY org.eclipse.ui.ide 4 0 2013-05-12 23:12:57.625 >> !MESSAGE java.lang.RuntimeException: Failed to create project. >> !STACK 0 >> java.lang.RuntimeException: Failed to create project. >> at org.objectstyle.wolips.templateengine.InstallTemplateOperation.exe= cute(InstallTemplateOperation.java:73) >> at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceMod= ifyOperation.java:106) >> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2= 344) >> at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModif= yOperation.java:118) >> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Mo= dalContext.java:121) >> Caused by: org.eclipse.swt.SWTException: Invalid thread access >> at org.eclipse.swt.SWT.error(SWT.java:4282) >> at org.eclipse.swt.SWT.error(SWT.java:4197) >> at org.eclipse.swt.SWT.error(SWT.java:4168) >> at org.eclipse.swt.widgets.Widget.error(Widget.java:466) >> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:263) >> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:359) >> at org.eclipse.jface.window.Window.createShell(Window.java:487) >> at org.eclipse.jface.window.Window.create(Window.java:430) >> at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) >> at org.eclipse.jface.window.Window.open(Window.java:790) >> at org.eclipse.jface.dialogs.ErrorDialog.open(ErrorDialog.java:360) >> at org.eclipse.jface.dialogs.ErrorDialog.openError(ErrorDialog.java:4= 24) >> at org.eclipse.jface.dialogs.ErrorDialog.openError(ErrorDialog.java:3= 89) >> at org.objectstyle.wolips.wizards.NewWOProjectWizard$InstallProjectTe= mplateOperation.createFrameworksSupport(NewWOProjectWizard.java:966) >> at org.objectstyle.wolips.wizards.NewWOProjectWizard$InstallProjectTe= mplateOperation.finishInstallTemplate(NewWOProjectWizard.java:896) >> at org.objectstyle.wolips.templateengine.InstallTemplateOperation.exe= cute(InstallTemplateOperation.java:68) >> ... 4 more >> -- >> >> and this for accessing an already created JAR project: >> >> -- >> !ENTRY org.eclipse.core.resources 4 75 2013-05-12 23:12:59.343 >> !MESSAGE Errors occurred during the build. >> !SUBENTRY 1 org.objectstyle.wolips 4 75 2013-05-12 23:12:59.343 >> !MESSAGE Errors running builder 'WOLips Ant Builder' on project 'MyBoots= trap'. >> !STACK 0 >> java.lang.NullPointerException >> at org.objectstyle.wolips.wodclipse.core.builder.WodBuilder.getBoolea= nProperty(WodBuilder.java:108) >> at org.objectstyle.wolips.wodclipse.core.builder.WodBuilder.buildStar= ted(WodBuilder.java:126) >> at org.objectstyle.wolips.core.resources.internal.build.Builder.notif= yBuilderBuildStarted(Builder.java:224) >> at org.objectstyle.wolips.core.resources.internal.build.Builder.build= (Builder.java:137) >> at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.j= ava:728) >> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) >> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildMana= ger.java:199) >> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildMana= ger.java:239) >> at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.j= ava:292) >> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) >> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildMana= ger.java:295) >> at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(Build= Manager.java:351) >> at org.eclipse.core.internal.events.BuildManager.build(BuildManager.j= ava:374) >> at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob= .java:143) >> at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.jav= a:241) >> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) >> -- >> >> [2]: http://objectstyle.org/woproject/lists/woproject-dev/2010/07/0022.h= tml > -- Fil=ECppo Laur=ECa - http://www.facebook.com/filippo.lauria