Netbeans Weblogic web.xml Servlet

时间:2017-04-21 18:57:50

标签: java netbeans weblogic

我使用weblogic作为服务器。但我想我是在做web.xml的错误部分。所以它没有部署

netbeans image(image-1)

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee           http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

    <servlet>
  <servlet-name>ServletServlet</servlet-name>
  <servlet-class>com.mrkcn.servlet.LoginServlet</servlet-class>
</servlet>
<servlet-mapping> 
<servlet-name>ServletServlet</servlet-name>
  <url-pattern>/myservlet/*</url-pattern>
</servlet-mapping>

    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
</web-app>
  

该部分在删除时不会出错   netbeans image (image-2)

weblogic.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.8/weblogic-web-app.xsd">
      <jsp-descriptor>
        <keepgenerated>true</keepgenerated>
        <debug>true</debug>
      </jsp-descriptor>
      <context-root>/WebApplication1</context-root>
    </weblogic-web-app>


ant -f "/Users/emrekacan/Desktop/PROJELER/PROJELER/Java Dosyaları/NetBeansProjects/IndirimiKovala" -Dnb.internal.action.name=run -Ddirectory.deployment.supported=false -DforceRedeploy=false -Dnb.wait.for.caches=true "-Dbrowser.context=/Users/emrekacan/Desktop/PROJELER/PROJELER/Java Dosyaları/NetBeansProjects/IndirimiKovala" run
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Building jar: /Users/emrekacan/Desktop/PROJELER/PROJELER/Java Dosyaları/NetBeansProjects/IndirimiKovala/dist/IndirimiKovala.war
Distributing /Users/emrekacan/Desktop/PROJELER/PROJELER/Java Dosyaları/NetBeansProjects/IndirimiKovala/dist/IndirimiKovala.war
Deploying /Users/emrekacan/Desktop/PROJELER/PROJELER/Java Dosyaları/NetBeansProjects/IndirimiKovala/dist/IndirimiKovala.war
Deployment failed. The message was: java.lang.UnsupportedClassVersionError: com/mrkcn/servlet/LoginServlet : Unsupported major.minor version 52.0
/Users/emrekacan/Desktop/PROJELER/PROJELER/Java Dosyaları/NetBeansProjects/IndirimiKovala/nbproject/build-impl.xml:1058: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 15 seconds)

0 个答案:

没有答案