Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Exception using LTW with signed jars
Exception using LTW with signed jars [message #72150] Fri, 29 August 2008 02:51 Go to next message
Eclipse UserFriend
Originally posted by: alexander0810.yahoo.de

Hello,

Weaving classes in a signed jar fails with a SecurityException while
trying to load the inner class "AjcClosure1" of a weaved class.


I have added following jars to the buildpath:
- JobTest.jar (jar with the aspect classes)
- aspectjlib.jar
- aspectjrt.jar

and added the vm argument -javaagent:" aspectjweaver.jar".

Signing the jar with the AspectJ classes has no effect.

Is there any opportunity to weave the classes without modifying the
signed jar?

Alexander

[AppClassLoader@92e78c] warning define generated class failed --
(SecurityException) class "com.mypackage.MyClass$AjcClosure1"'s signer
information does not match signer information of other classes in the
same package
class "com.mypackage.MyClass$AjcClosure1"'s signer information does not
match signer information of other classes in the same package
java.lang.SecurityException: class "com.mypackage.MyClass$AjcClosure1"'s
signer information does not match signer information of other classes in
the same package
at java.lang.ClassLoader.checkCerts(Unknown Source)
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.define Class(ClassLoaderWeavingAdaptor.java:745)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.access $100(ClassLoaderWeavingAdaptor.java:58)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor$1.acce ptClass(ClassLoaderWeavingAdaptor.java:129)
at
org.aspectj.weaver.tools.WeavingAdaptor$WeavingClassFileProv ider$1.acceptResult(WeavingAdaptor.java:732)
at org.aspectj.weaver.bcel.BcelWeaver.weaveAndNotify(BcelWeaver .java:1392)
at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:120 6)
at
org.aspectj.weaver.tools.WeavingAdaptor.getWovenBytes(Weavin gAdaptor.java:383)
at
org.aspectj.weaver.tools.WeavingAdaptor.weaveClass(WeavingAd aptor.java:270)
at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:78)
at
org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.tr ansform(ClassPreProcessorAgentAdapter.java:52)
at sun.instrument.TransformerManager.transform(Unknown Source)
at sun.instrument.InstrumentationImpl.transform(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.ipointsys.agent.server.AgentServer.<clinit>(SourceFile:1650)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.tanukisoftware.wrapper.WrapperStartStopApp.getMainMethod (WrapperStartStopApp.java:574)
at
org.tanukisoftware.wrapper.WrapperStartStopApp.<init>(WrapperStartStopApp.java:157)
at
org.tanukisoftware.wrapper.WrapperStartStopApp.main(WrapperS tartStopApp.java:731)

Initialization failed: 'java.lang.NoClassDefFoundError:
com/mypackage/MyClass$AjcClosure1'. Unable to initialize and start MyServer.
java.lang.NoClassDefFoundError:
com/ipointsys/agent/server/license/LicenseChecker$AjcClosure 1
at com.mypackage.MyServer.<clinit>(SourceFile:1650)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.tanukisoftware.wrapper.WrapperStartStopApp.getMainMethod (WrapperStartStopApp.java:574)
at
org.tanukisoftware.wrapper.WrapperStartStopApp.<init>(WrapperStartStopApp.java:157)
at
org.tanukisoftware.wrapper.WrapperStartStopApp.main(WrapperS tartStopApp.java:731)
Re: Exception using LTW with signed jars [message #72227 is a reply to message #72150] Tue, 16 September 2008 14:55 Go to previous messageGo to next message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
I would try posting to the aspectj-users mailing list about this, as not
many people check the mailing list...

Andy.
Re: Exception using LTW with signed jars [message #72243 is a reply to message #72227] Tue, 16 September 2008 14:56 Go to previous messageGo to next message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Oops, that should have said "not many people check the newsgroup..."
Re: Exception using LTW with signed jars [message #72260 is a reply to message #72227] Wed, 24 September 2008 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexander0810.yahoo.de

Hi Andy,

can you post me a link to that, so i can observe the discussion.

Thanks
Alexander

Andy Clement schrieb:
> I would try posting to the aspectj-users mailing list about this, as not
> many people check the mailing list...
>
> Andy.
>
>
Re: Exception using LTW with signed jars [message #72388 is a reply to message #72260] Wed, 22 October 2008 20:40 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Sorry for the delay, first time I've checked back with the newsgroup. i
keep forgetting since we use the mailing lists for most traffic.

The AspectJ mailing lists are here:
http://www.eclipse.org/aspectj/userlists.php

And the AJDT mailing list is here:
https://dev.eclipse.org/mailman/listinfo/ajdt-dev

Typical traffic is 15-30 posts a week across them I would say.

Andy.
Re: Exception using LTW with signed jars [message #599096 is a reply to message #72150] Tue, 16 September 2008 14:55 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
I would try posting to the aspectj-users mailing list about this, as not
many people check the mailing list...

Andy.
Re: Exception using LTW with signed jars [message #599103 is a reply to message #72227] Tue, 16 September 2008 14:56 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Oops, that should have said "not many people check the newsgroup..."
Re: Exception using LTW with signed jars [message #599114 is a reply to message #72227] Wed, 24 September 2008 12:07 Go to previous message
Eclipse UserFriend
Originally posted by: alexander0810.yahoo.de

Hi Andy,

can you post me a link to that, so i can observe the discussion.

Thanks
Alexander

Andy Clement schrieb:
> I would try posting to the aspectj-users mailing list about this, as not
> many people check the mailing list...
>
> Andy.
>
>
Re: Exception using LTW with signed jars [message #599163 is a reply to message #72260] Wed, 22 October 2008 20:40 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Sorry for the delay, first time I've checked back with the newsgroup. i
keep forgetting since we use the mailing lists for most traffic.

The AspectJ mailing lists are here:
http://www.eclipse.org/aspectj/userlists.php

And the AJDT mailing list is here:
https://dev.eclipse.org/mailman/listinfo/ajdt-dev

Typical traffic is 15-30 posts a week across them I would say.

Andy.
Previous Topic:inpath aspectpath and multiple projects
Next Topic:AJDT and APT processors in Eclipse
Goto Forum:
  


Current Time: Thu Mar 28 13:26:51 GMT 2024

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

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

Back to the top