关于生成serialVersionUID时的错误
我写了一个POJO类,实现了Serializable时,用eclipse自动生成serialVersionUID时报错了,弄了好久了,不知道怎么解决.错误如下:
The following problem occurred : The archive : /powersns/powersns_rest_war/src/main/webapp/WEB-INF/classes which is referenced by the classpath ,does not exist .
我的.classpath 代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="src/main/webapp/WEB-INF/classes" path="src/main/java"/>
<classpathentry excluding="**" kind="src" output="src/main/webapp/WEB-INF/classes" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="src/main/webapp/WEB-INF/classes"/>
</classpath>
------解决方案--------------------
所引用的类路径不存在
你路径对么,编译了么
劝楼主别用WEBSPERE了
太大
用TOMCAT吧 方便好使便于掌握