You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by stephanos <st...@gmail.com> on 2010/11/09 14:28:26 UTC
java.lang.NoSuchMethodError: java/security/PrivateKey
Hi guys,
I have a Tapestry app that comunicates with Google via OAuth by using a
certificate. When I issue the call in the pages onActivate() I receive a
'java.lang.NoSuchMethodError: java/security/PrivateKey' error which is
strange because in unit testing it works fine.
Does anyone know how (if at all) this might be connected to Tapestry? I
couldn't find an explanation for this anywhere...
PS: using Win7 64-Bit, Tapestry 5.2.2, JDK 1.6_22 64 Bit, Tomcat 7.04, Scala
2.8.0
relevant part of the log:
13:19:57.991 [http-80-exec-3] ERROR org.apache.tapestry5.ioc.Registry -
com.example.shared.common.GDataAccess$.loadKey()Ljava/security/PrivateKey;
13:19:57.993 [http-80-exec-3] ERROR org.apache.tapestry5.ioc.Registry -
Operations trace:
13:19:57.994 [http-80-exec-3] ERROR org.apache.tapestry5.ioc.Registry - [ 1]
Triggering event 'activate' on signup/Config
13:19:58.011 [http-80-exec-3] ERROR o.a.t.s.T.RequestExceptionHandler -
Processing of request failed with uncaught exception:
com.example.shared.common.GDataAccess$.loadKey()Ljava/security/PrivateKey;
java.lang.NoSuchMethodError:
com.example.shared.common.GDataAccess$.loadKey()Ljava/security/PrivateKey;
at com.example.web.pages.signup.Config.doOAuthRequest(Config.scala:57)
~[Config.class:na]
at com.example.web.pages.signup.Config.onActivate(Config.scala:36)
~[Config.class:na]
at
com.example.web.pages.signup.Config$MethodAccess_onActivate_12c30c79673.invoke(Config$MethodAccess_onActivate_12c30c79673.java)
~[na:na]
at
org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52)
~[tapestry-core-5.2.2.jar:5.2.2]
at
org.apache.tapestry5.internal.transform.OnEventWorker$4.invokeEventHandlers(OnEventWorker.java:157)
~[tapestry-core-5.2.2.jar:5.2.2]
at
org.apache.tapestry5.internal.transform.OnEventWorker$4.advise(OnEventWorker.java:136)
~[tapestry-core-5.2.2.jar:5.2.2]
--
View this message in context: http://tapestry.1045711.n5.nabble.com/java-lang-NoSuchMethodError-java-security-PrivateKey-tp3256802p3256802.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: java.lang.NoSuchMethodError: java/security/PrivateKey
Posted by Christian Riedel <cr...@googlemail.com>.
Your lib is simply not in the classpath...
Did try to run your application using "mvn jetty:run" instead of using Tomcat? Maybe you missed to copy that .jar to WEB-INF/lib.
Or maybe your tests don't fail because they aren't using this PrivateKey class?
Am 09.11.2010 um 14:28 schrieb stephanos:
>
> Hi guys,
>
> I have a Tapestry app that comunicates with Google via OAuth by using a
> certificate. When I issue the call in the pages onActivate() I receive a
> 'java.lang.NoSuchMethodError: java/security/PrivateKey' error which is
> strange because in unit testing it works fine.
>
> Does anyone know how (if at all) this might be connected to Tapestry? I
> couldn't find an explanation for this anywhere...
>
> PS: using Win7 64-Bit, Tapestry 5.2.2, JDK 1.6_22 64 Bit, Tomcat 7.04, Scala
> 2.8.0
>
> relevant part of the log:
> 13:19:57.991 [http-80-exec-3] ERROR org.apache.tapestry5.ioc.Registry -
> com.example.shared.common.GDataAccess$.loadKey()Ljava/security/PrivateKey;
> 13:19:57.993 [http-80-exec-3] ERROR org.apache.tapestry5.ioc.Registry -
> Operations trace:
> 13:19:57.994 [http-80-exec-3] ERROR org.apache.tapestry5.ioc.Registry - [ 1]
> Triggering event 'activate' on signup/Config
> 13:19:58.011 [http-80-exec-3] ERROR o.a.t.s.T.RequestExceptionHandler -
> Processing of request failed with uncaught exception:
> com.example.shared.common.GDataAccess$.loadKey()Ljava/security/PrivateKey;
> java.lang.NoSuchMethodError:
> com.example.shared.common.GDataAccess$.loadKey()Ljava/security/PrivateKey;
> at com.example.web.pages.signup.Config.doOAuthRequest(Config.scala:57)
> ~[Config.class:na]
> at com.example.web.pages.signup.Config.onActivate(Config.scala:36)
> ~[Config.class:na]
> at
> com.example.web.pages.signup.Config$MethodAccess_onActivate_12c30c79673.invoke(Config$MethodAccess_onActivate_12c30c79673.java)
> ~[na:na]
> at
> org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52)
> ~[tapestry-core-5.2.2.jar:5.2.2]
> at
> org.apache.tapestry5.internal.transform.OnEventWorker$4.invokeEventHandlers(OnEventWorker.java:157)
> ~[tapestry-core-5.2.2.jar:5.2.2]
> at
> org.apache.tapestry5.internal.transform.OnEventWorker$4.advise(OnEventWorker.java:136)
> ~[tapestry-core-5.2.2.jar:5.2.2]
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/java-lang-NoSuchMethodError-java-security-PrivateKey-tp3256802p3256802.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org