【发布时间】:2018-11-10 01:41:30
【问题描述】:
我需要在我的catalina.bat 文件中将-Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*" 添加到我的tomcat 中
rem Register custom URL handlers
rem Do this here so custom URL handles (specifically 'war:...') can be used in the security policy
set "JAVA_OPTS=%JAVA_OPTS% -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.activemq.SERIALIZABLE_PACKAGES=*"
但我仍然收到此错误
引起:java.lang.ClassNotFoundException:禁止类 mypackage.Something!这节课 不信任被序列化为 ObjectMessage 有效负载。请带走 查看http://activemq.apache.org/objectmessage.html 了解更多信息 有关如何配置受信任类的信息。
If I set this property in the JVM Arguments on Eclipse Tomcat Server it works.
所以我猜这不是设置属性。 有什么问题?
PS:我用catalina.bat run启动tomcat
【问题讨论】:
-
我的回答有帮助吗?见stackoverflow.com/help/someone-answers