For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 8 replies, 2 voices, and was last updated 19 years, 4 months ago by
Curt King.
-
AuthorPosts
-
I’ve got an EAR project that references a Java project. That Java project is packaged as a JAR file with the EAR when I export it.
The JAR file contains common classes that I use in my web app.
I made a change to one of these common classes — I added a method. The name of the method is public BigDecimal getTotalPaidForCourtByType(String, String).
When I attempt to call the method in a JSP, I get a java.lang.NoSuchMethodError.
[Servlet Error]-[<init> (I)V ]: java.lang.NoSuchMethodError: <init> (I)V java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85) java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:41) java/lang/IncompatibleClassChangeError.<init>(Ljava/lang/String;)V+1 (IncompatibleClassChangeError.java:34) java/lang/NoSuchMethodError.<init>(Ljava/lang/String;)V+1 (NoSuchMethodError.java:37) net/hctx/jp/jcisobjects/RemotePaymentList.getTotalPaidForCourtByType(Ljava/lang/String;Ljava/lang/String;)Ljava/math/BigDecimal org/apache/jsp/_ECommerceSummary._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)
I have cleaned all of my projects, I have rebuilt all of my projects, but to no avail.
I have opened up the EAR file and examined the enclosed JAR. The enclosed JAR does contain the updated method in the source.
What am I doing wrong?? Where should I begin to look?
Thanks,
CurtMay 5, 2006 at 11:06 am #251652
Riyad KallaMemberCurt,
What app server are you using? Some app servers require you to navigate to the administration console, and then install or deploy the EAR that MyEclipse places in the deployment dir. This step is where you create the deployment plan and the app server generates all necessary resources around the project and then “deploys” it into the running app server.If your app server was like this, chances are you need to redeploy your project from the admin console to get the classes updated.
May 5, 2006 at 12:04 pm #251661I’m on Websphere 5 for iSeries.
I’m not using the MyEclipse deployment tool — I’m exporting as an EAR file, FTPing it to my server, then running the console to update the app.
I have updated the app two different ways — web console and command line console. When that didn’t work, I tried completely uninstalling and reinstalling the app. That didn’t work, either.
Curt
May 5, 2006 at 1:10 pm #251668
Riyad KallaMemberCurt,
I’m sorry I can’t be more helpful. This is a web server issue as you said the class is infact in the archive and the archive is created by MyEclipse, past that, it’s up to the app server.Try uninstalling the app and restarting your app server, then reinstalling it I suppose. I’m not that versed in WebSphere.
May 5, 2006 at 1:13 pm #251669No problem. I thought you might have seen this kind of thing before.
Thanks anyway,
CurtMay 5, 2006 at 2:06 pm #251673A couple of things:
1) I’ve got an EAR project that references a Java project. That Java project is packaged as a JAR file with the EAR when I export it. Should there be a manifest file inside of my EAR project?
2) Should there also be a manifest file inside of my web module?
3) Which manifests should contain the Class-Path header that points to the JAR file?Thanks,
CurtMay 5, 2006 at 2:29 pm #251679
Riyad KallaMemberI don’t know off hand, I’ve asked another person to have a look.
May 5, 2006 at 4:36 pm #251687
Riyad KallaMemberAs it turns out, the only manifests you need MyEclipse will generate for you using the MyEclipse > New Module Manifests command.
May 5, 2006 at 10:34 pm #251692Great — thanks!
Curt
-
AuthorPosts