Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP Jar Creation (Automatic Jar Signing)
WTP Jar Creation (Automatic Jar Signing) [message #504796] Tue, 22 December 2009 17:33 Go to next message
Jake  is currently offline Jake Friend
Messages: 2
Registered: December 2009
Junior Member
Hello,

I have two projects that I'm managing using Maven in Eclipse - one is a
simple server application that I'm running on Tomcat through Eclipse and the
other is a simple JApplet. The applet jar needs to be signed to work
properly in my application, but that is the one I'm currently working on so
I would like to automate the signing process.

I have been using maven-jarsigner-plugin, several variations of ANT scripts,
etc to sign the JAR but none of them seem to apply when the jar is copied to
the
~/workspace/.metadata/.plugins/org.eclipse.wst.server.core/t mp4/wtpwebapps/test/WEB-INF/lib
folder. From what I understand, WTP is creating those jars behind the
scenes and it seems to happen out of sync with any script that I create.

I'm relatively new to every one of these technologies, so detailed advice is
appreciated - if the answer is a simple Google search, then I already found
it and did it incorrectly Smile

Thanks!

Jake
Re: WTP Jar Creation (Automatic Jar Signing) [message #559508 is a reply to message #504796] Thu, 16 September 2010 22:08 Go to previous messageGo to next message
Jake  is currently offline Jake Friend
Messages: 2
Registered: December 2009
Junior Member
I'm bumping this after...9 months. I moved away from the project and have come back to it and Googling turns up this post as the #1 hit. So? I can't use Eclipse with signed jars?

Thanks!

Jake
Re: WTP Jar Creation (Automatic Jar Signing) [message #559649 is a reply to message #559508] Fri, 17 September 2010 14:00 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 9/16/2010 6:08 PM, Jake wrote:
> I'm bumping this after...9 months. I moved away from the project and
> have come back to it and Googling turns up this post as the #1 hit. So?
> I can't use Eclipse with signed jars?
>
> Thanks!
>
> Jake

In the WTP Tomcat support prior to WTP 3.2, that support was hard coded
to assume any dependent utility projects were jars used on the server
and were unconditionally built into WEB-INF/lib during publishing. You
can't put applet jars in WEB-INF/lib because WEB-INF is inaccessible to
browsers. Now with the Deployment Assembly page, you can modify the
deploy path to place the built jar somewhere other than WEB-INF/lib.
However, as you note, signing isn't supported in the building of that
jar in the server publishing process. Since you are able to build that
jar in it's own project, including the signing, you should be able at
add a reference to the already built jar to the webapp project and set
the deploy path to place it in the appropriate location in the webapp's
content. That should accomplish what you want.

Cheers,
Larry
Previous Topic:wsdl to java
Next Topic:adding custom JavaScript library to JSDT
Goto Forum:
  


Current Time: Thu Apr 25 04:46:42 GMT 2024

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

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

Back to the top