Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Scout - Indigo SR1 - Unable to export war(HelloWorld - could not create 'servletbridge.jar' in temp folder)
Scout - Indigo SR1 - Unable to export war [message #754333] Wed, 02 November 2011 08:21 Go to next message
Philippe EUGENE is currently offline Philippe EUGENEFriend
Messages: 28
Registered: January 2011
Junior Member
Hello,
Just try the capabilities of the Scout Framework
- Download : Eclipse for scout and RAP Developers - Indigo SR1
- Just the HelloWord app (Launch dev client and server: OK)
- Try to export war:
could not create 'servletbridge.jar' in temp folder
java.lang.NullPointerException

Is there a way to fix it ?
Thanks,
--
Philippe

[Updated on: Wed, 02 November 2011 08:22]

Report message to a moderator

Re: Scout - Indigo SR1 - Unable to export war [message #754359 is a reply to message #754333] Wed, 02 November 2011 10:24 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 817
Registered: October 2011
Senior Member
I just tried it on my computer with "Eclipse for Scout Developers SR1"... It work fine.

Could you add some debug information? Exact version, OS, Stacktrace, ...
Re: Scout - Indigo SR1 - Unable to export war [message #754386 is a reply to message #754359] Wed, 02 November 2011 11:53 Go to previous messageGo to next message
Philippe EUGENE is currently offline Philippe EUGENEFriend
Messages: 28
Registered: January 2011
Junior Member
I just tried a new time, and a i tick the checkbox: Include client application. In this context the export war works fine.
If I does not include the client the error is below:
It seems the problems is here:
org.eclipse.scout.sdk.operation.export.ExportServerWarOperation.buildClientProduct(Ex

The Export War Wizard try to build a client product, even if the checkbox is untick ?

Stacktrace
org.eclipse.core.runtime.CoreException: could not create 'servletbridge.jar' in temp folder
	at org.eclipse.scout.sdk.operation.export.ExportServerWarOperation.run(ExportServerWarOperation.java:114)
	at org.eclipse.scout.sdk.jobs.OperationJob.run(OperationJob.java:83)
	at org.eclipse.scout.sdk.jobs.AbstractWorkspaceBlockingJob.doRun(AbstractWorkspaceBlockingJob.java:62)
	at org.eclipse.scout.sdk.jobs.AbstractWorkspaceBlockingJob.run(AbstractWorkspaceBlockingJob.java:40)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
	at org.eclipse.pde.internal.core.product.WorkspaceProductModel.load(WorkspaceProductModel.java:42)
	at org.eclipse.scout.sdk.operation.export.ExportServerWarOperation.buildClientProduct(ExportServerWarOperation.java:134)
	at org.eclipse.scout.sdk.operation.export.ExportServerWarOperation.run(ExportServerWarOperation.java:101)
	... 4 more


Session data

eclipse.buildId=M20110909-1335
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product org.eclipse.epp.package.scout.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.scout.product
Re: Scout - Indigo SR1 - Unable to export war [message #754387 is a reply to message #754386] Wed, 02 November 2011 11:56 Go to previous messageGo to next message
Philippe EUGENE is currently offline Philippe EUGENEFriend
Messages: 28
Registered: January 2011
Junior Member
For my testing purpose, it' not a real problem, but the behavior look strange for production purpose...
Re: Scout - Indigo SR1 - Unable to export war [message #754393 is a reply to message #754386] Wed, 02 November 2011 12:25 Go to previous messageGo to next message
Andreas Hoegger is currently offline Andreas HoeggerFriend
Messages: 178
Registered: February 2010
Senior Member
Looks like you do not have write access to the temp folder. Could you
try to execute the following code in a main method:

try {
File tmp = File.createTempFile("dir", "tmpFolder");
tmp.delete();
tmp.mkdirs();
tmp.deleteOnExit();
File f = new File(tmp, "text.txt");
FileOutputStream out = new FileOutputStream(f);
FileWriter writer = new FileWriter(f);
writer.write("Hello world");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

and let me know about the result.

-Andreas
Re: Scout - Indigo SR1 - Unable to export war [message #754397 is a reply to message #754393] Wed, 02 November 2011 12:37 Go to previous messageGo to next message
Philippe EUGENE is currently offline Philippe EUGENEFriend
Messages: 28
Registered: January 2011
Junior Member
Hello,
Thanks for help.
No problemn when writing into the temp directory.
I thought that the pb is the NPE when trying to export a war without including the client side:
Caused by: java.lang.NullPointerException
	at org.eclipse.pde.internal.core.product.WorkspaceProductModel.load(WorkspaceProductModel.java:42)
	at org.eclipse.scout.sdk.operation.export.ExportServerWarOperation.buildClientProduct(ExportServerWarOperation.java:134)
	at org.eclipse.scout.sdk.operation.export.ExportServerWarOperation.run(ExportServerWarOperation.java:101)
	... 4 more
Re: Scout - Indigo SR1 - Unable to export war [message #754407 is a reply to message #754397] Wed, 02 November 2011 13:07 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 817
Registered: October 2011
Senior Member
I also could reproduce it...

NullPointerException when "[ ] Include client application" is not checked.

@peugene
Thanks for the input => Bug 362666.

[Updated on: Wed, 02 November 2011 13:27]

Report message to a moderator

Re: Scout - Indigo SR1 - Unable to export war [message #754436 is a reply to message #754333] Wed, 02 November 2011 14:18 Go to previous message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 83
Registered: September 2011
Member
Bug has been fixed for SR2.
Thank you for the information!
Previous Topic:Process Service and Templates
Next Topic:*.product and config.ini files
Goto Forum:
  


Current Time: Fri Dec 19 03:57:26 GMT 2014

Powered by FUDForum. Page generated in 0.02134 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software