gpt4 book ai didi

java - multipart/form-data 和 java.lang.NoClassDefFoundError : java. rmi.server.UID 是受限制的类

转载 作者:太空宇宙 更新时间:2023-11-04 08:48:30 24 4
gpt4 key购买 nike

我有这个 jsp 页面。

<form method="post" action="addBook.do?reqCode=submit" enctype="multipart/form-data">
<input type="file" name="myfile" />
</form>

当我提交时,我收到此错误

java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted class. Please see the Google  App Engine developer's guide for more details.
at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
at org.apache.commons.fileupload.disk.DiskFileItem.<clinit>(DiskFileItem.java:103)
at org.apache.commons.fileupload.DefaultFileItemFactory.createItem(DefaultFileItemFactory.java:103)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:358)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:310)
at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:193)

我正在使用 struts-1.2.9.jar 、 common-io-1.3.2.jar 和 common-file-upload-1.2.1.jar

我什至没有为 Controller 编写代码。就用jsp,我得到了这个错误。任何帮助将不胜感激。

最佳答案

关于java - multipart/form-data 和 java.lang.NoClassDefFoundError : java. rmi.server.UID 是受限制的类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3872081/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com