BEA-000286 Failed to invoke startup class
Have created a class which implements T3StartupDef has a setServices and startup methods. Put inside a JAR which is the WLS 8.1 sp3 Classpath.
Have deployed the startup class from the WL Console;
Deployments | Startup & Shutdown. Given the class the full package name.
However when WLS starts I get;
<30-Sep-2004 17:57:46 o'clock BST> <Critical> <WebLogicServer> <BEA-000286> <Fai
led to invoke startup class "NOTiFYMonitorListener", java.lang.ClassNotFoundException: uk.co.notify.agent.NOTiFYMonitorListener
java.lang.ClassNotFoundException: uk.co.notify.agent.NOTiFYMonitorListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.
java:156)
at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:1
21)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassS
ervice.java:116)
at weblogic.t3.srvr.PostDeploymentStartupService.resume(PostDeploymentSt
artupService.java:63)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
Any pointers? Thanks
Thanks for that. Followed your instructions now get;
Your environment has been set.
C:\bea\weblogic81\server\bin>
C:\bea\weblogic81\server\bin>
C:\bea\weblogic81\server\bin>javap uk.co.notify.agent.NOTiFYMonitorListener
Compiled from "NOTiFYMonitorListener.java"
public class uk.co.notify.agent.NOTiFYMonitorListener extends java.lang.Object i
mplements uk.co.notify.ejb.utilities.NOTiFYConstants,weblogic.common.T3StartupDe
f{
static java.lang.Class class$uk$co$notify$agent$NOTiFYMonitorListener;
weblogic.management.runtime.LogBroadcasterRuntimeMBean logBroadcaster;
weblogic.management.MBeanHome mBeanHome;
static uk.co.notify.valueobjects.NotificationVO notificationVO;
static java.lang.String password;
weblogic.management.RemoteMBeanServer rmbs;
java.lang.String sDomainName;
static java.lang.String serverName;
static java.lang.String url;
static java.lang.String userName;
public uk.co.notify.agent.NOTiFYMonitorListener();
static java.lang.Class class$(java.lang.String);
public static void main(java.lang.String[]);
public void setServices(weblogic.common.T3ServicesDef);
public void startListening();
public java.lang.String startup(java.lang.String,java.util.Hashtable);
throws java/lang/Exception
Still get ClassNotFoundException. Is the JAR containing my NOTiFYListener class being loaded or not?
Similar Messages
-
Failed to invoke startup class "MyStartup Class"
Hi,
I configured StartUpClass.java in Weblogic server through Admin Console . Also I set the required jar files in the classpath of the server in WL_HOME\server\bin\startWLS.cmd.
This StartUPClass is written to initialize and create the minimum number of objects in the pool, needed for URLConnection using ObjectPooling API.
I am getting Exceptions while starting the server after deployment of the application. I am pasting the full stack trace.
<Feb 1, 2007 9:49:55 AM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.2_12-b03 from Sun Microsystems Inc.>
<Feb 1, 2007 9:50:10 AM IST> <Info> <Configuration Management> <BEA-150016> <This server is being started as the administration server.>
<Feb 1, 2007 9:50:10 AM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647
WebLogic XMLX Module 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647 >
<Feb 1, 2007 9:50:11 AM IST> <Notice> <Management> <BEA-140005> <Loading domain configuration from configuration repository at D:\bea\user_projects\domains\nessdomain\.\config.xml.>
<Feb 1, 2007 9:50:15 AM IST> <Notice> <Log Management> <BEA-170019> <The server log file D:\bea\user_projects\domains\nessdomain\myserver\myserver.log is opened. All server side log events will be written to this file.>
<Feb 1, 2007 9:50:18 AM IST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Feb 1, 2007 9:50:18 AM IST> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "myserver" for domain "nessdomain">
<Feb 1, 2007 9:50:31 AM IST> <Warning> <HTTP> <BEA-101248> <[Application: 'D:\MSM\Workspace\MSM2.0Jan9', Module: 'MSM31']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". (line 96, column 11).>
<Feb 1, 2007 9:50:31 AM IST> <Warning> <HTTP> <BEA-101248> <[Application: 'D:\MSM\Workspace\MSM2.0Jan9', Module: 'MSM31']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "weblogic-web-app" must match "(description?,weblogic-version?,security-role-assignment*,run-as-role-assignment*,reference-descriptor?,session-descriptor?,jsp-descriptor?,auth-filter?,container-descriptor?,charset-params?,virtual-directory-mapping*,url-match-map?,preprocessor*,preprocessor-mapping*,security-permission?,context-root?,wl-dispatch-policy?,servlet-descriptor*,init-as*,destroy-as*)". (line 23, column 20).>
<Feb 1, 2007 9:50:35 AM IST> <Critical> <WebLogicServer> <BEA-000286> <Failed to invoke startup class "MyStartup Class", java.lang.ClassNotFoundException: com.helio.msm.ws.util.StartUpClass
java.lang.ClassNotFoundException: com.helio.msm.ws.util.StartUpClass
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:156)
at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
at weblogic.t3.srvr.PostDeploymentStartupService.resume(PostDeploymentStartupService.java:63)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
>
<Feb 1, 2007 9:50:36 AM IST> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'D:\j2sdk1.4.2_12\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\j2sdk1.4.2_12\bin;c:\windows\system32;C:\apache-ant-1.6.5\bin;'
>
<Feb 1, 2007 9:50:36 AM IST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "myserver" for domain "nessdomain" running in Development Mode>
<Feb 1, 2007 9:50:36 AM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<Feb 1, 2007 9:50:36 AM IST> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*>
<Feb 1, 2007 9:50:55 AM IST> <Warning> <Socket> <BEA-000402> <There are: 5 active sockets, but the maximum number of socket reader threads allowed by the configuration is: 4. You may want to alter your configuration.>
Please help me in resolving this problem. I need it asap
Thanks,
DharaniI should be more specific and have a bit more to add....
We have our app in an .ear file. I find that when I put the startup
classes in a seperate directory which is in the classpath specified in the
startWeblogic.cmd file they will be run on startup. I don't think I should
have to do this since these files exist in the ear file. I think this is
causing other problems too such as an illegalAccessError I get when an EJB
tries to load a class which was previously accessed by the startup classes.
Thanks,
Steve
Steve Snodgrass wrote:
Hi,
I am beggining to upgrade our app from Weblogic 5.1 to 6.0. So far it
has been progressing nicely and everything works with one exception. I
can not get the start up classes to run. I get the following exception:
<Failed to invoke startup class "MyStartup Class",
java.lang.ClassNotFoundException:
followed by my fully qualified class name. The class is reference
elsewhere in the code and works fine. Is a seperate classpath used for
startup classes? If not why might Weblogic have a hard time finding my
class?
Thanks,
Steve -
Failed to invoke startup class "SOAStartupClass"
Hi all,
1. WLS domain (wls 10.3.5 on Linux, Middleware 11.1.1.5.0) is extended with OIM and SOA Suite.
2. AdminServer is started by wlst.sh script, node manager runs with StartScriptEnabled=true
wls_soa1 is up and running, but soa-infra fails to start with following error:
####<Feb 14, 2012 3:30:28 PM CET> <Critical> <WebLogicServer> <vfusion01.fss-group.com> <wls_soa1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1329229828020> <BEA-000286> <Failed to invoke startup
class "SOAStartupClass", java.lang.ClassNotFoundException: oracle.bpel.services.common.util.GenerateBPMCryptoKey
java.lang.ClassNotFoundException: oracle.bpel.services.common.util.GenerateBPMCryptoKey
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at weblogic.management.deploy.classdeployment.ClassDeploymentManager.invokeClass(ClassDeploymentManager.java:262)
at weblogic.management.deploy.classdeployment.ClassDeploymentManager.access$000(ClassDeploymentManager.java:54)
at weblogic.management.deploy.classdeployment.ClassDeploymentManager$1.run(ClassDeploymentManager.java:214)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.management.deploy.classdeployment.ClassDeploymentManager.invokeClassDeployment(ClassDeploymentManager.java:246)
at weblogic.management.deploy.classdeployment.ClassDeploymentManager.runStartupsBeforeAppDeployments(ClassDeploymentManager.java:149)
at weblogic.management.deploy.classdeployment.ClassDeploymentService.start(ClassDeploymentService.java:21)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
I have re-installed twice both SOA Suite and domain, but I always end up with this error.
The same problem has been already reported e.g. here: Fusion MIddleware 11g , but I haven't found any final solution yet.
I've tried to play also with permissions of ../Oracle_SOA1/soa/modules/oracle.rules_11.1.1/rules.jar, but without success.
Any idea how to solve this?
Thanks for support
DanielFCheck Can not start managed servers using Node Manager
hth,
Peter Paul -
Windows 2000
BEA WLS 8.1 SP1
Created a config based on the template for a WLS with Workshop - "cgServer".
Changed <configdir>/startWeblogic.cmd to include the extra classes I need to execute
my startup class.
Added 2 new servers via the Admin console (http://localhost:7001/) entitled "cgServer2"
and "cgServer3"
Added a cluster and added cgServer2 and cgServer3 to the cluster.
Targetted startup class to the cluster.
Stop everything.
Start cgServer via the startWeblogic.cmd script - OK.
Start cgServer2 via the startManagedWeblogic.cmd script - OK.
Start cgServer3 via the startManagedWeblogic.cmd script - OK.
BUT
if I try and start the managed servers via the admin console, each server reports
that it cannot find the startup class:
<11-Feb-2004 11:00:34 o'clock CET> <Critical> <WebLogicServer> <BEA-000286> <Failed
to invoke startup class "ClusteredMQJMSStartup", java.lang.ClassNotFoundException:
demo.MQJMSStartup
Failed to invoke startup class "ClusteredMQJMSStartup", java.lang.ClassNotFoundException.
What have I missed in the configuration of the Node Manager (I assume it is that)?
I want cgServer to be the admin server and cgServers 2 and 3 to be my application
servers, and I will not have everything on the same machine, so I need to use
the Admin console to manage the cluster and ind its managed-servers.
FYI - the same code with the same configuration for a single server (no cluster)
works fine.
Thanks in advance ... KSS
Check your Startup class code...Are u trying to read any "*.properties" file ?
It is possible that that particular properties file is present only in ManagedServer1 Box and Not in the ManagedServer2 & 3 boxes. -
Failed to invoke startup class "JMX Startup Class", java.lang.NullPointerEx
Hi,
we have a clustered env of 3 managed servers, while starting managed servers in 2nd and 3rd managed servers i am getting following exception can any one sugguest me to get out of this exception
<Oct 15, 2010 2:35:45 PM EDT> <Critical> <WebLogicServer> <BEA-000286> <Failed to invoke startup class "JMX Startup Class", java.lang.NullPointerException
java.lang.NullPointerException
at com.bellsouth.erepair.egate.framework.jmx.PropertyCache.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Truncated. see log file for complete stacktrace
Regards
giriCheck your Startup class code...Are u trying to read any "*.properties" file ?
It is possible that that particular properties file is present only in ManagedServer1 Box and Not in the ManagedServer2 & 3 boxes. -
Failed to invoke Startup class
Hi,
Currently I have moved to weblogic 7 to 11g.
I am facing a problem while invoking a start up class which uses a Statless session bean.
I am getting the NameNotFOund exception while doing the bean look up with the proper JNDI name.
The same is working in weblogic 7.
Please suggest a way around.
Thanks in advance :)aarone wrote:
>
When I attempt to startup Weblogic, I get the error "Failed to invoke startup class
weblogic.jdbc.common.internal.JdbcStartup = weblogic.jdbc.common.internal.JdbcStartup
java.security.AccessControlException" access denied ( java.sql.SQLPermission setLog
I've checked and rechecked my properties file, class permission, class path........
Any ideas what to try next?edit your weblogic.policy file, and add this line to the last clause:
permission java.sql.SQLPermission "setLog";
Joe
PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced positions
for people who want to work with Java, XML, SOAP and E-Commerce infrastructure products.
We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose CA.
Send resumes to [email protected] -
Failed to invoke startup or shutdown class
In what situation I'll get the error "Failed to invoke startup/shutdown
class" as below :
java.lang.InstantiationException:
dsb/eBanking/backOffice/connect/HubDevicePool
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Compiled Code)
at weblogic.t3.srvr.StartupThread.runStartup
(StartupThread.java:180)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run
(PropertyExecuteThread.java:62)
I'm pretty sure that the class HubDevicePool has been coded (e.g.
implement T3xxxDef interface, with either the startup() or shutdown()
method) properly as I've another startup classes which work perfectly.
The class has been compiled without error, but it just cannot run when I
put it as either a startup or shutdown class for WebLogic.This is a very convinient feature of Weblogic startup service - if your class
does not implement T3StartupDef it will look for (using introspection)
public static void main(String[] args) in your startup class, and, if it is
there it will execute it.
Ricky Wong <[email protected]> wrote:
It works, many thanks !
However I still have one more question out of my head - I found that my
startup class doesn't need to implement the T3StartupDef and it still
works, however my shutdown class must implement the T3ShutdownDef
(otherwise I'll get ClassCastException).
In article <[email protected]>, [email protected] says...
Most likely the HubDevicePool does not have a public default constructor.
Ricky Wong <[email protected]> wrote:
In what situation I'll get the error "Failed to invoke startup/shutdown
class" as below :
java.lang.InstantiationException:
dsb/eBanking/backOffice/connect/HubDevicePool
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Compiled Code)
at weblogic.t3.srvr.StartupThread.runStartup
(StartupThread.java:180)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run
(PropertyExecuteThread.java:62)
I'm pretty sure that the class HubDevicePool has been coded (e.g.
implement T3xxxDef interface, with either the startup() or shutdown()
method) properly as I've another startup classes which work perfectly.
The class has been compiled without error, but it just cannot run when I
put it as either a startup or shutdown class for WebLogic.Dimitri
Dimitri -
I'm trying to setup a startup class. I am having some difficulties. In the startup I put the following:
NAME: MYSTARTUPCLASS
CLASSNAME: .\config\mydomain\applications\myStartUp.class
I also have tried some other variations of the above...but all come up with the same problem...
<Critical><WebLogicServer><Failed to invoke startup class "MYSTARTUPCLASS", java.lang.ClassNotFoundException:myStartUp.class>
Hi Chris,
The ClassName should contain fully qualified class name and not the path to the
class.U have the path to the class file as the value for classname .Give the class
name instead.
And make sure that ur class file is present in the system classpath.
pradeep
Chris <[email protected]> wrote:
>I'm trying to setup a startup class. I am having some difficulties.
> In the startup I put the following:
>
>NAME: MYSTARTUPCLASS
>CLASSNAME: .\config\mydomain\applications\myStartUp.class
>
>I also have tried some other variations of the above...but all come up
>with the same problem...
><Critical><WebLogicServer><Failed to invoke startup class "MYSTARTUPCLASS",
>java.lang.ClassNotFoundException:myStartUp.class>
-
StartUp Class in WLS 6.0
Hi,
I am beggining to upgrade our app from Weblogic 5.1 to 6.0. So far it
has been progressing nicely and everything works with one exception. I
can not get the start up classes to run. I get the following exception:
<Failed to invoke startup class "MyStartup Class",
java.lang.ClassNotFoundException:
followed by my fully qualified class name. The class is reference
elsewhere in the code and works fine. Is a seperate classpath used for
startup classes? If not why might Weblogic have a hard time finding my
class?
Thanks,
SteveI should be more specific and have a bit more to add....
We have our app in an .ear file. I find that when I put the startup
classes in a seperate directory which is in the classpath specified in the
startWeblogic.cmd file they will be run on startup. I don't think I should
have to do this since these files exist in the ear file. I think this is
causing other problems too such as an illegalAccessError I get when an EJB
tries to load a class which was previously accessed by the startup classes.
Thanks,
Steve
Steve Snodgrass wrote:
Hi,
I am beggining to upgrade our app from Weblogic 5.1 to 6.0. So far it
has been progressing nicely and everything works with one exception. I
can not get the start up classes to run. I get the following exception:
<Failed to invoke startup class "MyStartup Class",
java.lang.ClassNotFoundException:
followed by my fully qualified class name. The class is reference
elsewhere in the code and works fine. Is a seperate classpath used for
startup classes? If not why might Weblogic have a hard time finding my
class?
Thanks,
Steve -
Hi. I have installed SP6 on WLS 5.1 and have experienced some interesting
problems.
Originally I installed the patch to fix some ClassCast problems I had with
some servlets. This essentially fixed my problems until I installed a couple
of the servlets as a startup class as follows:
# Configure the ServletStartup class to run MyServlet's init()
# method at startup
# comment these out if the server hangs on startup!!!
weblogic.system.startupClass.StartFPInitializer=\
weblogic.servlet.utils.ServletStartup
weblogic.system.startupArgs.StartFPInitializer=\
servlet=FPInitializer
I get two errors:
1.) Related to my session beans:
Mon Nov 06 23:09:34 CST 2000:<E> <WebLogicServer> Failed to invoke startup
class
StartFPInitializer=weblogic.servlet.utils.ServletStartup
java.lang.NoClassDefFoundError: com.citadel.ivweb.fundses.FundLookupHome
at com.citadel.ivweb.servlet.Initializer.class$(Initializer.java:38)
at
com.citadel.ivweb.servlet.Initializer.refresh(Initializer.java:83)
2.) Related to a second startup with a very strangly worded exception (note
the class not being found):
Mon Nov 06 23:09:34 CST 2000:<E> <WebLogicServer> Failed to invoke startup
class
StartLoginHandler=weblogic.servlet.utils.ServletStartup
java.lang.NoClassDefFoundError: weblogic/html/HtmlPage
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
I can work around this as follows:
Install the sp6boot jar in the java_classpath and install the sp5 jar in the
wls_classpath.
Does anyone have any ideas?
Thanks,
Terry Trippany
Citadel Investment Group
ChicagoCould you try to register the HelloWorldServlet (mentioned below) and see if the
servlet gets instantiated at startup or not..
I would also recommend you to send a test case to support and follow-up with
them (if you
need immediate attention)..
Kumar
Terry Trippany wrote:
I can get sp6 to work but not with the startup classes.
The stacktrace clearly shows
java.lang.NoClassDefFoundError: com.citadel.ivweb.fundses.FundLookupHome
Do you have the above class in weblogic classpath?Yes, in fact the only way I can get around both problems is to mix the
service packs as listed below:
Install the sp6boot jar in the java_classpath and install the sp5 jar inthe
wls_classpath.This gets around the ClassCast problem and the ClassNotFound exceptions. I
have played around with the classpaths but this is the only thing that work
fore me.
Thanks,
Terry
Kumar Allamraju <[email protected]> wrote in message
news:[email protected]...
1) I just tried in SP6 and it works fine for me.
# Here we register the myservletclass servlet class
weblogic.httpd.register.MyServlet=examples.servlets.HelloWorldServlet
# Configure the ServletStartup class to run MyServlet's init() method
at startup
weblogic.system.startupClass.StartMyServlet=\
weblogic.servlet.utils.ServletStartup
weblogic.system.startupArgs.StartMyServlet=servlet=MyServlet
The stacktrace clearly shows
java.lang.NoClassDefFoundError: com.citadel.ivweb.fundses.FundLookupHome
Do you have the above class in weblogic classpath?
Does the same thing works fine with SP5?
Kumar
Terry Trippany wrote:
Hi. I have installed SP6 on WLS 5.1 and have experienced some
interesting
problems.
Originally I installed the patch to fix some ClassCast problems I hadwith
some servlets. This essentially fixed my problems until I installed acouple
of the servlets as a startup class as follows:
# Configure the ServletStartup class to run MyServlet's init()
# method at startup
# comment these out if the server hangs on startup!!!
weblogic.system.startupClass.StartFPInitializer=\
weblogic.servlet.utils.ServletStartup
weblogic.system.startupArgs.StartFPInitializer=\
servlet=FPInitializer
I get two errors:
1.) Related to my session beans:
Mon Nov 06 23:09:34 CST 2000:<E> <WebLogicServer> Failed to invokestartup
class
StartFPInitializer=weblogic.servlet.utils.ServletStartup
java.lang.NoClassDefFoundError: com.citadel.ivweb.fundses.FundLookupHome
atcom.citadel.ivweb.servlet.Initializer.class$(Initializer.java:38)
at
com.citadel.ivweb.servlet.Initializer.refresh(Initializer.java:83)
2.) Related to a second startup with a very strangly worded exception(note
the class not being found):
Mon Nov 06 23:09:34 CST 2000:<E> <WebLogicServer> Failed to invokestartup
class
StartLoginHandler=weblogic.servlet.utils.ServletStartup
java.lang.NoClassDefFoundError: weblogic/html/HtmlPage
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
I can work around this as follows:
Install the sp6boot jar in the java_classpath and install the sp5 jar inthe
wls_classpath.
Does anyone have any ideas?
Thanks,
Terry Trippany
Citadel Investment Group
Chicago -
Failed to invoke end componentFailed to invoke method error
I am getting this error while invoking a web service in weblogic.
What is root cause of this error...?
Error Description:-
<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="code">
<code>Server
</code>
</part>
-<part name="summary">
<summary>Failed to invoke end componentFailed to invoke method
</summary>
</part>
-<part name="detail">
<detail>
<detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/>java.lang.NullPointerException
at org.tcs.billingeai.ws.allocateBillCycle.AllocateBillCycle.allocateBillcycle(Unknown Source)
at org.tcs.billingeai.ws.allocateBillCycle.BillCycleService.invokeAllocateBillCycle(Unknown Source)
at sun.reflect.GeneratedMethodAccessor496.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:91)
at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:68)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:127)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:84)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:60)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:124)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
</detail>
</detail>
</part>
</remoteFault>
</fault
Edited by: 911694 on Jun 25, 2012 1:02 PMThis is a very convinient feature of Weblogic startup service - if your class
does not implement T3StartupDef it will look for (using introspection)
public static void main(String[] args) in your startup class, and, if it is
there it will execute it.
Ricky Wong <[email protected]> wrote:
It works, many thanks !
However I still have one more question out of my head - I found that my
startup class doesn't need to implement the T3StartupDef and it still
works, however my shutdown class must implement the T3ShutdownDef
(otherwise I'll get ClassCastException).
In article <[email protected]>, [email protected] says...
Most likely the HubDevicePool does not have a public default constructor.
Ricky Wong <[email protected]> wrote:
In what situation I'll get the error "Failed to invoke startup/shutdown
class" as below :
java.lang.InstantiationException:
dsb/eBanking/backOffice/connect/HubDevicePool
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Compiled Code)
at weblogic.t3.srvr.StartupThread.runStartup
(StartupThread.java:180)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run
(PropertyExecuteThread.java:62)
I'm pretty sure that the class HubDevicePool has been coded (e.g.
implement T3xxxDef interface, with either the startup() or shutdown()
method) properly as I've another startup classes which work perfectly.
The class has been compiled without error, but it just cannot run when I
put it as either a startup or shutdown class for WebLogic.Dimitri
Dimitri -
Failed to invoke end componentFailed to invoke methodSQL Exception
Hi!
I have upgraded a web service from 8.1 to 9.2.3. However, I have gotten the attached runtime error. Could you please advise me how to resolve it? Thanks a lot.
Best Regards
May
In the Weblogic server 9.2.3, a datasource called JNDIDataSource has been created by using latest JTDS version (i.e. jtds-1.2.4.jar) with the following setting:
- Database Type = MS SQL Server
- Database Driver = Other
- JNDI Name: MSSQLDS
- DriverName: net.sourceforge.jtds.jdbc.Driver
In SampleOnlineDB.java
@org.apache.beehive.controls.api.bean.ControlExtension
@JdbcControl.ConnectionDataSource(jndiName = "MSSQLDS")
public interface SampleOnlineDB extends JdbcControl
// Sample database function. Uncomment to use
// static public class Customer
// public int id;
// public String name;
// * @jc:sql statement="SELECT ID, NAME FROM CUSTOMERS WHERE ID = {id}"
// Customer findCustomer(int id);
// Add "throws SQLException" to request that SQLExeptions be thrown on errors.
static final long serialVersionUID = 1L;
* @jc:sql statement::
* IF (select top 1 rtrim(ltrim(ipaddress)) from ipaddress ) is null
* BEGIN
* SELECT 'Y'
* END
* ELSE
* BEGIN
* SELECT 'N'
* END::
//Return 'Y' if the table is empty, else return 'N'
@JdbcControl.SQL(statement = "IF (select top 1 rtrim(ltrim(ipaddress)) from ipaddress ) is null BEGIN \tSELECT 'Y' END ELSE BEGIN \tSELECT 'N' END")
public String isIPAddressTableEmpty();
==========================================================
Here is the runtime error:
Failed to invoke end componentFailed to invoke methodSQL Exception while attempting to connect to database. java.sql.SQLException: null. Nested Exception: java.lang.NullPointerException at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:342) at weblogic.jdbc.jts.Driver.connect(Driver.java:181) at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359) at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.getConnectionFromDataSource(JdbcControlImpl.java:412) at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.getConnection(JdbcControlImpl.java:164) at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.onAquire(JdbcControlImpl.java:111) at org.apache.beehive.controls.system.jdbc.JdbcControlImplInitializer$_resourceContextResourceEventsEventAdaptor.onAcquire(JdbcControlImplInitializer.java:27) at org.apache.beehive.controls.runtime.bean.ResourceContextImpl.acquire(ResourceContextImpl.java:126) at org.apache.beehive.controls.runtime.bean.ResourceContextImpl.preInvoke(ResourceContextImpl.java:110) at org.apache.beehive.controls.runtime.bean.ControlBean.preInvoke(ControlBean.java:411) at org.apache.beehive.controls.runtime.bean.ControlBean.preInvoke(ControlBean.java:424) at database.SampleOnlineDBBean.isIPAddressTableEmpty(SampleOnlineDBBean.java:125) at webservice.AccessOnline.getCountry(AccessOnline.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:99) at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:64) at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:127) at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:85) at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80) at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66) at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44) at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:181) at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)This is a very convinient feature of Weblogic startup service - if your class
does not implement T3StartupDef it will look for (using introspection)
public static void main(String[] args) in your startup class, and, if it is
there it will execute it.
Ricky Wong <[email protected]> wrote:
It works, many thanks !
However I still have one more question out of my head - I found that my
startup class doesn't need to implement the T3StartupDef and it still
works, however my shutdown class must implement the T3ShutdownDef
(otherwise I'll get ClassCastException).
In article <[email protected]>, [email protected] says...
Most likely the HubDevicePool does not have a public default constructor.
Ricky Wong <[email protected]> wrote:
In what situation I'll get the error "Failed to invoke startup/shutdown
class" as below :
java.lang.InstantiationException:
dsb/eBanking/backOffice/connect/HubDevicePool
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Compiled Code)
at weblogic.t3.srvr.StartupThread.runStartup
(StartupThread.java:180)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run
(PropertyExecuteThread.java:62)
I'm pretty sure that the class HubDevicePool has been coded (e.g.
implement T3xxxDef interface, with either the startup() or shutdown()
method) properly as I've another startup classes which work perfectly.
The class has been compiled without error, but it just cannot run when I
put it as either a startup or shutdown class for WebLogic.Dimitri
Dimitri -
Startup classes in WL6.0
Hi everybody,
Is the use of T3StartupDef interface deprecated in
weblogic 6.0 for writing startup classes? If yes how do I write startup classes?
Thanx,
SunilOne feature of WebLogic startup classes is that you do not have to implement
T3StartupDef - if you class has static void main(String[] args) it will be
invoked.
Also, note that startup classes have to be in the system classpath, which
creates problems when they need to use application classes.
Sunil Naik <[email protected]> wrote:
Hi William,
Thanx for the explanation.I assume that use of T3StartupDef is not
deprecated and I'll go ahead with it.
thanx,
Sunil
"William Stewart" <[email protected]> wrote:
Startup classes using the T3StartupDef interface do work in WebLogic
6.0 - I am
just now porting a project from WL 4.5 to WL 6.0 and got it to work okay,
but
with these caveats:
(1) BEA's Javadoc documentation on the T3StartupDef interface is outdated
- it
mentions 'weblogic.properties', which no longer exists in WL 6.0 (replaced
by
config.xml and the Web-based Admin console).
(2) BEA's documentation for configuring startup classes in the Admin
console is
poor - for the 'Arguments' attribute, it doesn't specify how to format
arguments
for the startup class - you separate them with a comma like this:
ARG1=value1,ARG2=value2
(3) There is no documentation on how to write a Startup class in the
programming
section of BEA's documentation. It's very simple though; here is what
you do:
(a) Write a class that implements T3StartupDef.
(b) Give it a default, do-nothing constructor.
(c) Provide the interface's #setServices(T3ServicesDef) method - just
save the
parm in a field or something.
(d) Provide the interface's #startup(String, Hashtable) method - the
Hashtable
contains your arguments (set in the Admin console) and this is where
you put your
desired startup code.
"Sunil Naik" <[email protected]> wrote:
Hi everybody,
Is the use of T3StartupDef interface deprecated in
weblogic 6.0 for writing startup classes? If yes how do I write startup
classes?
Thanx,
Sunil
Dimitri -
TransportException - OSB 10gR3 Failed to invoke Service
Hi there,
We are getting several errors on my OSB environment, OSB is running into problems, ramdomly is shutting down!
Follow errors below :
####<Apr 29, 2011 1:15:25 AM GMT-03:00> <Error> <ALSB Alert Rule Engine> <rjux0087> <AdminServer> <pool-1-thread-1> <<anonymous>> <> <> <13040
50525306> <BEA-394004> <Failed to invoke action email that is part of alert destination AlertDestination ClaroEnterpriseMonitoring/ClaroAlertD
estination. Resource: ProxyService ClaroEnterpriseServices/Claro/ListarPacotesDisponiveisAssinante/v1/ListarPacotesDisponiveisAssinantePSv1. A
lert Rule Name: SLA Response.
com.bea.wli.sb.transports.TransportException: 501 Syntax error in return path - please go to http://www.xmailserver.test/smtp_errors.html to get more information about this error.
I didn´t find anything relevant on :
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/transports/TransportException.html
I was wondering if a specific service may cause the outage !
The service "ClaroEnterpriseServices/Claro/ListarPacotesDisponiveisAssinante/v1/ListarPacotesDisponiveisAssinantePSv1" is a flow. The service is highlighted in dashboard with alerts, but there is no clue.
Have you seen this before ?
I appeciate any help !
Thanks EdsonHi Edson,
Looks like there is some alert actions+ in the proxy - ClaroEnterpriseServices/Claro/ListarPacotesDisponiveisAssinante/v1/ListarPacotesDisponiveisAssinantePSv1
And this error is due to the same, looks like the alert destination configurations is having some issues.
Failed to invoke action email that is part of alert destination AlertDestination ClaroEnterpriseMonitoring/ClaroAlertD
estination. Resource: ProxyService ClaroEnterpriseServices/Claro/ListarPacotesDisponiveisAssinante/v1/ListarPacotesDisponiveisAssinantePSv1. A
lert Rule Name: SLA Response.
To confirm this out, I would suggest you can disable the alerting on the proxy service @ Operational Settings > Monitoring > SLA Alerts & Pipeline Alerts and see if the errors disappear.
Thanks,
Patrick -
Startup class : Context lookup for a Home fails in a new thread
Hi All,
I am having a funny problem with Weblogic Startup class.In the startup method,
I am creating an instance of InitialContext. I called look up in this context
for a bean's home. It works and it retuns the proper Home interface.
But, when I use the same InitialContext instance in a new thread, and again if
I call look up for the same bean's home, the server fails with a SecurityException.
I don't have any Role based Security for this bean.
Btw, I am using Weblogic 5.1 & SP7.
Any ideas or help, appreciated..
Thanks in Advance
Srikanth Goli
Here is the code.
public String startup(String name, Hashtable args) throws Exception {
InitialContext initialContext = null;
try {
initialContext = new InitialContext();
UserPreferencesHome userPreferencesHome =
(UserPreferencesHome)initialContext.lookup
(UserPreferencesHome.DEFAULT_URL);
//This prints Properly
System.err.println("StartupTest: userPrefsHome is " + userPreferencesHome);
} catch(Exception e) {
e.printStackTrace();
Thread th = new Thread(new TestThread(initialContext));
th.start();
return "ok";
class TestThread implements Runnable {
Context context;
public TestThread(InitialContext ctx) {
context = ctx;
public void run() {
try {
//This is failing
UserPreferencesHome userPreferencesHome1 =
(UserPreferencesHome)context.lookup
(UserPreferencesHome.DEFAULT_URL);
System.err.println("UserPreferencesHome1 in the thread is " + userPreferencesHome1);
} catch(Exception e) {
e.printStackTrace();
Here is the exception, I am getting
java.lang.SecurityException: User "guest" does not have Permission "lookup" base
d on ACL "weblogic.jndi.com.capgroup.btps".
at weblogic.security.acl.Security.logAndThrow(Security.java:372)
at weblogic.security.acl.Security.checkPermission(Security.java:254)
at weblogic.jndi.internal.NamingSecurityManagerImpl.checkPermission(Nami
ngSecurityManagerImpl.java:98)
at weblogic.jndi.internal.NamingSecurityManagerImpl.checkLookup(NamingSe
curityManagerImpl.java:45)
at weblogic.jndi.toolkit.BasicWLContext.resolveName(BasicWLContext.java:
737)
at weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:133)
at weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:574)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.capgroup.btps.server.TestThread.run(StartupTest.java:49)
at java.lang.Thread.run(Thread.java:484)Hi All,
I am having a funny problem with Weblogic Startup class.In the startup method,
I am creating an instance of InitialContext. I called look up in this context
for a bean's home. It works and it retuns the proper Home interface.
But, when I use the same InitialContext instance in a new thread, and again if
I call look up for the same bean's home, the server fails with a SecurityException.
I don't have any Role based Security for this bean.
Btw, I am using Weblogic 5.1 & SP7.
Any ideas or help, appreciated..
Thanks in Advance
Srikanth Goli
Here is the code.
public String startup(String name, Hashtable args) throws Exception {
InitialContext initialContext = null;
try {
initialContext = new InitialContext();
UserPreferencesHome userPreferencesHome =
(UserPreferencesHome)initialContext.lookup
(UserPreferencesHome.DEFAULT_URL);
//This prints Properly
System.err.println("StartupTest: userPrefsHome is " + userPreferencesHome);
} catch(Exception e) {
e.printStackTrace();
Thread th = new Thread(new TestThread(initialContext));
th.start();
return "ok";
class TestThread implements Runnable {
Context context;
public TestThread(InitialContext ctx) {
context = ctx;
public void run() {
try {
//This is failing
UserPreferencesHome userPreferencesHome1 =
(UserPreferencesHome)context.lookup
(UserPreferencesHome.DEFAULT_URL);
System.err.println("UserPreferencesHome1 in the thread is " + userPreferencesHome1);
} catch(Exception e) {
e.printStackTrace();
Here is the exception, I am getting
java.lang.SecurityException: User "guest" does not have Permission "lookup" base
d on ACL "weblogic.jndi.com.capgroup.btps".
at weblogic.security.acl.Security.logAndThrow(Security.java:372)
at weblogic.security.acl.Security.checkPermission(Security.java:254)
at weblogic.jndi.internal.NamingSecurityManagerImpl.checkPermission(Nami
ngSecurityManagerImpl.java:98)
at weblogic.jndi.internal.NamingSecurityManagerImpl.checkLookup(NamingSe
curityManagerImpl.java:45)
at weblogic.jndi.toolkit.BasicWLContext.resolveName(BasicWLContext.java:
737)
at weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:133)
at weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:574)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.capgroup.btps.server.TestThread.run(StartupTest.java:49)
at java.lang.Thread.run(Thread.java:484)
Maybe you are looking for
-
Problems With Auto Update of Migration Workbench.
I'm running v1.5.1 on MAC and am starting to look at migrating a MYSQL database to ORACLE. I wanted to make sure I had the latest updates so I used the "Check for Updates" function, which showed there were two updates available. Oracle Migration Work
-
Column level access in Crystal Report Server
<p>Hi,</p><p>I have three fields in my Crystal Report. The crystal report will be exported to PDF by my customised web application. The application has a built in user security and access control model. However if user 1 logs in he should see all the
-
Drag and drop doesn't work and also control C and control V
drag and drop doesn't work and also control C and control V
-
Adding Days to MCAL_DAY_DT in RPD to create a Clawback Dt
I am trying to add 150 days to my existing record for Posted On Date. The datatype is Date. I am willing to perform this operation in the RPD or Answers. Any suggestions?
-
Purging archivelogs on Primary and Standby
Hi all, 11.2.0.1 Aix 6.1 I am monitoring space usage in our FRA for both DG primary and standby. I want to purge all archivelogs once they have been applied to standby. What is the use of it anyway? I checked google and I found this procedure, kindl