简体   繁体   English

Eclipse的sysdeo tomcat插件可以为helios增加价值吗?

[英]does sysdeo tomcat plugin for eclipse add value to helios?

am developing a simple web app using jsps and servlets for tomcat 5.5. 我正在为Tomcat 5.5使用jsps和servlet开发一个简单的Web应用程序。
Currently using the Eclipse Helios and Dynamic Web Application Project. 当前正在使用Eclipse Helios和Dynamic Web Application Project。

For some reason it is a nightmare. 由于某种原因,这是一场噩梦。 We spent 4 hours today trying to deploy a servlet to tomcat. 今天,我们花了4个小时尝试将servlet部署到tomcat。 We kept getting errors like 我们不断收到类似的错误

"java.lang.UnsupportedClassVersionError: Bad version number in .class file"

we played around with everything trying to set the build compatibility to what tomcat had but couldn't make the stupid thing work. 我们尝试了所有尝试将构建兼容性设置为tomcat所具有的功能,但无法使愚蠢的东西起作用。 (Yes it is possible we're incompetent. any suggestions on what we can try looking at are apprecieated) (是的,我们可能没有能力。对我们可以尝试查看的内容提出的任何建议都值得赞赏)

My friend recalls from long time ago that he used this plugin 我的朋友回想起很久以前,他使用了这个插件
eclipsetotale_tomcatPlugin in order to create a "tomcat project". eclipsetotale_tomcatPlugin以便创建“ tomcat项目”。 My question is, does sysdeo tomcat plugin add any features that aren't already available in helios? 我的问题是,sysdeo tomcat插件会添加helios中尚未提供的任何功能吗?

thanks 谢谢

Not sure about sysdeo, but your error seems similar to bug 116713 : 不确定sysdeo,但您的错误似乎类似于bug 116713

If your default JRE is set to 1.4.2 and you have a Web project targetting Tomcat 5.5 (dynamic Web module version 2.4 and Java 5.0), when you tried to run a main program, you'll get the error (you mention). 如果您的默认JRE设置为1.4.2,并且您有一个针对Tomcat 5.5的Web项目(动态Web模块版本2.4和Java 5.0),则当您尝试运行主程序时,会出现错误(您提到)。

What is your default JRE set for your project? 您为项目设置的默认JRE是什么?

This scenario happens when the JVM running the code is older than the one the compiler generated code for. 当运行代码的JVM早于编译器为其生成代码的JVM时,就会发生这种情况。

Have you considered simply running Tomcat under Java 6? 您是否考虑过仅在Java 6下运行Tomcat? If that is not an option, please edit your question to include this and any other restrictions on this project. 如果这不是一个选择,请编辑您的问题以包括此项目以及此项目的任何其他限制。

We used to get that error often when we had Java version issues. 当我们遇到Java版本问题时,我们常常会得到该错误。 Eclipse environment and Windows environment ( java_home and path variables typically) are easy to overlook. Eclipse环境和Windows环境(通常是java_homepath变量)很容易被忽略。 Also, you can use javap -v Foo in same directory as Foo.class to find out its version. 另外,您可以在与Foo.class相同的目录中使用javap -v Foo来查找其版本。

Just use the Eclipse IDE for Java EE Developers, 206 MB edition of Eclipse . 只需使用Eclipse IDE for Java EE Developers, 206 MB版本Eclipse的 Eclipse IDE for Java EE Developers, 206 MB It has Tomcat and other webserver support built-in by default. 它默认具有内置的Tomcat和其他Web服务器支持。 Works like a charm! 奇迹般有效!

Sysdeo is an old, as far as I know obsolete, plugin. 据我所知,Sysdeo是一个古老的插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM