Forwarding JSP from NSAPI to WebLogic

Does anyone know what the correct syntax is to forward a JSP from the
          NSAPI plugin to to WebLogic?
          I need to find out how it's coded in the obj.conf file for both single
          server and clustered servers.
          The examples in the WebLogic documentation does not seem to be working
          for me.
          Thanks
          Paul S. Burry
          Chief Technical Officer,
          Serapeion Technologies
          Voice: +1-415-350-0902
          Fax: +1-415-934-0747
          E-mail: [email protected]
          E-mail Pager: [email protected]
          

In obj.conf:
          Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl-proxy"
          WebLogicHost="hostname" WebLogicPort="7001"
          In file mime.types:
          type=text/jsp exts=jsp
          Robert Patrick <[email protected]> wrote in message
          news:[email protected]..
          > I have successfully used the ppath option with a pattern of "*.jsp" with
          > both single and clustered servers...
          >
          > Hope this helps,
          > Robert
          >
          > Paul Burry wrote:
          >
          > > Does anyone know what the correct syntax is to forward a JSP from the
          > > NSAPI plugin to to WebLogic?
          > > I need to find out how it's coded in the obj.conf file for both single
          > > server and clustered servers.
          > > The examples in the WebLogic documentation does not seem to be working
          > > for me.
          > >
          > > Thanks
          > > --
          > > Paul S. Burry
          > > Chief Technical Officer,
          > > Serapeion Technologies
          > > Voice: +1-415-350-0902
          > > Fax: +1-415-934-0747
          > > E-mail: [email protected]
          > > E-mail Pager: [email protected]
          >
          

Similar Messages

  • Opening a jsp from another server(Weblogic) from webdynpro running on WAS

    hi,
      I have an application deployed on weblogic and want that when i click on a link in webdynpro it should open my jsp page in a new window and i should be able to send some values to it also.
      there is one way i know of, that is like this:-
    IWDWindow newwindow = wdComponentAPI.getWindowManager().createExternalWindow("https://.../login?userid="userid"&pass="+pass,"header",false);
    newwindow.open();
    but in this case we are sending the parameters from URL like login id and password. I donot want to do that as the user can see this info on the browser. Is there any way in which i can send this user id and password to a jsp page/servlet without "url?..."
    thanks
    I mean i want it to act as a form submit or something like in servlets and jsp's

    Hi Venkat:
       There are couple of ways to achieve this:
    One of them are Pamita's approach, get details from her that how did she fixed the UserID\PassWd.
    The other best approach is use the AppIntegrator for the same, you can call any other web-applications into your own application. For AppIntg we create a system, where we can specify the UserID\PassWds too which is transparent to user.
    Hope this helps you.
    Thanks,
    Munna SAP.

  • WebLogic Server 7.0: Including another JSP from within a custom tag

    Hi all,
              has anyone made experience with including (ie. processing) a dynamic
              resource (JSP) from within a custom JSP tag?
              Using the following code inside doEndTag():
              pageContext.include("/templates/blub.jsp");
              throws a ServletException (Note: the JSP is a part of the web app
              which is deployed as war). Does it make a difference if the web
              application is warred up into and therefore include cannot resolve the
              specified relative URL?
              [Tomcat 4.1.10 doesn't have problems for that matter]
              The full stack trace is:
              javax.servlet.ServletException: java.lang.NullPointerException
              at com.foo.taglibs.template.InsertTag.doEndTag(InsertTag.java:55)
              at jsp_servlet._models.__index._jspService(__index.java:774)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              TIA,
              niko.
              

    Try the same code from an exploded web app.
              Niko Schmuck wrote:
              > Hi all,
              >
              > has anyone made experience with including (ie. processing) a dynamic
              > resource (JSP) from within a custom JSP tag?
              >
              > Using the following code inside doEndTag():
              >
              > pageContext.include("/templates/blub.jsp");
              >
              > throws a ServletException (Note: the JSP is a part of the web app
              > which is deployed as war). Does it make a difference if the web
              > application is warred up into and therefore include cannot resolve the
              > specified relative URL?
              > [Tomcat 4.1.10 doesn't have problems for that matter]
              >
              > The full stack trace is:
              >
              > javax.servlet.ServletException: java.lang.NullPointerException
              > at com.foo.taglibs.template.InsertTag.doEndTag(InsertTag.java:55)
              > at jsp_servlet._models.__index._jspService(__index.java:774)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              > at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
              > at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
              > at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
              > at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              >
              > TIA,
              > niko.
              Rajesh Mirchandani
              Developer Relations Engineer
              BEA Support
              

  • Problem with errorPage in page directive tag while proxying request from iPlanet to WebLogic

              Hi,
              We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the application server on different solaris machines. We have put our JSPs in the weblogic application server and proxy the requests from iplanet to weblogic.
              We are facing a problem with the errorPage in the 'Page Directive' tag of the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page directive tag. If we directly access the JSP from the WebLogic, and there is an system error, the error page specified in the JSP is getting displayed. But if we access the JSP from iPlanet and there is an system error, instead of displaying the error page, iPlanet is asking whether we want to download the file. If we say yes it downloads the actual JSP code itself. We have defined the mime types in obj.conf file as well as mime.types for the iPlanet.
              If anyone knows how this can be solved, it would be of great help
              Regards,
              Krish
              

    How did you configure the obj.conf file? proxy by mime type or ppath? It
              seems errorPage.jsp was not proxyed and treated as a unknown mime type.
              Krishnaraja <[email protected]> wrote in message
              news:3a372d79$[email protected]..
              >
              > Hi,
              >
              > We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the
              application server on different solaris machines. We have put our JSPs in
              the weblogic application server and proxy the requests from iplanet to
              weblogic.
              >
              > We are facing a problem with the errorPage in the 'Page Directive' tag of
              the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page
              directive tag. If we directly access the JSP from the WebLogic, and there is
              an system error, the error page specified in the JSP is getting displayed.
              But if we access the JSP from iPlanet and there is an system error, instead
              of displaying the error page, iPlanet is asking whether we want to download
              the file. If we say yes it downloads the actual JSP code itself. We have
              defined the mime types in obj.conf file as well as mime.types for the
              iPlanet.
              >
              > If anyone knows how this can be solved, it would be of great help
              >
              > Regards,
              > Krish
              

  • Can't read JSP from WAR file

              Hi, Everyone:
              The WAR really drives me crazy.
              everytime when i reach the jsp files in war, it throws exception:
              <I> <WebAppServletContext-skylos> Generated java file:
              C:\weblogic\myserver\_tmp_war\jsp_servlet\common\test.java
              <E> <WebAppServletContext-skylos> Servlet failed with Exception
              java.lang.NullPointerException
              at java.util.Hashtable.put(Hashtable.java:380)
              at weblogic.servlet.jsp.OneOffJspLoader.loadClass(JspStub.java:433)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
              i uses WLS5.1 SP6.
              my WAR is under /weblogic/myserver/ (i can load html from my war)
              thanks
              han
              

              i solved it.
              it is about relative path and absolute path.
              coz browser tries to search /common/checklogin.jsp
              from documentRoot.
              han
              "hansen" <[email protected]> wrote:
              >
              >i solved it.
              >
              >the reason is i didn't install SP6 correctly.
              >
              >but i got another question:
              >
              >everytime, i enter password and login name on login.jsp
              >page,and press "Login". it should call checkLogin.jsp. but
              >the browser asks me to "save it" or "open it".
              >
              >thanks
              >
              >han
              >
              >han
              >
              >
              >"hansen" <[email protected]> wrote:
              >>
              >>Hi, Everyone:
              >>
              >>The WAR really drives me crazy.
              >>
              >>everytime when i reach the jsp files in war, it throws exception:
              >>
              >><I> <WebAppServletContext-skylos> Generated java file:
              >>
              >> C:\weblogic\myserver\_tmp_war\jsp_servlet\common\test.java
              >>
              >><E> <WebAppServletContext-skylos> Servlet failed with Exception
              >>
              >>java.lang.NullPointerException
              >>
              >> at java.util.Hashtable.put(Hashtable.java:380)
              >>
              >> at weblogic.servlet.jsp.OneOffJspLoader.loadClass(JspStub.java:433)
              >>
              >> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
              >>
              >>i uses WLS5.1 SP6.
              >>
              >>my WAR is under /weblogic/myserver/ (i can load html from my war)
              >>
              >>thanks
              >>
              >>han
              >
              

  • Newbie: Trying to 'call' JSP from CFML (example doesn't work)

    Hi,
    I am (really) just getting started with CFML, so I got ColdFusion 8 Developer deployed onto a GlassFish 3.1.1 server.
    I put a copy of a small hello.cfm into the <GF_DOMAIN>/applications/cfusion/ directory, and when I point a browser to http://<host>:8080/cfusion/hello.cfm, I get the "Hello world".
    So next, I'm trying to 'call' a JSP from a CFML page, and I found this example:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Java_6.html
    I put a copy of the CFML at cfusion/hellojsp.cfm:
    <cfapplication name="myApp" sessionmanagement="yes">
    <cfscript>
    Request.myVariable = "This";
    Session.myVariable = "is a";
    Application.myVariable = "test.";
    GetPageContext().include("hello.jsp?name=Bobby");
    </cfscript>
    and also created a cfusion/hello.jsp per the above link:
    <%@page import="java.util.*" %>
    <h2>Hello <%= request.getParameter("name")%>!</h2>
    <br>Request.myVariable: <%= request.getAttribute("myVariable")%>
    <br>session.myVariable: <%= ((Map)(session.getAttribute("myApp"))).get("myVariable")%>
    <br>Application.myVariable: <%= ((Map)(application.getAttribute("myApp"))).get("myVariable")%>
    In other words, in the <GF_DOMAIN>/applications/cfusion directory, I have:
    hellojsp.cfm
    hello.jsp
    However, if I point the browser to either http://<host>:8080/cfusion/hellojsp.cfm or http://<host>:8080/cfusion/hello.jsp, I get a 500 error.
    In the GlassFish server.log, I get the following:
    INFO: 03/13 21:17:24 Error [http-thread-pool-8080(5)] - coldfusion.jsp.JspWriterIncludeResponse.getStatus()I The specific sequence of files included or processed is: C:\glassfish3\glassfish\domains\domain1\applications\cfusion\hellojsp.cfm, line: 6
    Mar 13, 2012 9:17:24 PM org.apache.catalina.core.StandardWrapperValve log
    WARNING: StandardWrapperValve[CfmServlet]: PWC1406: Servlet.service() for servlet CfmServlet threw exception
    javax.servlet.ServletException: ROOT CAUSE:
    java.lang.AbstractMethodError: coldfusion.jsp.JspWriterIncludeResponse.getStatus()I
              at javax.servlet.http.HttpServletResponseWrapper.getStatus(HttpServletResponseWrapper.java:2 53)
              at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:356)
              at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:112)
              at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:465)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1562)
              at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:787)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
              at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
              at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:534)
              at coldfusion.runtime.NeoPageContext.include(NeoPageContext.java:2086)
              at coldfusion.runtime.NeoPageContext.include(NeoPageContext.java:2060)
              at sun.reflect.GeneratedMethodAccessor469.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at coldfusion.runtime.StructBean.invoke(StructBean.java:511)
              at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2300)
              at cfhellojsp2ecfm1997599341.runPage(C:\glassfish3\glassfish\domains\domain1\applications\cf usion\hellojsp.cfm:6)
              at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
              at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
              at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
              at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
              at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
              at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
              at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
              at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
              at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
              at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
              at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
              at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
              at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
              at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
              at coldfusion.CfmServlet.service(CfmServlet.java:175)
              at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:343)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
              at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPi peline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)
              at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70 )
              at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPi peline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)
    Can anyone tell me what might be causing this problem?
    Thanks,
    Jim

    Hi,
    Sigh ... I thought I had this solved, and, in fact, I do get a correct output webpage now.
    However, if I use that small .cfm, with the .forward(), whenever I access it, I get an error/stacktrace:
    Mar 14, 2012 12:44:27 AM org.apache.catalina.core.StandardWrapperValve log
    WARNING: StandardWrapperValve[CfmServlet]: PWC1406: Servlet.service() for servlet CfmServlet threw exception
    javax.servlet.ServletException: ROOT CAUSE:
    java.lang.AbstractMethodError: coldfusion.jsp.JspWriterIncludeResponse.getStatus()I
              at javax.servlet.http.HttpServletResponseWrapper.getStatus(HttpServletResponseWrapper.java:2 53)
              at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:356)
              at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:112)
              at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:465)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1580)
              at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:787)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
              at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
              at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:534)
              at coldfusion.runtime.NeoPageContext.include(NeoPageContext.java:2086)
              at coldfusion.runtime.NeoPageContext.include(NeoPageContext.java:2060)
              at sun.reflect.GeneratedMethodAccessor473.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at coldfusion.runtime.StructBean.invoke(StructBean.java:511)
              at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2300)
              at cfhellojsp2ecfm1997599341.runPage(C:\glassfish3\glassfish\domains\domain1\applications\cf usion\hellojsp.cfm:6)
              at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
              at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
              at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
              at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
              at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
              at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
              at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
              at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
              at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
              at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
              at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
              at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
              at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
              at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
              at coldfusion.CfmServlet.service(CfmServlet.java:175)
              at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:343)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
              at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPi peline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)
              at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70 )
              at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPi peline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)
    Can anyone tell me what is causing that error?
    Thanks,
    Jim
    P.S.  If I change the .forward() to a .include(), I don't get an error...

  • Building HTML page with JSP from different applications

              Hi,
              we need to build a HTML page with 2 JSPs. If both JSP were in the same Application
              (Weblogic 8,1) there is no problem. But I have to use JSPs from differents web
              applications, each JSP is in different war files.
              How can I compose this page? How can I management the request object?
              thanks
              

    Your program print the whole jsp source code??
    This is your web server configuration problem.
    Your web server handle your jsp page like text file only.

  • Jsps from pageflow portlet in navigation (or from portlet to book pages)

    Hi all,
    I'm a Weblogic newbie. I was wondering if anyone could please tell me how to get the name or title of a jsp from a pageflow portlet in navigation?
    I have page1.jsp (title: "Step 1"), page2.jsp ("Step 2") and page3.jsp ("Step 3") in a page flow that goes from page1.jsp to page2.jsp to page3.jsp. This page flow is made into a portlet. This portlet is the ONLY thing on the page in the portal book and the ONLY way to get to page3 is from page2 and to get to page2 is from page1, although you can return to page1 at any point.
    I would like my navigation programming--the single level across the top--to show the name of the jsp that is showing or the title. I've seen how to get the book and the pages of the book in the navigation, but not how to get further than that.
    Has anyone else done this?
    Thanks so much in advance.

    Have you resolved this problem? I'm stuck at the same place.
    <br>
    Thnx, Rajiv

  • Accessing a jsp from excel

    Hi,
    I have a jsp page in my weblogic server(version 9.2). It simply sets a session variable when the user visits the page for the first time. Now i am trying to access this jsp from a excel file(I am providing the URL of the page as a hyperlink). But the page is getting processed twice.
    For example in my jsp I have the following code:
    <%
    System.out.println("Initially "+session.getAttribute("var"));
    session.setAttribute("var","JAVA");
    System.out.println("After setting"+session.getAttribute("var"));
    %>
    When I access this page from excel it is printing the following in console:
    Initially null
    After settingJAVA
    Initially null
    After settingJAVA
    As you can see the statements are getting printed twice.
    Can any one explain the reason for such a behaviour?
    Edited by: gopi_3nath on Apr 3, 2008 4:35 AM

    Just the same as normal HTML
    In child window
    window.opener.parentfunctionname()

  • Executing a jsp from a servlet

    Hello all
    I am a starter to JSP.
    In an application I am developing, I have a servlet which receives a request from a form. If the user asks for a tabular representation of data (from the database), I want to use a JSP to display such a table since that way, I do not have to write all those out.printlns used in a servlet.
    So is there a way to either pass control to a jsp from a servlet? I want to pass a hashtable and some data to the jsp from the servlet.
    Please help with possible suggestions and code.
    thanks a lot....
    Mahesh :)

    There is the RequestDispatcher object to forward request to another resource (as servlet or jsp).
    If in your servlet you code:
    RequestDispatcher rd=getServletContext().getRequestDispatcher("your JSP URL");//instantiate a RequestDispatcher object
    //sets Hastable as request attribute
    request.setAttribute("yourAttributeName",yourHashtableName);
    rd.forward(request,response);//forwards control to jsp
    In your JSP you will retrieve Hashtable by following code:
    Hastable ht=(Hashtable)request.getAttribute("yourAttributeName");

  • How to Call a JSP from Java Script

    Hi,
    I want to call a jsp from Java Script.
    I am having IntelliJ IDEA 4.5 (IDE) and weblogic server.
    should i do anything on web.xml,weblogic.xml
    I have written one jsp, Java script.
    I want to call a jsp from Java script

    function submitf(){
    document.xyz.action ='ReportSave.jsp';
    document.xyz.method='POST';
    document.xyz.submit();
    <form name='xyz'>
    <input type='text' name='text1'>
    <input type='text' name='text2'>
    <input type='button' name='xx' value='submit' onclick= submitf()>
    </form>
    Is this what u want???
    Regards,
    RAHUL

  • Problem with servlet after migrating from OC4J to WebLogic 10.3

    I come across a problem when I was migrating from jDev 11g TP4 to production version in that step also server got changed from OC4J to webLogic.
    I am running java http servlet along other jspx pages. When everything was on OC4J there was no problem whit security on this servlet ( servlet was under same authorization automatically, and I was able to create new application module on this servlet by createRootApplicationModule
    ) but when I changed to WebLogic 10.3 I come across a numerous problems. First one is solved i managed to put the servlet under same authorization as jspx pages by
    *&lt;servlet&gt;*
    *&lt;servlet-name&gt;report&lt;/servlet-name&gt;*
    *&lt;servlet-class&gt;path.to.class&lt;/servlet-class&gt;*
    *&lt;security-role-ref&gt;*
    *&lt;role-name&gt;name&lt;/role-name&gt;*
    *&lt;role-link&gt;valid-users&lt;/role-link&gt;*
    *&lt;/security-role-ref&gt;*
    *&lt;/servlet&gt;*
    but when I trying to create new application module I get JBO-30003 error which is Caused by:
    oracle.adf.share.security.ADFSecurityAuthenticationException: JAAS login error.
    Invalid null input: name
    Has anybody any idea what I am doing wrong?
    Thank you for your help, Rok Kogov&scaron;ek

    for example:
    web.xml
    <security-role>
    <role-name>yourrole</role-name>
    </security-role>
    weblogic.xml
    <security-role-assignment>
    <role-name>yourrole</role-name>
    <principal-name>wlsuser</principal-name > <!-- wlsuser is define at wls console-->
    </security-role-assignment>

  • File Not found error when calling Form Post Method to a JSP from JSP Portlet

    I have built a set of JSP forms using post method to call other JSPs. Normally, the code looks like
    <form name="MyForm" action="MyJsp.jsp" method="post">
    I migrated the calling form containing this code to a portlet, but not the MyJsp.jsp. When I submit the form, I get a file not found in Jserv.log
    Exception:javax.servlet.ServletException: java.io.FileNotFoundException: D:\servlet\RegisterCompany.jsp (The system cannot find the file specified)
    [14/06/2001 13:59:59:679 PDT] JspServlet: unable to dispatch to requested page: Exception:javax.servlet.ServletException: java.io.FileNotFoundException: d:\oracle\isuites\apache\apache\MyJsp.jsp (The system cannot find the file specified)
    I notice that launching the calling jsp from a portlet, my opriginal context that uses ../Apache/Apache/htdocs is not being searched for the JSp. Why is this? Moreover, I try to set up an Alias in httpd.conf file to the this director and use it with the jsp in the action tag, but still get an error that my jsp servlets/Myjsp can't be found. Why is it insiting on looking at servlets context instead of htdocs.
    I have none of these issues outside of Portal30 using IAS.
    regard

    Initially, I couldn't do this unless I moved tghe jsp's up to the root directory of IAS, i.e ../Apache/Apache. Nomrally, htdocs is my doc directory for IAS. I could not do http:\\myUrl\htdocs\myJsp. If I tgried this, I got an error in Apache error logg that said can't find file ..\htdocs\htdocs\MyJsp.jsp.
    If I just tried the the URL http:\\myUrl\MyJsp.jsp with Jsp file in htdocs, I would get an error in the Jserve log that file d:\oracle\isuites\apache\apache\MyJsp.jsp could not be found. Once I moved the file MyJsp to Apache/Apache directory, it could be found using http:\\myUrl\MyJsp.jsp. Later, I delted these files and kept the ones in htdocs and they continued to work.
    I'm confused why launching pages through portal isn't consistant with Apache Standards. Where is the documentation that tells me how to configure context and aliases for pages launched from portal pages?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sue Vickers ([email protected]):
    David,
    Passing information using Portal is different than just using Apache/Jserv. Does it work in portal if you use the absolute path?
    <form name="MyForm" action="http://host.domain/MyJSP.jsp" method="post">
    Portal will not be on the same relative path as your Apache, so you may need to adjust your action somehow.
    Thanks,
    Sue<HR></BLOCKQUOTE>
    null

  • Calling an ejb from glassfish to weblogic server

    I'd like to be able to call a stateless session bean from a glassfishV3 server that is residing on weblogic 9.2.3. (Ejb spec 2.1 NOT 3.0 please)
    I've done this successfully from Tomcat to weblogic, but there are a few hiccups when trying this on glassfish.
    Basically what I've attempted is this:
    1.) I add these jvm properties to the glassfish startup:
    -Dorg.omg.CORBA.ORBClass=weblogic.corba.orb.ORB
    -Dorg.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
    -Djavax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
    -Djavax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
    2.) Copy weblogic.jar, tools.jar, and webservices.jar from the weblogic/server/lib directory to the glassfish lib/ext directory
    ...glassfish won't start then because of the weblogic.jar...
    3.) Move the weblogic.jar to the WEB-INF/lib directory of my war in glassfish.
    Now I try it and get:
    (I'm skipping some of the stacktrace at the start)
    .....java.lang.IllegalAccessError: tried to access method weblogic.kernel.KernelStatus.initialized()V from class weblogic.kernel.Kernel at weblogic.kernel.Kernel.ensureInitialized......
    I'm guessing that this has to do with the "weblogic kernel" not being initialized. So now I'm stuck.
    Am I going down the wrong path?
    I've also tried these other proposed solutions:
    1.) Changing the connection properties of the InitialContext to use these properties:
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://localhost:7001");
    env.put(Context.SECURITY_PRINCIPAL, "weblogic");
    env.put(Context.SECURITY_CREDENTIALS, "weblogic");
    2.) Using RMI over IIOP instead of T3.
    None of these with any luck.
    If anyone has done this successfully I'd appreciate some insight.
    Regards,
    Eric

    I'd like to be able to call a stateless session bean from a glassfishV3 server that is residing on weblogic 9.2.3. (Ejb spec 2.1 NOT 3.0 please)
    I've done this successfully from Tomcat to weblogic, but there are a few hiccups when trying this on glassfish.
    Basically what I've attempted is this:
    1.) I add these jvm properties to the glassfish startup:
    -Dorg.omg.CORBA.ORBClass=weblogic.corba.orb.ORB
    -Dorg.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
    -Djavax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
    -Djavax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
    2.) Copy weblogic.jar, tools.jar, and webservices.jar from the weblogic/server/lib directory to the glassfish lib/ext directory
    ...glassfish won't start then because of the weblogic.jar...
    3.) Move the weblogic.jar to the WEB-INF/lib directory of my war in glassfish.
    Now I try it and get:
    (I'm skipping some of the stacktrace at the start)
    .....java.lang.IllegalAccessError: tried to access method weblogic.kernel.KernelStatus.initialized()V from class weblogic.kernel.Kernel at weblogic.kernel.Kernel.ensureInitialized......
    I'm guessing that this has to do with the "weblogic kernel" not being initialized. So now I'm stuck.
    Am I going down the wrong path?
    I've also tried these other proposed solutions:
    1.) Changing the connection properties of the InitialContext to use these properties:
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://localhost:7001");
    env.put(Context.SECURITY_PRINCIPAL, "weblogic");
    env.put(Context.SECURITY_CREDENTIALS, "weblogic");
    2.) Using RMI over IIOP instead of T3.
    None of these with any luck.
    If anyone has done this successfully I'd appreciate some insight.
    Regards,
    Eric

  • Error in deploying entity beans - migration from JBoss to Weblogic 10.3.4

    Hi,
    I am migrating EJB2.x code from JBoss to Weblogic 10.3.4. As a first step, I am tyring to deploy just Entity beans. I get following error when deploying to server.
    'weblogic.application.ModuleException: Exception preparing module: EJBModule(myEJB.jar)
    Unable to deploy EJB: CollMetaData from myEJB.jar:
    [EJB:011017]Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
    There are 1 nested errors:
    java.lang.NullPointerException
         at weblogic.ejb.container.cmp.rdbms.finders.EjbqlFinder.setMethods(EjbqlFinder.java:288)
         at weblogic.ejb.container.cmp.rdbms.Deployer.processFinders(Deployer.java:744)
         at weblogic.ejb.container.cmp.rdbms.Deployer.readTypeSpecificData(Deployer.java:446)
         at weblogic.ejb.container.persistence.PersistenceType.setTypeSpecificFile(PersistenceType.java:506)
         at weblogic.ejb.container.persistence.PersistenceType.setupDeployer(PersistenceType.java:455)
         at weblogic.ejb.container.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:118)
         at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1214)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:442)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Can someone help me fixing the issue?
    I changed schema locations of descriptor files as suggested at http://download.oracle.com/docs/cd/E17904_01/web.1111/e13706/overview.htm#i1074199 (see the third category for '*Enterprise Bean 2.1*' in the listing Table 1-1). Alternatively, you may see the schema locations for EJB2.0 directly at http://download.oracle.com/docs/cd/E17904_01/web.1111/e13719/dd_reference.htm#EJBPG481

    JRE version in JBoss is 1.6.0_16. JVM in web logic is pointing to jrockit_160_22_D1.1.1-3 which is come in the package. It doesn't seem to be related to JVM version mismatch.
    I think it is an issue with definitions in weblogic-cmp-rdbms-jar.xml file. How should be the definition of entity-descriptor appear for entity bean which has finder methods in ejb-jar.xml?
    Please see the snippets from corresponding descriptor files below.
    ejb-jar.xml
    =========
    <entity>
    <display-name>EmpBean</display-name>
    <ejb-name>EmpBean</ejb-name>
    <local-home>LocalEmpBeanHome</local-home>
    <local>LocalEmpBean</local>
    <ejb-class>EmpBeanBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>EmpBean</abstract-schema-name>
    <cmp-field>
    <field-name>firstName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>lastName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>phone</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>address</field-name>
    </cmp-field>
    <primkey-field>lastName</primkey-field>
    <query>
    <query-method>
              <method-name>findByPrimaryKey</method-name>
                   <method-params>
                   <method-param>java.lang.String</method-param>
                   </method-params>
              </query-method>
              <ejb-ql>SELECT Object(o) FROM EmpBean o WHERE o.lastName= ?1</ejb-ql>
         </query>
    </entity>
    weblogic-jar.xml
    ============
    <weblogic-enterprise-bean>
    <ejb-name>EmpBean</ejb-name>
    <entity-descriptor>
         <pool>
              <max-beans-in-free-pool>20</max-beans-in-free-pool>
              <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
         </pool>
    <persistence>
    <persistence-use>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version>
    <type-storage>meta-inf/weblogic-cmp-rdbms-jar.xml</type-storage>
    </persistence-use>
    <finders-load-bean>true</finders-load-bean>
    </persistence>
    </entity-descriptor>
    <local-jndi-name>ejb/EmpBean</local-jndi-name>
    </weblogic-enterprise-bean>
    weblogic-cmp-rdbms-jar.xml
    ====================
    <weblogic-rdbms-bean>
    <ejb-name>EmpBean</ejb-name>
    <data-source-jndi-name>mysqlDS</data-source-jndi-name>
    <table-map>
    <table-name>emp</table-name>
    <field-map>
    <cmp-field>firstName</cmp-field>
    <dbms-column>first_namel</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>lastName</cmp-field>
    <dbms-column>last_name</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>phone</cmp-field>
    <dbms-column>phone</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>address</cmp-field>
    <dbms-column>address</dbms-column>
    </field-map>
    </table-map>
    <weblogic-rdbms-bean>
    Please ignore any typos that you may notice in above sample descriptions (because I just typed it here changing original names).
    When I try to deploy the application, I get error message as posted in my first post above in this thread. Please correct me if I am making any erros in descriptor files.
    Edited by: 839281 on Feb 25, 2011 10:55 AM
    Edited by: venkatp on Mar 1, 2011 9:31 AM

Maybe you are looking for

  • Let me reset my ----- SKYPE ---- password

    Okay so I don't know what the hell is going on with this messed up useless system you have going on here, but I got locked out of skype for some insane reason since I didn't change my password (hell it stopped on autoload!). And when I go to get my p

  • Looking for old Business Objects Library Article C2014432.asp

    I have a problem, post November 4th, and have found a pointer to a possible solution, or at least some information. But I cannot find it. The reference was to: http://support.businessobjects.com/library/kbase/articles/c2014432.asp That link, of cours

  • Ethernet Link in OS 10.5.4

    Dear Forum, Can someone please outline the proceedure for hooking up 2 computers, a G5 dual 1.8 Ghz Powermac and an intel Macbook Pro via ethernet? Both computers have OS 10.5.4 installed.To facilitate the transfer of software and files from one comp

  • Using Mavericks - Keychain does not pass the passwords to my iPad?  Any ideas on how to make it work?

    Does anyone kbnow how to have Keychain use passwords in my iOS device (iPad)?  I find my self writing down passowrds now which completely defeats the concept behind Keychain and iCloud, right?  Thanks for any help.

  • Manual serial number generation

    Hi       i have maintained the serial number profile for my material. Now i can maintained the serial number manully, with own nuber range........... please let me know the setting for this manula serial numebr creation