0

私のRESTサービスでそれが何を意味するのかわかりません..最初のパッケージ(com.rest.employee.model)では機能しますが、2番目のパッケージ(com.rest.my.model)を呼び出すと、残りのサービス機能は機能しません'どうすればこれを解決できますか..

エラー 500 -- 内部サーバー エラー

com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170) at com.sun.jersey.spi.inject.Errors.postProcess(Errors) .java:136) で com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199) で com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:770) でcom.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:765) com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:489) com.sun. com.sun.jersey. spi.container.servlet.WebComponent.com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374) の init(WebComponent.java:210) com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer. java:557) で javax.servlet.GenericServlet.init(GenericServlet.java:240) で weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:337) で weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run で(StubSecurityHelper.java:288) で weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) で weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) で weblogic.servlet.provider で。 weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:98) weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:86)、weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)、weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java: 60) weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:34) で weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:652) で weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java: 593) weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:403) で weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:295) で:238) weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3363) の weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333) の weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) で weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) で weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220) で) weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146) で weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124) で weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564) で weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254) で weblogic.work.ExecuteThread.execute(ExecuteThread.java:295) で weblogic.work.ExecuteThread.run(ExecuteThread.java:254) で)

これが私のweb.xmlファイルコードです

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>jposRESTWebService</display-name>

  <description>web.xml for </description>  
    <session-config>    
        <session-timeout>10</session-timeout>    
    </session-config>    
    <mime-mapping>    
        <extension>html</extension>    
        <mime-type>text/html</mime-type>    
    </mime-mapping>    
    <mime-mapping>    
        <extension>json</extension>    
        <mime-type>application/json</mime-type>    
    </mime-mapping>        
    <mime-mapping>    
        <extension>txt</extension>    
        <mime-type>text/plain</mime-type>    
    </mime-mapping> 

    <servlet>
    <servlet-name>jersey-serlvet-a</servlet-name>
    <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
    <init-param>
      <param-name>com.sun.jersey.config.property.packages</param-name>
      <param-value>com.rest.my.model</param-value>
    </init-param>
  </servlet>     
  <servlet-mapping>
    <servlet-name>jersey-serlvet-a</servlet-name>
    <url-pattern>/myrest/*</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>jersey-serlvet</servlet-name>
    <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
    <init-param>
      <param-name>com.sun.jersey.config.property.packages</param-name>
      <param-value>com.rest.employee.model</param-value>
    </init-param>

  </servlet> 

<servlet-mapping>
    <servlet-name>jersey-serlvet</servlet-name>
    <url-pattern>/rest/*</url-pattern>
  </servlet-mapping>
</web-app>
4

0 に答える 0