- This topic has 7 replies, 2 voices, and was last updated 19 years, 7 months ago by
ksgetting.
-
AuthorPosts
-
ksgettingParticipantI have been using Tomcat 5.0 for some time now and everything works well. We have a new client that requires that our application run on Resin. I have thus far worked through several problems successfully, but am currently stuck. When I start the Resin server, I see approximately 100 errors coming from 2 of the jars we deploy to our web application:
[13:09:52.171] com.caucho.config.LineConfigException: C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jfreechart-0.9.6.jar(com/jrefinery/data/CategoryDataset.java):56: class CategoryDataset is public, should be declared in a file named CategoryDataset.java
[13:09:52.171] (source unavailable)
[13:09:52.171] C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jfreechart-0.9.6.jar(com/jrefinery/data/KeyedValues2D.java):48: class KeyedValues2D is public, should be declared in a file named KeyedValues2D.java
[13:09:52.171] (source unavailable)
[13:09:52.171] C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jfreechart-0.9.6.jar(com/jrefinery/data/Values2D.java):45: class Values2D is public, should be declared in a file named Values2D.java
[13:09:52.171] (source unavailable)
[13:09:52.171] C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jfreechart-0.9.6.jar(com/jrefinery/data/Dataset.java):61: class Dataset is public, should be declared in a file named Dataset.java
[13:09:52.171] (source unavailable)
[13:09:52.171] C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jfreechart-0.9.6.jar(com/jrefinery/data/DatasetChangeListener.java):52: class DatasetChangeListener is public, should be declared in a file named DatasetChangeListener.java
[13:09:52.171] (source unavailable)
[13:09:52.171] C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jfreechart-0.9.6.jar(com/jrefinery/data/DatasetChangeEvent.java):50: class DatasetChangeEvent is public, should be declared in a file named DatasetChangeEvent.java
[13:09:52.171] (source unavailable)
[13:09:52.171] C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jfreechart-0.9.6.jar(com/jrefinery/data/DatasetGroup.java):46: class DatasetGroup is public, should be declared in a file named DatasetGroup.java
[13:09:52.171] (source unavailable)
[13:09:52.171] C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jfreechart-0.9.6.jar(com/jrefinery/chart/JFreeChart.java):144: class JFreeChart is public, should be declared in a file named JFreeChart.java
[13:09:52.171] (source unavailable)
[13:09:52.171] C:\resin-3.0.14\deploy\WOW\WEB-INF\lib\jcommon-0.7.2.jar(com/jrefinery/JCommon.java):60: class JCommon is public, should be declared in a file named JCommon.java
[13:09:52.171] (source unavailable)
.
.All of the necessary jars are deployed to the lib directory. What;s with these errors?
Also, have you added support yet to deploy to the WEB-INF directory instead of “deploy”?
——————————-
My profile is as follows:What operating system and version are you running?
Windows XP, SP2What Eclipse version and build id are you using? (Help > About Eclipse Platform)
Version: 3.0.2
Build id: 200503110845– Was Eclipse freshly installed for MyEclipse?
Yes– Are any other external plugins installed?
No– How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
8What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
3.8.5What JDK version are you using to run Eclipse? (java -version)
1.4.2 (compiler compliance level 1.3)What JDK version are you using to launch your application server?
1.4.2What steps did you take that resulted in the issue?
– Start Resin serverWhat application server are you using?
Resin 3.0.14 (not Pro)Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
No
Scott AndersonParticipantAll of the necessary jars are deployed to the lib directory. What;s with these errors?
That’s a really good question. I haven’t seen anything like this before. Can you open the jars with WinZip or something and make sure the classes are in the jar under the correct path, based on their package declarations and that the archives haven’t become corrupt. Can you start Resin from the commandline to see if the results are any different? Can you take a war that works in your Tomcat install, drop it in Resin, start Resin from the commandline and see if that makes any difference? If it does, try leaving that deployed and starting Resin from MyEclipse. What did that do?
Also, have you added support yet to deploy to the WEB-INF directory instead of “deploy”?
You can deploy to whatever directory you like using the Custom Location deployment targets instead of one of the server targets.
ksgettingParticipantI tried manually starting the resin server, but hit the same error. I then downloaded a slightly newer version of those 2 jar files. I have not seen the problem reoccur yet, but that may be because I am not getting as far. I am having a lot of trouble with the redeploy. Not everything is getting copied out to the server. It seems to vary as to how much is copied over. Sometimes almost everything is copied. Sometimes the application folder is compledtely empty. And sometimes just a few of the files are copied. I am not seeing any kind of deployment error. I saw this happen once before I experienced the reported problem. Not sure what to make of it. I’ll try exiting eclipse again.
ksgettingParticipantAlso, where is the CustomLocation Deployment feature? Is it avaialble in 3.8.5?
ksgettingParticipantWhen I do a project clean, I noticed that class files appear, then for some reason deleted. Only the class files from my web project are remaining at this time. The dependent project class files are getting deleted during the process. Are we allowed to deploy to more than 1 server? Could that be causing me trouble. I also noticed that at least one of the field deployed to Resin has a lock left on it, causing redeploys to fail until I reboot.
ksgettingParticipantI undeployed both projects. Performed a clean of all projects. Deployed to the Resin 3 server. Still the same problem. It appears that only the class files from my web project remain on the Resin server. Most of my code is in a dependent java project. When I perform another project clean, all of the class files from the dependent projct appear briefly on the Resin server. But by the end of the clean cycle, they are deleted again.
ksgettingParticipantI believe I have fixed my deployment problem. I was pointing to the wrong dependent project in my web project (properties – project references). The newer versions of jcommon and jfreechart are also working without error. I can successfully start the Resin 3 server.
My only outstanding question is:
Where is the Custom Location Deployment feature? Is it available in 3.8.5? Or do I need to upgrade to 4.x.x? And is 4.x.x considered a stable environment for development?
ksgettingParticipantSpoke too soon. Not everything is being deployed. This is a problem I mentioned earlier before my properties were messed up. I keep hitting a java.lang.NoClassDefFoundError error because one of my inner class files is missing. I am noticing the error when I try to bring up my initial web page. Not all inner class files are missing. Just a few. If I redeploy to try to correct the problem, a different inner class file will be missing.
-
AuthorPosts