Java.lang.NoSuchMethodError: setBasename
Hi All
I recently migrated to jsf 1.2 while trying to access the login page i get the following error
Can anyone help me out on this??
com.sun.faces.lifecycle.LifecycleImpl phase
WARNING: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@84a5c3) threw exception
javax.faces.FacesException: javax.servlet.ServletException: java.lang.NoSuchMethodError: setBasename
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:427)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:454)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: setBasename
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:324)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:422)
... 25 more
Caused by: java.lang.NoSuchMethodError: setBasename
at jsp_servlet.__login._jsp__tag1(__login.java:396)
at jsp_servlet.__login._jspService(__login.java:179)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:422)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:454)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
Edited by: user11096200 on Jun 24, 2009 5:06 AM
Thanks for the reply,
I tried rebuilding the application with JSF 1.2 jars in classpath ,but i get another exception and i'm using weblogic 10.1 MP1 and JSF1.2 that comes with weblogic 10.
com.sun.faces.lifecycle.LifecycleImpl phase
WARNING: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@8b24fa) threw exception
java.lang.ClassCastException: java.lang.String
at jsp_servlet.__login._jsp__tag1(__login.java:442)
at jsp_servlet.__login._jspService(__login.java:180)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:422)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:454)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3392)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Similar Messages
-
Hi,
I develop application on Jdeveloper 10.1.3.2 and it's working when I run on OC4J in Jdeveloper. But when I deploy on Oracle Application Server 10.1.3, I got error message like this
java.lang.NoSuchMethodError: oracle.adf.share.perf.StateTracker.isActive()Z
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:94)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Thanks in advance.I already install. The others application can run on this AS but it's develop on other version of Jdeveloper such as 10.1.3.1.
Actually, I used JAZN on my project but when I deploy on AS I got problem that user cannot log-in to the application (look like login is invalid but I already generate janzn-data.xml and orion-application.xml). I think the reason is AS will authen through OID. So, I remove JAZN from my project. After that when I deploy on AS, I got this error. -
Java.lang.NoSuchMethodError while invoking web service method
Hi, I have a web service which has two methods exposed as
A and B.
I deployed it on weblogic server (7.0 SP4) and fired teh request when I got this error:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring/>
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.NoSuchMethodError
I tried deploying the web service on another instance and there the method A was invoked but I got the same error when I tried invoking B.
I tried it on third instance and there both the methods were successfully invoked.
The methods A and B name start with capital letter (someone told me that method name should not start with capital letter but that does not hold good here)
Any idea why this starnge behavior of web service?Hi Guys,
I have solved the above issue by applying the PATCH 1 & PATCH 2 of the
BPEL 10.1.2 version .
Thanks
Kalyan -
Java.lang.NoSuchMethodError while running the Application on MI client
Hi Experts
During development I run my application through NWDS and worked perfect. But when I run my application only through MI client. It through error on my programmed methods: java.lang.NoSuchMethodError:
Any advice is highly appreciated!
MichalThanks for your reply!
I use MI 2.5 SP20 and that trace is:
Internal Servlet Error:
java.lang.NoSuchMethodError: com.sap.myApp.bean.TableViewBean.setAll(Ljava/lang/String;)V
Thanks for any advice -
Hello,
Im having trouble running a Web Dynpro Application. When running, the application is showing me the following exception,
java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
at pe.com.minsur.wd_po_ws.wd_po_ws_model.Wd_po_ws_Model.<init>(Wd_po_ws_Model.java:124)
at pe.com.minsur.wd_po_ws.wd_po_ws_app.comp.Wd_po_ws_Comp.wdDoInit(Wd_po_ws_Comp.java:120)
at pe.com.minsur.wd_po_ws.wd_po_ws_app.comp.wdp.InternalWd_po_ws_Comp.wdDoInit(InternalWd_po_ws_Comp.java:195)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
This is in the DoInit() method, In the line,
Wd_po_ws_Model wd_po_ws_ModelModel = new Wd_po_ws_Model();
It could be the METADATA or MODELDATA destination configuration?
Thanks
SUHello,
The problem is solved following these steps,
"NWDS IDE is in SP04 whereas the WebDynpro Runtime is in SP01. So yo have to upgrade your WebDynpro in WebAS to SP04.
All WebDynpro for Java patches are available on SAP Service Marketplace.Note 330793 explains how to download patches from SAP Service Marketplace. Note 1395865 explains how to find the Web Dynpro for Java related SCAs.
Update your system via JSPM.
Please refer the link to the official documentation for JSPM
http://help.sap.com/saphelp_nwpi711/helpdata/en/1f/c45b4211aac353e10000000a1550b0/frameset.htm
From WebDynpro perspective, we recommend you to apply both WD-RUNTIME.SCA and FRAMEWORK.SCA. So if any one of the archive is not mentioned in the 'SP Patch Level' tab, it is recommended to apply the same which is available in the service market place."
Regards
SU -
Hello,
I have SAP EH1 for SAP NWCE 7.1 and NWDS with the recent upgrade pack of WD. When I run my WD application the following exception ocurr,
java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
at pe.com.minsur.wd_test_esr.wdtestesr_model.Wdtestesr_Model.<init>(Wdtestesr_Model.java:240)
at pe.com.minsur.wd_test_esr.wdtestesr_app.comp.Wdtestesr_Comp.wdDoInit(Wdtestesr_Comp.java:111)
at pe.com.minsur.wd_test_esr.wdtestesr_app.comp.wdp.InternalWdtestesr_Comp.wdDoInit(InternalWdtestesr_Comp.java:445)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
My DoInit Method only have this code,
public void wdDoInit()
Wdtestesr_Model model = new Wdtestesr_Model();
Any ideas?
Regards
MGThe problem is that the logical destinations are not well configured.
-
Java.lang.NoSuchMethodError using beans and JSP
Hi,
I get a
java.lang.NoSuchMethodError: Unit.UnitBean.execSQL(Ljava/lang/String; Ljava/sql/ResultSet;
when i try to call that method from my jsp page. I can call all other methods in teh bean but I can't understand why it can't find execSQL when it finds every thing else.
Any help would be greatly appreciated.
Mike
Heres a copy of my java bean code:
package Unit;
import java.sql.*;
import java.io.*;
public class UnitBean
Connection con;
String error;
public boolean connect() throws ClassNotFoundException,SQLException
String StudentNumber = "xxx";
String strHost = "xxxx";
String strConnectURL = ("jdbc:postgresql://" + strHost + "/");
String strUser = "xxxx";
String strPassword = "xxxxx";
Class.forName("org.postgresql.Driver");
con = DriverManager.getConnection(strConnectURL, strUser, strPassword);
return true;
public void disconnect() throws SQLException
con.close();
public ResultSet execSQL(String sql)throws SQLException
Statement s = con.createStatement();
ResultSet rs = s.executeQuery(sql);
return rs;
public String test()
String Mike="HIHIHIHIHI";
return Mike;
}And the jsp code:
<%@ page language="java" contentType="text/html"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<jsp:useBean id="Unit" class="Unit.UnitBean" scope="page"/>
<html>
<head>
<title>Test My Bean!!!!???!!?!</title>
</head>
<body>
<%
String SQL ="Select * from unit where unitid='CMPS2B26'";
ResultSet rs =null;
try
Unit.connect();
rs = Unit.execSQL(SQL);
while(rs.next())
out.println(rs.getString("unitid"));
Unit.disconnect();
catch(Exception e)
out.println("<p>Problem with jsp code" +e);
%>
This is a jsp page.
<p><a href = "http://stuweb3.cmp.uea.ac.uk/~xxxx/index.html">Click here for home page</a>
</body>
</html>Yeah, that worked great, thanks a lot. I thought that JSP compiled when you changed it and then visited it, but i've tried that. I just ran ant stop start on my server and it's all working.
Thanks again :)
Mike -
Error when starting Enterprise Manager: java.lang.NoSuchMethodError
Hi,
When trying to access the EM i got Error 404--Not Found, so i went to start EM manually but i'm getting this error when trying to start the EM in weblogic 10.3.6 on Windows 7 64 bits:
####<12-10-2012 09:47:02 AM CST> <Warning> <Deployer> <Carlos-PC> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <28c4d4e1e4b85327:42e7543a:13b85623d16:-8000-00000000000001d1> <1355154422239> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused By: java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getLevel()Lorg/apache/log4j/Level;What should i do to solve this ?? :(
Regards
CarlosAt the admin console the error shown is the one from the warning, the error from log is:
####<12-10-2012 09:47:02 AM CST> <Error> <Deployer> <Carlos-PC> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <28c4d4e1e4b85327:42e7543a:13b85623d16:-8000-00000000000001c8> <1355154422236> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application 'em'.>
####<12-10-2012 09:47:02 AM CST> <Warning> <Deployer> <Carlos-PC> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <28c4d4e1e4b85327:42e7543a:13b85623d16:-8000-00000000000001d1> <1355154422238> <BEA-149004> <Failures were detected while initiating start task for application 'em'.>
####<12-10-2012 09:47:02 AM CST> <Warning> <Deployer> <Carlos-PC> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <28c4d4e1e4b85327:42e7543a:13b85623d16:-8000-00000000000001d1> <1355154422239> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused By: java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getLevel()Lorg/apache/log4j/Level;
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:215)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:190)
at org.apache.log4j.Category.forcedLog(Category.java:375)
at org.apache.log4j.Category.log(Category.java:838)
at oracle.sysman.util.logging.ApacheLogOperations.logp(ApacheLogOperations.java:251)
at oracle.sysman.util.logging.DualModeLogOperations.logp(DualModeLogOperations.java:244)
at oracle.sysman.emSDK.util.logging.Logger.logp(Logger.java:1104)
at oracle.sysman.emSDK.util.logging.Logger.log(Logger.java:810)
at oracle.sysman.util.logging.log4j.Log4jLogger.log(Log4jLogger.java:145)
at oracle.sysman.util.logging.log4j.Log4jLogger.debug(Log4jLogger.java:83)
at oracle.sysman.eml.app.ContextInitializer.storeOmsAdminOp(ContextInitializer.java:1727)
at oracle.sysman.eml.app.ContextInitializer.contextInitialized(ContextInitializer.java:1153)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1868)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) -
I am using WLS5.1 inside visualage environment. I am trying to run
a Simple EJB which connects to the database and executes two simple
queries. The client code is as shown below:
try{
Context ic = getInitialContext();
System.out.println("Initial Context created......"); java.lang.Object
objref = ic.lookup("simpleBean.AtmHome"); System.out.println("objref
created......");
AtmHome home = (AtmHome) PortableRemoteObject.narrow(objref, AtmHome.class);
System.out.println("home created......");
Atm atm = home.create();
System.out.println("atm created......");
atm.transfer(8, 9, 100000);
catch (NamingException ne)
ne.printStackTrace(System.out);
finally {
try {
ic.close();
System.out.println("Closed the connection");
catch (Exception e) {
System.out.println("Exception while closing context....." );
The above code executes fine for the first time but second time
it throws an exception "javax.naming.NamingException.
Root exception is java.lang.NoSuchMethodError"
javax.naming.NamingException. Root exception is java.lang.NoSuchMethodError
java.lang.Throwable()
java.lang.Error()
java.lang.LinkageError()
java.lang.IncompatibleClassChangeError()
java.lang.NoSuchMethodError()
void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
javax.naming.NameImpl(java.util.Properties)
javax.naming.CompositeName()
weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
weblogic.rmi.extensions.IncomingRequest)
void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
void weblogic.kernel.ExecuteThread.run()
--------------- nested within: ------------------
weblogic.rmi.ServerError: A RemoteException occurred in the server
method
- with nested exception:
[java.lang.NoSuchMethodError:
Start server side stack trace:
java.lang.NoSuchMethodError
java.lang.Throwable()
java.lang.Error()
java.lang.LinkageError()
java.lang.IncompatibleClassChangeError()
java.lang.NoSuchMethodError()
void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
javax.naming.NameImpl(java.util.Properties)
javax.naming.CompositeName()
weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
weblogic.rmi.extensions.IncomingRequest)
void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
void weblogic.kernel.ExecuteThread.run()
End server side stack trace
weblogic.rmi.extensions.WRMIInputStream weblogic.rmi.extensions.AbstractRequest.sendReceive()
java.lang.Object weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(java.lang.String)
java.lang.Object weblogic.jndi.toolkit.WLContextStub.lookup(java.lang.String)
java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
void simpleBean.AtmClient.main(java.lang.String [])
NamingException is caught....
I found out that it hangs at lookup function in the above code.
Please let me know if I am missing any environment settings.
Thanks
ShailajaThis problem is solved after installing service pack 8 for weblogic
5.1
-shailaja
"shailaja" <[email protected]> wrote:
>
I am using WLS5.1 inside visualage environment. I am trying
to run
a Simple EJB which connects to the database and executes
two simple
queries. The client code is as shown below:
try{
Context ic = getInitialContext();
System.out.println("Initial Context created......"); java.lang.Object
objref = ic.lookup("simpleBean.AtmHome"); System.out.println("objref
created......");
AtmHome home = (AtmHome) PortableRemoteObject.narrow(objref,
AtmHome.class);
System.out.println("home created......");
Atm atm = home.create();
System.out.println("atm created......");
atm.transfer(8, 9, 100000);
catch (NamingException ne)
ne.printStackTrace(System.out);
finally {
try {
ic.close();
System.out.println("Closed the connection");
catch (Exception e) {
System.out.println("Exception while closing context....."
The above code executes fine for the first time but second
time
it throws an exception "javax.naming.NamingException.
Root exception is java.lang.NoSuchMethodError"
javax.naming.NamingException. Root exception is java.lang.NoSuchMethodError
java.lang.Throwable()
java.lang.Error()
java.lang.LinkageError()
java.lang.IncompatibleClassChangeError()
java.lang.NoSuchMethodError()
void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
javax.naming.NameImpl(java.util.Properties)
javax.naming.CompositeName()
weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
weblogic.rmi.extensions.IncomingRequest)
void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
void weblogic.kernel.ExecuteThread.run()
--------------- nested within: ------------------
weblogic.rmi.ServerError: A RemoteException occurred in
the server
method
- with nested exception:
[java.lang.NoSuchMethodError:
Start server side stack trace:
java.lang.NoSuchMethodError
java.lang.Throwable()
java.lang.Error()
java.lang.LinkageError()
java.lang.IncompatibleClassChangeError()
java.lang.NoSuchMethodError()
void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
javax.naming.NameImpl(java.util.Properties)
javax.naming.CompositeName()
weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
weblogic.rmi.extensions.IncomingRequest)
void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
void weblogic.kernel.ExecuteThread.run()
End server side stack trace
weblogic.rmi.extensions.WRMIInputStream weblogic.rmi.extensions.AbstractRequest.sendReceive()
java.lang.Object weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(java.lang.String)
java.lang.Object weblogic.jndi.toolkit.WLContextStub.lookup(java.lang.String)
java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
void simpleBean.AtmClient.main(java.lang.String [])
NamingException is caught....
I found out that it hangs at lookup function in the above
code.
Please let me know if I am missing any environment settings.
Thanks
Shailaja -
Hi everyone,
Just now i tried to run the 'simple' example in an JAXRPC Security part in the JWSDP 1.4 tutorial but got the following error:
run-sample:
[echo] Running the simple.TestClient program....
[java] Service URL=http://localhost:8080/securesimple/Ping
[java] Exception in thread "main" java.lang.NoSuchMethodError: com.sun.xml.wss.configuration.SecurityConfigurationXmlReader.readJAXRPCSecurityConfigurationString(Ljava/lang/String;Z)Lcom/sun/xml/wss/configuration/JAXRPCSecurityConfiguration;
[java] at com.sun.xml.rpc.security.SecurityPluginUtil.<init>(SecurityPluginUtil.java:128)
[java] at simple.PingPort_Ping_Stub.<clinit>(PingPort_Ping_Stub.java:40)
[java] at simple.PingService_Impl.getPing(PingService_Impl.java:68)
[java] at simple.TestClient.main(TestClient.java:27)
Can anybody give me a clue?Vishal, thanks a lot for your reply. I used the App Server 2004Q4 beta and got the problem. When I switch to version 8.0.0_01 the things work well.
But now I'm trying to understand this example and creating my own simple web app using encryption feature. From the files in the example dicrectory I can figure out the security applied at client by examining client stub files generated by the wscompile in the asant gen-client task. But I wonder when security is added to the server side. Is it when we use wsdeploy with the model part specifiedin jaxrpc-ri.xml? What is the procedure to apply the security to the web service?
The last thing I want to ask is whether the deploytool bundled inside App Server can do the same things as ant task (eg. wsdeploy with some arguments). -
Exception occurred during event dispatching:java.lang.NoSuchMethodError
Hello,
We have upgraded to the latest Oracle Application Server version 10.1.2.3.0 and the webutil version is 1.0.6.
But we face the following error while accessing the web link. Following message captured from Java Console.
Please suggest if you have any solutions/idea about this error. Thanks !
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
Maximum size: 50 MB
Compression level: 0----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Downloading http://si02938.in.irt.com:7778/forms/java/frmall_jinit.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/frmwebutil.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/jacob.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/FileInformation.jar to JAR cacheDownloading cacheproxyHost=nullproxyPort=0connectMode=HTTP, native.
Forms Applet version is : 10.1.2.3
Exception occurred during event dispatching:java.lang.NoSuchMethodError at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:281) at oracle.forms.handler.UICommon.instantiate(Unknown Source) at oracle.forms.handler.UICommon.onCreate(Unknown Source) at oracle.forms.handler.JavaContainer.onCreate(Unknown Source) at oracle.forms.engine.Runform.onCreateHandler(Unknown Source) at oracle.forms.engine.Runform.processMessage(Unknown Source) at oracle.forms.engine.Runform.processSet(Unknown Source) at oracle.forms.engine.Runform.onMessageReal(Unknown Source) at oracle.forms.engine.Runform.onMessage(Unknown Source) at oracle.forms.engine.Runform.processEventEnd(Unknown Source) at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source) at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Edited by: user12233243 on Nov 16, 2009 10:28 PM
Edited by: user12233243 on Nov 16, 2009 10:29 PMhi
read the following configuration i hope it will help u.
How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
Solution
Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
here are steps to get a small test form running, using WebUtil 1.06.
Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
Feel free to copy this note to a text editor, and do a global find/replace on
[OraHome] with your actual value (no trailing slash). Then it is easy to
copy/paste actual commands to be executed from the note copy.
1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
2) Copy or move jacob.jar and jacob.dll
[JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
cd [JacobStage]
copy jacob.jar [OraHome]\forms\java\.
copy jacob.dll [OraHome]\forms\webutil\.
The Jacob staging area is no longer needed, and may be deleted.
3) Sign frmwebutil.jar and jacob.jar
Open a DOS command prompt.
Add [OraHome]\jdk\bin to the PATH:
set PATH=[OraHome]\jdk\bin;%PATH%
Sign the files, and check the output for success:
[OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
[OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
you may skip this step. Otherwise,
Create a schema to hold the WebUtil stored code, and privileges needed to
connect and create a stored package. Schema name "WEBUTIL" is recommended
for no reason other than consistency over the user base.
Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
out the EXIT statement, to be able to see whether the objects were created witout
errors.
Start SQL*Plus as SYSTEM, and issue:
CREATE USER webutil IDENTIFIED BY [password]
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
CONNECT webutil/[password]@[connectstring]
@[OraHome]\forms\create_webutil_db.sql
-- Inspect SQL*Plus output for errors, and then
CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
Reconnect as SYSTEM, and issue:
grant execute on webutil_db to public;
5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
to the CLASSPATH entry.
6) Start the OC4J instance
7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
It is important to generate the PLX, to avoid the FRM-40039 discussed in
Note 303682.1
If the PLX is not generated, the Webutil.pll library would have to be attached with
full path information to all forms wishing to use WebUtil. This is NOT recommended.
8) Create a new FMB.
Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
There is no need to Subclass the WebutilConfig object.
Attach the Webutil.pll Library, and remove the path.
Add an ON-LOGON trigger with the code
NULL;
to avoid having to connect to an RDBMS (optional).
Create a new button on a new canvas, with the code
show_webutil_information (TRUE);
in a WHEN-BUTTON-PRESSED trigger.
Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
the "Application Server URL" is empty.
Then append "?config=webutil" at the end, so you end up with a URL of the form
http://server:port/forms/frmservlet?config=webutil
10) Run your form.
If its Correct/Helpful please mark it thanks.
Sarah -
I am recieving the above error in a FileNet Content Manager environment. The full stack trace is:
Exception in thread "main" java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Z)Ljava/net/Socket;
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1195)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at javax.mail.Transport.send0(Transport.java:162)
at javax.mail.Transport.send(Transport.java:80)
at com.bearingpoint.utilities.EMail.send(EMail.java:171)
at com.bearingpoint.utilities.EMail.send(EMail.java:31)
at email.main(email.java:11)
I have spent many hours, fiddling with classpaths, ensuring that the mail.jar, mailapi.jar, smtp.jar, activation.jar are all from the same generation of JavaMail. With my classpath set correctly I can run a simple program constructed to just test whether the box can send out email from the command line.
The code for the program is:
public class email {
public email() {
public static void main (String args[]) {
try {
EMail.send("10.132.147.62", "[email protected]", "[email protected]", "test", "test");
catch (Exception e) {
System.err.println(e.toString());
Where EMail.send() is:
public static void send(
String mail_server_host,
String email_from,
String email_to,
String subject,
String message) throws AddressException, MessagingException, IOException {
send(mail_server_host,
(Authenticator)null,
new InternetAddress[] {new InternetAddress(email_from)},
new InternetAddress[] {new InternetAddress(email_to)},
(InternetAddress[])null,
(InternetAddress[])null,
subject,
message,
null,
null);
which calls:
public static void send(
String mail_server_host,
Authenticator authenticator,
InternetAddress[] addresses_from,
InternetAddress[] addresses_to,
InternetAddress[] addresses_cc,
InternetAddress[] addresses_bcc,
String subject,
String message,
InputStream[] attachments,
MimeType[] attachmentTypes) throws MessagingException,IOException {
Properties properties = new Properties();
properties.put("mail.smtp.host", mail_server_host);
MimeMessage msg = new MimeMessage(
Session.getInstance(properties, authenticator));
msg.addFrom(addresses_from);
msg.setRecipients(Message.RecipientType.TO, addresses_to);
msg.setRecipients(Message.RecipientType.CC, addresses_cc);
msg.setRecipients(Message.RecipientType.BCC, addresses_bcc);
msg.setSubject(subject);
BodyPart bpBody = new MimeBodyPart();
bpBody.setText(message);
Multipart mpMessageBody = new MimeMultipart();
if (attachments == null && attachmentTypes == null) {
mpMessageBody.addBodyPart(bpBody);
msg.setContent(mpMessageBody);
else if (attachments == null) {
bpBody.setContent(message, attachmentTypes[0].toString());
mpMessageBody.addBodyPart(bpBody);
msg.setContent(mpMessageBody);
else {
mpMessageBody.addBodyPart(bpBody);
for (int i=0; i<attachments.length;i++) {
bpBody = new MimeBodyPart();
DataSource dsAttachment = new ByteArrayDataSource(attachments, attachmentTypes[i].toString());
bpBody.setDataHandler(new DataHandler(dsAttachment));
bpBody.setFileName("attachment." + new MimeFileExtensions(attachmentTypes[i].getValue()).toString());
mpMessageBody.addBodyPart(bpBody);
msg.setContent(mpMessageBody);
Transport.send(msg);
As said before all .jar files are of the same generation, yet when I run FileNet and the underlying content engine, and try to send an email, I recieve this exception. I have run out of ideas, and any help would be appreciated.
Things I've tried (multiple times):
- Removing any old versions of the jar files and replace them with JavaMail 1.3.3_01
- Have the content engine specifically import the JavaMail jar files.
While I realize some of you may not know what FileNet is, perhaps you have come across this exception before. Any new ideas would be more then appreciated.
Thank you for your time.I haven't seen this error before so I need more detail to reproduce it.
It looks like you daisy chained calls to various static send() methods from various classes. Could you write a static main() for the class with the send() method actually doing the work? In the main() write the test case and compile it, test it and if it still doesnt work post it. Please include the import statements as it is germain to the solution.
Its much easier for me to help you if I don't have to recreate "FileNet" to reproduce your error.
As an alternative....
The following code I got from: http://javaalmanac.com/egs/javax.mail/SendApp.html?l=new
its simpler than you're code but gets the job done (without attachments).
I've tested it and it works with:
javac -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp.java
java -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp
Ran on Windows XP, Sun J2EE 1.4/Appserver Bundle
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class SendApp {
public static void send(String smtpHost, int smtpPort,
String from, String to,
String subject, String content)
throws AddressException, MessagingException {
// Create a mail session
java.util.Properties props = new java.util.Properties();
props.put("mail.smtp.host", smtpHost);
props.put("mail.smtp.port", ""+smtpPort);
Session session = Session.getDefaultInstance(props, null);
// Construct the message
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
msg.setSubject(subject);
msg.setText(content);
// Send the message
Transport.send(msg);
public static void main(String[] args) throws Exception {
// Send a test message
send("10.1.4.105", 25, "[email protected]", "[email protected]",
"test", "test message.");
} -
java.lang.NoSuchMethodError: java.lang.Float: method parseFloat(Ljava/lang/String;)F not found
WHAT WOULD MAKE THIS HAPPEN. THIS SEEMS TO WORK IN JDK1.3.1 BUT NOT IN BLACKDOWN 1.1.3_V3
THIS IS MY CODE:
try{
DecimalFormat dfp = new DecimalFormat( "0.00" );
if(!Price.equals("")) {
float MyFloat = Float.parseFloat(Price);
Price = dfp.format(MyFloat);
}catch(NumberFormatException nfe){
PriceValid = 1;This error says:
- There is no method called "parseFloat" that receives a String as parameter in class java.lang.Float.
Look the method "parseFloat" at the class java.lang.Float!! -
Java.lang.NoSuchMethodError:java/io/File:
hi all,
i have just a dbf file and no database server, can i still use the JDBC driver to make a connnection?
If yes, i put my dbf file in the Tomcat root directory and write con=DriverManager.getConnection("jdbc:DBF://localhost:8080/","","");
but it always returns an error
java.lang.NoSuchMethodError:java/io/File: method getCanonicalFile()Ljava/io/File ; not found
Anyone know what's wrong?
Below is the driver readme for the URL format:
URL format:
Direct Access:
jdbc:DBF:[/]/[DatabasePath]
For example: "jdbc:DBF:/." "jdbc:DBF:/../dbffiles"
Access by DBF Server: Skip it if you don't use RMI or JINI.
jdbc:DBF:[/][host][:port]/[DatabasePath]
Default host:localhost port:2129 DatabasePath:
For example: "jdbc:DBF://domain.com:3099/../dbffiles" if one DBFServer is run on the 3099 port of domain.com
*/We got a similar error the other day trying to grab the Meta-Data.
Once I took those lines out everything else worked fine. Ie our connection and loading code was fine.
It seems that not all methods are supported on all implementations of the jdbc/odbc drivers.
Our current issue has to do with having a lot of different databases, and not wanting to set up ODBC links to all of them (or wanting to find an easy way to do that). -
I am getting this xml parser error after migrating to weblogic7.0 from wl 6.1
I am using the sax parser. I am using the jaxp.jar and xalan.jar for compilation
as well as running the application. However I am also using the weblogic.jar for
compilation and runtime in the classpath. I am wandering if there are any changes
to the version of SAX parser which weblogic 7.0 is using. Does anybody has any
idea..
Thanks,
This is the error which I am getting on the server.
java.lang.NoSuchMethodError
at weblogic.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:356)
at weblogic.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:366)
at weblogic.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:190)
at weblogic.apache.xalan.processor.TransformerFactoryImpl.processFromNode(TransformerFactory
Impl.java:232)
at weblogic.apache.xalan.processor.TransformerFactoryImpl.processFromNode(TransformerFactory
Impl.java:331)
at weblogic.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImp
l.java:875)
at weblogic.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryI
mpl.java:757)
at weblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(WebLogicTransformerFactory.ja
va:195)
at weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.jaThe version of the xalan in weblogic7.0 is 2.2 transformer.
You can refer to the following upgrade guide.
Ajay
"sameer" <[email protected]> wrote in message
news:3e78d50e$[email protected]..
>
I am getting this xml parser error after migrating to weblogic7.0 from wl6.1
I am using the sax parser. I am using the jaxp.jar and xalan.jar forcompilation
as well as running the application. However I am also using theweblogic.jar for
compilation and runtime in the classpath. I am wandering if there are anychanges
to the version of SAX parser which weblogic 7.0 is using. Does anybody hasany
idea..
Thanks,
This is the error which I am getting on the server.
java.lang.NoSuchMethodError
atweblogic.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:356)
atweblogic.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:366)
atweblogic.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:190)
atweblogic.apache.xalan.processor.TransformerFactoryImpl.processFromNode(Trans
formerFactory
Impl.java:232)
atweblogic.apache.xalan.processor.TransformerFactoryImpl.processFromNode(Trans
formerFactory
Impl.java:331)
atweblogic.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transfor
merFactoryImp
l.java:875)
atweblogic.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transf
ormerFactoryI
mpl.java:757)
atweblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(WebLogicTransfor
merFactory.ja
va:195)
atweblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransfor
merFactory.ja
Maybe you are looking for
-
Hai all , Good eve, i have scenario like this Sales order is created 1st November for 200 toothpastes 100 brushes free of goods (2+1 free goods). At the time of delivery on 15th August you have shortage of brushes by 40. Offer closed on 15th August.
-
How Do You Transfer an iTunes Library to Another User on your Computer??
I am trying to transfer my iTunes library to another user on my computer so that I won't have to download all over again the dozens of CDs that I have already downloaded onto my computer. It is for someone else in my family who just got their own iPo
-
Cannot change location of catalog folder in Photoshop 2.0
I keep trying to edit the folder name for storing catalogs in the Edit/Preferences menu but each time I go to File/Catalog/Open it does not recognize my change and goes somewhere else.
-
JDCB Driver not doing data transformation on Julian dates and amount fields
Hi All, In our newly installed BI Publisher instance (10.1.3) is not doing any data transformation on JDE Julian dates and Decimals. I've read that these field values are supposed to be converted automatically. Is there some setting in the JDEJDBC dr
-
I am trying to update my iPad but it keeps telling me that i am not connected to the Internet...obviously I am. What am I doing wrong?