Hey Im trying to make a simple RESTful web service and when I deploy i get this error:
嘿我试图创建一个简单的RESTful Web服务,当我部署时,我收到此错误:
SEVERE: org.objectweb.asm.ClassWriter.<init>(Z)V
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
Im using Netbeans 6.8. Im trying to follow this guide: http://netbeans.org/kb/docs/websvc/rest.html
我使用Netbeans 6.8。我试图遵循这个指南:http://netbeans.org/kb/docs/websvc/rest.html
Any idea? Thanks for your time.
任何的想法?谢谢你的时间。
1 个解决方案
#1
0
That message means you have two different versions of the "ASM" library: one you're using to compile against, and one that's installed in the server. Make sure you use the same version in the server as you're developing with!
该消息意味着您有两个不同版本的“ASM”库:一个用于编译,另一个安装在服务器中。确保在开发过程中使用相同版本的服务器!
The last I knew, they distributed this library in jars with names like asm-3.0.jar
and asm-util-3.0.jar
, so that's what you need to search for.
我知道的最后一个,他们在jar中分发了这个库,其名称如asm-3.0.jar和asm-util-3.0.jar,这就是你需要搜索的内容。
#1
0
That message means you have two different versions of the "ASM" library: one you're using to compile against, and one that's installed in the server. Make sure you use the same version in the server as you're developing with!
该消息意味着您有两个不同版本的“ASM”库:一个用于编译,另一个安装在服务器中。确保在开发过程中使用相同版本的服务器!
The last I knew, they distributed this library in jars with names like asm-3.0.jar
and asm-util-3.0.jar
, so that's what you need to search for.
我知道的最后一个,他们在jar中分发了这个库,其名称如asm-3.0.jar和asm-util-3.0.jar,这就是你需要搜索的内容。