This discussion is archived
2 Replies Latest reply: Oct 3, 2011 1:28 PM by 856967 RSS

call Java class from JSP using beans - error

856967 Newbie
Currently Being Moderated
JSP page :-

<jsp:useBean id="integration" scope="application" class="integration.IntegrationServiceReverse" />

<%

integration.extractEBS();
%>

WEB.XML :--


<?xml version = '1.0' encoding = 'UTF-8'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
<servlet>
<servlet-name>integrationServiceReverse</servlet-name>
<servlet-class>integration.IntegrationServiceReverse</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>integration</servlet-name>
<jsp-file>leadGenerate.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>IntegrationServiceReverse</servlet-name>
<url-pattern>/IntegrationServiceReverse</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>leadGenerate</servlet-name>
<url-pattern>/leadGenerate</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>integration</servlet-name>
<url-pattern>integration.IntegrationServiceReverse</url-pattern>
</servlet-mapping>
<filter>
<filter-name>JpsFilter</filter-name>
<filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
<init-param>
<param-name>enable.anonymous</param-name>
<param-value>true</param-value>
</init-param>
</filter>
</web-app>

the class that am trying to call does the action stuff :---

public class IntegrationServiceReverse implements Servlet{

I Get the following Error :--



>
<Oct 3, 2011 3:58:32 PM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'RECO-PhaseI'.>
<Oct 3, 2011 3:58:32 PM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException:
     at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
     at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180)
     at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
     at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:518)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     Truncated. see log file for complete stacktrace
Caused By: weblogic.management.DeploymentException: [HTTP:101170]The servlet IntegrationServiceReverse is referenced in servlet-mapping /IntegrationServiceReverse, but not defined in web.xml.
     at weblogic.servlet.internal.WebAppServletContext.registerServletMapping(WebAppServletContext.java:1576)
     at weblogic.servlet.internal.WebAppServletContext.registerServlets(WebAppServletContext.java:1495)
     at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(WebAppServletContext.java:1258)
     at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1191)
     at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:453)


Please advice....

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points