Calling a static method when starting the server???

Hi,
i wanted to call a static method of a java class,
whenever i start the server.
plz give some input on this.
thanks and regards
siva

Siva -- Can you be more specific as to the problem you are trying to solve (why do you want to call this static method,.)
The reason I ask is that there are some ways to make this happen but they may have limitations
that won't work for you. For instance, you can create a servlet that calls your class' static method and then make the
servlet be loaded on startup.
Thanks -- Jeff

Similar Messages

  • Security Error when starting the server - WPLS 7.0

    Security Error when starting the server - WPLS 7.0
    what may be the reason ...
    console :
    BUILD SUCCESSFUL
    Total time: 3 seconds
    Starting WebLogic Server...
    <May 30, 2005 4:22:15 PM IST> <Notice> <Management> <140005> <Loading configuration C:\cpDomain\.\config.xml>
    <May 30, 2005 4:22:18 PM IST> <Info> <Logging> <000000> <FileLogger Opened at C:\cpDomain\portalServer\weblogi
    c.portalServer.log>
    <May 30, 2005 4:22:21 PM IST> <Info> <Security> <090516> <The RoleMapper provider has preexisting LDAP data.>
    <May 30, 2005 4:22:21 PM IST> <Info> <Security> <090516> <The Authorizer provider has preexisting LDAP data.>
    <May 30, 2005 4:22:21 PM IST> <Info> <Security> <090143> <The weblogic keystore provider DefaultKeyStore in re
    alm cprealm cannot be used for private keys because its configured private key keystore file wlDefaultKeyStore
    .jks does not exist.>
    <May 30, 2005 4:22:21 PM IST> <Info> <Security> <090142> <The weblogic keystore provider DefaultKeyStore in re
    alm cprealm cannot be used for trusted (root) CAs because its trusted (root) CA keystore was not configured.>
    <May 30, 2005 4:22:21 PM IST> <Notice> <Security> <090082> <Security initializing using realm cprealm.>
    <May 30, 2005 4:22:21 PM IST> <Critical> <WebLogicServer> <000364> <Server failed during initialization. Excep
    tion:java.lang.SecurityException: Authentication for user weblogic denied
    java.lang.SecurityException: Authentication for user weblogic denied
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.doBootAuthorization(SecurityServiceMan
    agerDelegateImpl.java:411)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initialize(SecurityServiceManagerDeleg
    ateImpl.java:539)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:917)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:723)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
    at weblogic.Server.main(Server.java:32)
    >
    <May 30, 2005 4:22:21 PM IST> <Emergency> <WebLogicServer> <000342> <Unable to initialize the server: Fatal in
    itialization exception
    Throwable: java.lang.SecurityException: Authentication for user weblogic denied
    java.lang.SecurityException: Authentication for user weblogic denied
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.doBootAuthorization(SecurityServiceMan
    agerDelegateImpl.java:411)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initialize(SecurityServiceManagerDeleg
    ateImpl.java:539)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:917)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:723)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
    at weblogic.Server.main(Server.java:32)
    >
    The WebLogic Server did not start up properly.
    Exception raised:
    java.lang.SecurityException: Authentication for user weblogic denied
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.doBootAuthorization(SecurityServiceMan
    agerDelegateImpl.java:411)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initialize(SecurityServiceManagerDeleg
    ateImpl.java:539)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:917)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:723)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
    at weblogic.Server.main(Server.java:32)
    Reason: Fatal initialization exception
    Throwable: java.lang.SecurityException: Authentication for user weblogic denied
    java.lang.SecurityException: Authentication for user weblogic denied
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.doBootAuthorization(SecurityServiceMan
    agerDelegateImpl.java:411)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initialize(SecurityServiceManagerDeleg
    ateImpl.java:539)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:917)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:723)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
    at weblogic.Server.main(Server.java:32)
    C:\cpDomain\bin>
    Thanks
    Thanks & Regards,
    Siva VP,
    [email protected]

    Looks like you cannot connect to LDAP. Are you configured correctly?

  • Can we call a static method without mentioning the class name

    public class Stuff {
         public static final int MY_CONSTANT = 5;
         public static int doStuff(int x){ return (x++)*x;}
    import xcom.Stuff.*;
    import java.lang.System.out;
    class User {
       public static void main(String[] args){
       new User().go();
       void go(){out.println(doStuff(MY_CONSTANT));}
    }Will the above code compile?
    can be call a static method without mentioning the class name?

    Yes, why do it simply?
    pksingh79 wrote:
    call a static method without mentioning the class name?For a given value of   "without mentioning the class name".
        public static Object invokeStaticMethod(String className, String methodName, Object[] args) throws Exception {
            Class<?>[] types = new Class<?>[args.length];
            for(int i=0;i<args.length;++i) types[i] = args==null?Object.class:args[i].getClass();
    return Class.forName(className).getDeclaredMethod(methodName,types).invoke(null,args);

  • WLST problems when starting the server

    Hi all,
    I try to use WSLT (with ant) to start bea within an existing domain. The ant target is:
    <target name="start-server">
    <echo message="Starting bea weblogic..."/>
         <wlserver
         dir="${domain.home}"
         beahome="${weblogic.home}/.."
         weblogichome="${weblogic.home}"
         servername="${server.name}"
         domainname="${domain.name}"
         username="${weblogic.user.name}"
         password="${weblogic.user.password}"
         host="${server.host}"
         port="${server.port}"
         generateconfig="false"
         action="start"
         failonerror="true"
         configFile="/config/config.xml"
         classpath="${weblogic.home}/server/lib/weblogic.j ar"
         verbose="true"
         />
    </target>
    Unfortunately I got hundrets of NoClassDefFoundError when running this target. Serveral for each deployed component. Therefore I put classpath extensions to different files:
    1. %BEA_HOME%\user_projects\domains\wcsdomain\bin\startWebLogic.cmd
    2. %BEA_HOME%\user_projects\domains\wcsdomain\bin\setDomainEnv.cmd
    3. %BEA_HOME%\weblogic91\common\bin\commEnv.cmd
    4. %BEA_HOME%\weblogic91\server\binsetWLSEnv.cmd
    But the classes are still missing.
    Question:
    Can anyone tell me where to put classpath extensions for the deployment jars?
    Thanks

    You are not using WLST any where, you are using the wlserver ant task. The wlserver ant task does not use the scripts to start the server. You should add the jars to the wlserver classpath element.
    HTH,
    -satya
    BEA Blog:
    http://dev2dev.bea.com/blog/sghattu/
    Get Involved in CodeShare:
    https://wls-console-extensions.projects.dev2dev.bea.com/
    https://wlnav.projects.dev2dev.bea.com/
    https://eclipse-wlst.projects.dev2dev.bea.com/
    https://wlst.projects.dev2dev.bea.com/

  • Messages when starting the server

    Hi,
    I am using OC4J 10.1.3.
    When i start the server i am getting this message
    May 5, 2005 10:09:14 AM com.evermind.server.ejb.EJBPackageDeployment isIIOPConfigured
    INFO: Beans associated with application Twe will not be available via RMI/IIOP: GenerateIIOP system property=false, enableIIO
    P application setting=false, server.xml configured for IIOP=true
    May 5, 2005 10:09:14 AM com.evermind.server.ejb.EJBPackageDeployment isIIOPConfigured
    Any idea why this is coming. Does this mean that my beans are not deployed or I will not be able to access them.
    Thanks
    Kiran
    ----

    Kiran, there is no real problem here; the message, of type "INFO", is just to inform/warn you that your application is not properly configured for the purpose of accessing it through RMI/IIOP. Your beans are deployed and you will be able to access them as long as you are not using RMI/IIOP; otherwise, there should be other real error message printed out.
    Furthermore, this message is in the process of moving to some log file instead of popping up when the server is started. So, you probably won't notice them the next time you install a newer oc4j.
    Hope this helps.

  • Installation of JES5 on Solaris10 and error when starting the server

    Hi ..
    This is my first time that i tried to install JES5 on SOlaris10 system
    I finished the installation process and when i tried to start the domain1 i recieved an error in the log file and the server won't start.
    Here is the error message in the server log file :
    Thanks for the help
    [#|2007-12-17T12:28:13.977+0200|WARNING|sun-appserver-ee8.2|javax.enterprise.system.stream.err|_ThreadID=10;|netscape.ldap.LDAPException: failed to connect to server ldap://poolsun3.precise.com:389 (91); Cannot connect to the LDAP server
    Got LDAPServiceException code=-1
         at com.iplanet.services.ldap.DSConfigMgr.getConnection(DSConfigMgr.java:404)
         at com.iplanet.services.ldap.DSConfigMgr.getNewFailoverConnection(DSConfigMgr.java:358)
         at com.iplanet.services.ldap.DSConfigMgr.getNewConnection(DSConfigMgr.java:287)
         at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:211)
         at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:223)
         at com.iplanet.ums.DataLayer.initLdapPool(DataLayer.java:1270)
         at com.iplanet.ums.DataLayer.<init>(DataLayer.java:203)
         at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:228)
         at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:249)
         at com.sun.identity.sm.ldap.SMSLdapObject.initialize(SMSLdapObject.java:157)
         at com.sun.identity.sm.ldap.SMSLdapObject.<init>(SMSLdapObject.java:125)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.sun.identity.sm.SMSEntry.<clinit>(SMSEntry.java:229)
         at com.sun.identity.sm.ServiceManager.<clinit>(ServiceManager.java:74)
         at com.sun.identity.authentication.internal.AuthContext.getOrganizationName(AuthContext.java:762)
         at com.sun.identity.authentication.internal.AuthContext.getSSOToken(AuthContext.java:792)
         at com.sun.identity.security.AdminTokenAction.getSSOToken(AdminTokenAction.java:271)
         at com.sun.identity.security.AdminTokenAction.run(AdminTokenAction.java:174)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.iplanet.am.util.AMClientDetector.getServiceSchemaManager(AMClientDetector.java:220)
         at com.iplanet.am.util.AMClientDetector.<clinit>(AMClientDetector.java:93)
         at com.sun.mobile.filter.AMLController.init(AMLController.java:79)
         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:229)
         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:312)
         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:83)
         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3881)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4527)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:847)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
         at com.sun.enterprise.web.WebContainer.start(WebContainer.java:741)
         at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:935)
         at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2007-12-17T12:28:32.183+0200|INFO|sun-appserver-ee8.2|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPCSERVLET12: JAX-RPC context listener initializing|#]
    [#|2007-12-17T12:28:32.721+0200|INFO|sun-appserver-ee8.2|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPCSERVLET14: JAX-RPC servlet initializing|#]
    [#|2007-12-17T12:28:40.048+0200|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/amserver]StandardWrapper.Throwable
    java.lang.NullPointerException
         at com.sun.identity.authentication.UI.LoginLogoutMapping.initializeAuth(LoginLogoutMapping.java:89)
         at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:74)
         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 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4535)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:847)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
         at com.sun.enterprise.web.WebContainer.start(WebContainer.java:741)
         at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:935)
         at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2007-12-17T12:28:40.052+0200|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/amserver]Servlet /amserver threw load() exception
    javax.servlet.ServletException: Servlet.init() for servlet LoginLogoutMapping threw exception
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1142)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4535)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:847)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
         at com.sun.enterprise.web.WebContainer.start(WebContainer.java:741)
         at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:935)
         at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    ----- Root Cause -----
    java.lang.NullPointerException
         at com.sun.identity.authentication.UI.LoginLogoutMapping.initializeAuth(LoginLogoutMapping.java:89)
         at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:74)
         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 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4535)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:847)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
         at com.sun.enterprise.web.WebContainer.start(WebContainer.java:741)
         at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:935)
         at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2007-12-17T12:28:44.594+0200|INFO|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB3040 : Initializing HttpService|#]
    [#|2007-12-17T12:28:44.639+0200|ALERT|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=10;|security (22532): CORE3192: Temporary directory /var/opt/SUNWappserver/domains/domain1/generated/tmp (specified by the TempDir magnus.conf directive) is accessible to others.  Please change TempDir or modify the permissions of the directory and restart the server.
    |#]
    [#|2007-12-17T12:28:44.640+0200|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB3004 : Received an exception while initializing the HTTP service
    com.sun.httpservice.spi.HttpServiceSPIException: exception thrown from native
         at com.sun.httpservice.spi.HttpService.httpservice_init(Native Method)
         at com.sun.httpservice.spi.HttpService.init(HttpService.java:234)
         at com.sun.enterprise.web.HttpServiceWebContainer.initHttpService(HttpServiceWebContainer.java:1102)
         at com.sun.enterprise.web.HttpServiceWebContainer.initAndRunHttpService(HttpServiceWebContainer.java:1057)
         at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:936)
         at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2007-12-17T12:28:44.643+0200|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5071: An error occured during initialization
    java.lang.RuntimeException: java.lang.RuntimeException: com.sun.httpservice.spi.HttpServiceSPIException: exception thrown from native
         at com.sun.enterprise.web.HttpServiceWebContainer.initAndRunHttpService(HttpServiceWebContainer.java:1060)
         at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:936)
         at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    Caused by: java.lang.RuntimeException: com.sun.httpservice.spi.HttpServiceSPIException: exception thrown from native
         at com.sun.enterprise.web.HttpServiceWebContainer.initHttpService(HttpServiceWebContainer.java:1108)
         at com.sun.enterprise.web.HttpServiceWebContainer.initAndRunHttpService(HttpServiceWebContainer.java:1057)
         ... 5 more
    Caused by: com.sun.httpservice.spi.HttpServiceSPIException: exception thrown from native
         at com.sun.httpservice.spi.HttpService.httpservice_init(Native Method)
         at com.sun.httpservice.spi.HttpService.init(HttpService.java:234)
         at com.sun.enterprise.web.HttpServiceWebContainer.initHttpService(HttpServiceWebContainer.java:1102)
         ... 6 more
    |#]
    [#|2007-12-17T12:28:44.645+0200|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.core|_ThreadID=10;|Server Startup failed. Exiting...|#]
    [#|2007-12-17T12:28:44.645+0200|INFO|sun-appserver-ee8.2|javax.enterprise.system.core|_ThreadID=10;|Server shutdown in progress...|#]
    [#|2007-12-17T12:28:44.646+0200|INFO|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB3046 : Stopping HttpService|#]
    [#|2007-12-17T12:28:44.646+0200|WARNING|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB3048 : HttpService: Received exception while stoping HttpService
    com.sun.httpservice.spi.HttpServiceSPIException: Illegal state, cannot perform call
         at com.sun.httpservice.spi.HttpService.stop(HttpService.java:287)
         at com.sun.enterprise.web.HttpServiceWebContainer.stopHttpService(HttpServiceWebContainer.java:1151)
         at com.sun.enterprise.web.HttpServiceWebContainer.stopInstance(HttpServiceWebContainer.java:959)
         at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onShutdown(HttpServiceWebContainerLifecycle.java:62)
         at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:414)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:317)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2007-12-17T12:28:44.651+0200|INFO|sun-appserver-ee8.2|javax.enterprise.system.stream.out|_ThreadID=10;|SHUTDOWN-about to gather shutdownCleanupCapables|#]

    Looks like you cannot connect to LDAP. Are you configured correctly?

  • Getting serailization exeception when starting the server

    Hi All,
    I succesfully got the "ComputeEngine" running from the basic RMI tutorial.
    I then began reating my own classes based on the tutorial, which is still basically copied code from ComputeEngine.java.
    For some reason when when I try to start my server class I get a "Not serializable" exception. This can be fixed by adding "implements Serializable" to my class. But what I'm confused about is that the ComputeEngine class from the tutorial does not require the "implements Serializable". Why does mine require it?
    Anyone have any ideas?
    Here is my code:
    public class RemoteExecuteServer implements RemoteExecute, Serializable {
        public RemoteExecuteServer() throws RemoteException {
            super();
        public Object executeRunnable() throws RemoteException {
            System.out.println("Hello, this is the server.");
            return null;
        public static void main(String[] args) {
            if (System.getSecurityManager() == null) {
                System.setSecurityManager(new RMISecurityManager());
            // TODO: Get the server name from a config file
            String name = "//sunxxx/RemoteExecuteServer";
            try {
                RemoteExecute engine = new RemoteExecuteServer();
                Naming.rebind(name, engine);
                System.out.println("RemoteExecuteServer bound");
            } catch (Exception e) {
                System.err.println("RemoteExecuteServer exception: " +
                          e.getMessage());
                e.printStackTrace();
    }

    Never mind,
    I wasn't extending UnicastRemoteObject. Thanks anyway.

  • Redirecting output when starting the server as Service

    Hi,
    I was wondering if there is any way to redirect the error to a log file if the
    weblogic server has been started as Service. We are getting some crashes and we
    are not sure what exactly the issue is. We have tried running it on the command
    line and we have been able to capture some info but if there is a way to do the
    same when starting it as service,it would be great
    thanks
    Sushil

    wls8.1 sp3:
    To redirect the output to log files you must redirsct standard out and standard error to a file.
    This can be done by following steps:
    1.     Create a backup copy of the WL_HOME\server\bin\installSvc.cmd master script.
    2.     In a text editor, open the WL_HOME\server\bin\installSvc.cmd master script.
    3.     In installSvc.cmd, the last command in the script invokes the beasvc utility. At the end of the beasvc command, append the following command option:
    -log:"pathname "
    where pathname is a fully qualified path and filename of the file that you want to store the server's standard out and standard error messages.
    The modified beasvc command will resemble the following command:
    "%WL_HOME%\server\bin\beasvc" -install
    -svcname:"%DOMAIN_NAME%_%SERVER_NAME%"
    -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"
    -extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"
    -cmdline:%CMDLINE%
    -log:"d:\bea\user_projects\domains\myWLSdomain\myWLSserver-stdout.txt"
    4.     By default, every 24 hours the Windows service archives messages to a file named pathname-yyyy_mm_dd-hh_mm_ss. New messages collect in the file that you specified in the previous step.
    For information on changing the default behavior, see Changing the Default Rotation Criteria <http://e-docs.bea.com/wls/docs81/adminguide/winservice.html>.
    After you install the service and restart the Windows host, to view the messages that the server writes to standard out or standard error, do one of the following:
    §     Make a copy of the file that you specified and view the copy. The Windows file system cannot write to files that are currently opened.
    §     To view the messages as they are being printed to the file, open a command prompt and, using a DOS utility that supports the tail command, enter tail -f stdout-filename.

  • How to call a static method in a class if I have just the object?

    Hello. I have an abstract class A where I have a static method blah(). I have 2 classes that extend class A called B and C. In both classes I override method blah(). I have an array with objects of type B and C.
    For every instance object of the array, I'm trying to call the static method in the corresponding class. For objects of type B I want to call blah() method in B class and for objects of type C I want to call blah() method in C class. I know it's possible to call a static method with the name of the object, too, but for some reason (?) it calls blah() method in class A if I try this.
    So my question is: how do I code this? I guess I need to cast to the class name and then call the method with the class name, but I couldn't do it. I tried to use getClass() method to get the class name and it works, but I didn't know what to do from here...
    So any help would be appreciated. Thank you.

    As somebody already said, to get the behavior you
    want, make the methods non-static.You all asked me why I need that method to be
    static... I'm not surprised to hear this question
    because I asked all my friends before posting here,
    and all of them asked me this... It's because some
    complicated reasons, I doubt it.
    the application I'm writing is
    quite big...Irrelevant.
    Umm... So what you're saying is there is no way to do
    this with that method being static? The behavior you describe cannot be obtained with only static methods in Java. You'd have to explicitly determine the class and then explicitly call the correct class' method.

  • JVM Initialization Error when Starting the Second Managed Server

    Hi,
    I am getting the below error when starting the 2nd Managed server on Solaris X86 machine.
    starting weblogic with Java version:
    java version "1.5.0_17"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
    Java HotSpot(TM) Client VM (build 1.5.0_17-b04, mixed mode, sharing)
    Starting WLS with line:
    /usr/jdk/instances/jdk1.5.0/bin/java -client -Xms256m -Xmx512m -XX:CompileThre shold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da -Dplatform .home=/beafiler/weblogic10g/bea/wlserver_10.0 -Dwls.home=/beafiler/weblogic10g/b ea/wlserver_10.0/server -Dweblogic.home=/beafiler/weblogic10g/bea/wlserver_10.0/ server -Dwli.home= -Dweblogic.management.discover=false -Dweblogic.management.s erver=http://test_admin:7001 -Dwlw.iterativeDev=false -Dwlw.testConsole=false - Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/beafiler/weblogic10g/bea/patch_wss 110/profiles/default/sysext_manifest_classpath:/beafiler/weblogic10g/bea/patch_w lw1021/profiles/default/sysext_manifest_classpath:/beafiler/weblogic10g/bea/patc h_wls1002/profiles/default/sysext_manifest_classpath:/beafiler/weblogic10g/bea/p atch_cie640/profiles/default/sysext_manifest_classpath -Dweblogic.security.provi ders.authentication.LDAPDelegatePoolSize=50 -Dweblogic.Name=wls_test2 -Djava.sec urity.policy=/beafiler/weblogic10g/bea/wlserver_10.0/server/lib/weblogic.policy weblogic.Server
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Can any one please help me troubleshoot this?
    Edited by: user4877326 on Jul 13, 2010 1:33 PM

    Hi P.k,
    The table QRTZ92_TRIGGERS is there in the database.But while trying to run this command (UPDATE QRTZ92_TRIGGERS set NEXT_FIRE_TIME=1 where NEXT_FIRE_TIME < 0)in database i am getting the table or view does not exist.
    What is GTC resource?
    OIM version - 11.1.1.5.0.
    -Deena.

  • I'm getting an error (BEA-090508) when trying to apply SSL and starting the server

    I'm trying to apply SSL with my own CA on a Weblogic Server. I'm getting an error (BEA-090508) when trying to start the server.
    regards

    Hi peggy gray,
    I believe you have the Photography subscription purchased wherein the applications other than PS and LR are available as trial only.
    Please check the link below:
    Creative Cloud Photography plan | Adobe Creative Cloud
    Regards,
    Sheena

  • Memleak cannot work when start the management server by ctrlhandler.act

    Hi, all
    I use ctrlhandler.act to start a management server on running system. when start the memleak detector, i got the error message on server output:
    [JRockit] ManagementServer started trend analysis
    java.lang.NullPointerException
    Continuing ...
    java.lang.Exception: discarding statement XMLEncoder0.writeObject(HeapHistogram0);
    Continuing ...
    but when I started the management server with command line -Xmanagement. all is ok. What's the matter?
    Thanks a lot!

    Sorry, the jrocki version is 1.4.2_05 and 1.4.2_08.
    And the os: windows XP professional and Redhat AD 7.2
    And the weblogic server version is 'weblogic8.1 sp3'
    any suggestion? Thank you!

  • Oracle Error when starting the WLI server (samples domain) on Windows XP

    I've installed WLI (SP2) on Windows XP and after Starting the Server (from the
    "Start Server and Launch Examples" commands on the start menu) I get the following
    Oracle error in the console:
    I'm using WLI 7.0 with SP2 and Oracle 9i on Windows XP Home.
    ORA-12154: TNS:could not resolve service name
    Any ideas?

    Hi Peter,
    Based on the error messages it looks like this might be a Windows 7 security issue, which would be why it doesn't occur on XP since security is handled differently in that OS. Have you gone into dcomcnfg.exe and checked the DCOM permissions as described in the error message?

  • Dynamically load the content without re-starting the server

    Let me explain the scenario.........
    I have a JSP in which I call a method written in a different class( java file).
    Now, when I change the content of the method in the class and compile it, how can I get the updated stuff in the JSP without re-starting the server.
    Even though I have to re-deploy the changed class, I need to re-start the server to get the updates effective.
    The env set up is on Tomcat
    fun_one

    FUN_ONE, I am using Tomcat 5.0 (though not 5.5), and have a Test application that I do not use WARs to deply. The Context is set with reloadable="true".
    I have this simple bean:
    package jsp.beans;
    public class ItemBean implements java.io.Serializable
         public String getjunk() { return "Hello"; }
    } And this JSP
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
      <head>
      </head>
      <body>
        <!-- Display the session ID for this user -->
        <p><c:out value="${pageContext.session.id}"/></p>
        <!-- Get the junk string from the ItemBean -->
        <p><jsp:useBean id="it" class="jsp.beans.ItemBean"/>
        <c:out value="${it.junk}"/></p>
      </body>
    </html> I run the JSP, then change the text returned by the bean, recompile it, then reload the JSP (force reload). The session id remains the same, and the text changes. Does this work on your system? (note, you do have to restart your server once after you set the Context to be reloadable="true")

  • HANDSHAKE_FAILURE problem when starting managed server via NOdeManager

    hi all, i am trying to start a managed server using nodeManager, but i keep on
    getting following exception:
    weblogic.nodemanager.NodeManagerException: [Could not execute command start for
    server managedServer via the Node Manager - reason: [CommandInvoker: Failed to
    send command: 'online to server 'managedServer' to NodeManager at host: 'localhost:5555'
    with exception FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable
    to negotiate an acceptable set of security parameters.. Please ensure that the
    NodeManager is active on the target machine].] at weblogic.nodemanager.NodeManagerRuntime.executeCommand(NodeManagerRuntime.java:472)
    at weblogic.nodemanager.NodeManagerRuntime.start(NodeManagerRuntime.java:76) at
    java.lang.reflect.Method.invoke(Native Method) at
    here is my script for starting nodemanager
    set JAVA_HOME=c:\bea\jdk131
    set WL_HOME=c:\bea\weblogic700
    set PATH=%WL_HOME%\server\bin;%JAVA_HOME%\bin;%PATH%
    set CLASSPATH=.;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar
    java -hotspot -ms16m -mx16m -classpath %CLASSPATH% -Dbea.home=C:\bea\weblogic700
    -Djava.security.policy=C:\bea\weblogic700\server\lib\weblogic.policy -Dweblogic.nodemanager.weblogicHome=C:\bea\weblogic700
    -Dweblogic.nodemanager.listenAddress=172.21.73.94 -Dweblogic.nodemanager.listenPort=5555
    -Dweblogic.nodemanager.trustedHosts=C:\bea\weblogic700\common\nodemanager\config\nodemanager.hosts
    -Dweblogic.nodemanager.certificateFile=C:\bea\weblogic700\common\nodemanager\config\demo.crt
    weblogic.nodemanager.NodeManager
    i have created an admin server, called adminserver
    then i have created in the same domain a server called managedserver
    both servers run on the same machine,at different port number.
    i have created a machine, and associated managedserver to it.
    in the machine/configuration/nodemanager i have set listenaddress localhost and
    listenport 5555.
    my nodemanager starts automatically at htat port. however, when i try to start
    the managed server via adminserver console, i got the exception mentioned in
    the subject.
    can anyone help?
    regards
    marco
    can anyone point me to the right direction for solving this problem?
    in the adminserver console i have defined a machine for teh managedserver, and
    nodemanager is supposed to run at localhost:5555 (and indeed it does, because
    ihave started it successfully).
    thanx in advance and regards marco

    Marco.
    Sorry, this is not a solution to your problem but i am trying to solve the same
    problem for a week now.
    I have wl7.0 sp2, 1 admin server, 2 managed servers on the same box. I get the
    same error. I know that the default certificate installed provides a hostname
    verification of weblogic.com. I turned the hostname verification off, i put in
    the Dweblogic.nodemanager.sslHostNameVerificationEnabled=false, i get the same
    error when starting the managed server. I went ahead and created my own certificate
    for machine called mallik, created my own passphrase, created a new keystore,
    made the admin server view the keystore, used the same certificate for both the
    admin server and the node manager. It still fails with the same error. I went
    ahead and added the machine 'mallik' to nodeManager.hosts file. It fails. I am
    totally confused now what needs to be done.
    My nodeManger.hosts looks like this:
    mallik 10.100.10.130
    managedServer1 10.100.10.130
    managedServer2 10.100.10.13
    Below is the startNodeManager.cmd.
    @echo off
    @rem *************************************************************************
    @rem This script can be used to start the WebLogic NodeManager
    @rem
    @rem This script sets the following variables before starting the NodeManager:
    @rem
    @rem WL_HOME - The root directory of your WebLogic installation.
    @rem NODEMGR_HOME - The home directory for this NodeManager instance.
    @rem JAVA_HOME - Location of the version of Java used to start WebLogic
    @rem Server. This variable must point to the root directory of
    @rem a JDK installation and will be set for you by the
    @rem          installer. See the WebLogic platform support page
    @rem (http://e-docs.bea.com/wls/platforms/index.html) for an up-to-date
    list of
    @rem supported JVMs on Windows NT.
    @rem PATH - Adds the JDK and WebLogic directories to the system path.
    @rem CLASSPATH - Adds the JDK and WebLogic jars to the classpath.
    @rem JAVA_OPTIONS - Java command-line options for running the server. (These
    @rem will be tagged on to the end of the JAVA_VM and MEM_ARGS)
    @rem JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
    @rem -client, etc.)
    @rem MEM_ARGS - The variable to override the standard memory arguments
    @rem passed to java
    @rem
    @rem *************************************************************************
    SETLOCAL
    set WL_HOME=C:\bea7.0\weblogic700
    set NODEMGR_HOME=%WL_HOME%\common\nodemanager
    set JAVA_HOME=C:\bea7.0\jdk131_06
    Call %WL_HOME%\common\bin\commEnv.cmd
    @rem If NODEMGR_HOME does not exist, create it
    :checkNodeManagerHome
    if exist %NODEMGR_HOME% goto checkJava
    echo.
    echo NODEMGR_HOME %NODEMGR_HOME% does not exist, creating it..
    mkdir %NODEMGR_HOME%
    @rem Check that java is where we expect it to be
    :checkJava
    if exist %JAVA_HOME%\bin\java.exe goto runNodeManager
    echo The JDK wasn't found in directory %JAVA_HOME%.
    echo Please edit this script so that the JAVA_HOME
    echo variable points to the location of your JDK.
    goto finish
    :runNodeManager
    if not "%JAVA_VM%" == "" goto noResetJavaVM
    rem set JAVA_VM=-hotspot
    set JAVA_VM=%COMM_VM%
    :noResetJavaVM
    if not "%MEM_ARGS%" == "" goto noResetMemArgs
    set MEM_ARGS=-Xms32m -Xmx200m
    :noResetMemArgs
    @echo on
    set CLASSPATH=.;%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;%CLASSPATH%
    set PATH=%WL_HOME%\server\bin;%JAVA_HOME%\bin;%PATH%
    cd %NODEMGR_HOME%
    #"%JAVA_HOME%\bin\java.exe" %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath "%CLASSPATH%"
    "-Dbea.home=C:\bea7.0" "-Dweblogic.security.SSL.trustedCAKeyStore=%WL_HOME%\server\lib\cacerts"
    "-Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy" "-Dweblogic.nodemanager.reverseDnsEnabled=true"
    "-Dweblogic.nodemanager.javaHome=%JAVA_HOME%" weblogic.nodemanager.NodeManager
    "%JAVA_HOME%\bin\java.exe" %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath "%CLASSPATH%"
    "-Dbea.home=C:\bea7.0" "-Dweblogic.security.SSL.trustedCAKeyStore=%WL_HOME%\server\lib\cacerts"
    "-Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy" "-Dweblogic.nodemanager.certificateFile=C:\bea7.0\user_projects\myDomain\mallikcert.pem"
    "-Dweblogic.nodemanager.sslHostNameVerificationEnabled=false" "-Dweblogic.nodemanager.javaHome=%JAVA_HOME%"
    "-Dweblogic.ListenAddress=mallik" "-Dweblogic.nodemanager.nativeVersionEnabled=true"
    "-Dweblogic.nodemanager.reverseDnsEnabled=true" "-Dweblogic.nodemanager.javaHome=%JAVA_HOME%"
    "-Dweblogic.nodemanager.trustedHosts=%WL_HOME%\common\nodemanager\config\nodemanager.hosts"
    "-Dweblogic.management.pkpassword=weblogic" weblogic.nodemanager.NodeManager
    goto finish
    :finish
    ENDLOCAL
    I would appreciate if anybody can help me.
    Mallik.
    "Marco" <[email protected]> wrote:
    >
    hi all, i am trying to start a managed server using nodeManager, but
    i keep on
    getting following exception:
    weblogic.nodemanager.NodeManagerException: [Could not execute command
    start for
    server managedServer via the Node Manager - reason: [CommandInvoker:
    Failed to
    send command: 'online to server 'managedServer' to NodeManager at host:
    'localhost:5555'
    with exception FATAL Alert:HANDSHAKE_FAILURE - The handshake handler
    was unable
    to negotiate an acceptable set of security parameters.. Please ensure
    that the
    NodeManager is active on the target machine].] at weblogic.nodemanager.NodeManagerRuntime.executeCommand(NodeManagerRuntime.java:472)
    at weblogic.nodemanager.NodeManagerRuntime.start(NodeManagerRuntime.java:76)
    at
    java.lang.reflect.Method.invoke(Native Method) at
    here is my script for starting nodemanager
    set JAVA_HOME=c:\bea\jdk131
    set WL_HOME=c:\bea\weblogic700
    set PATH=%WL_HOME%\server\bin;%JAVA_HOME%\bin;%PATH%
    set CLASSPATH=.;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar
    java -hotspot -ms16m -mx16m -classpath %CLASSPATH% -Dbea.home=C:\bea\weblogic700
    -Djava.security.policy=C:\bea\weblogic700\server\lib\weblogic.policy
    -Dweblogic.nodemanager.weblogicHome=C:\bea\weblogic700
    -Dweblogic.nodemanager.listenAddress=172.21.73.94 -Dweblogic.nodemanager.listenPort=5555
    -Dweblogic.nodemanager.trustedHosts=C:\bea\weblogic700\common\nodemanager\config\nodemanager.hosts
    -Dweblogic.nodemanager.certificateFile=C:\bea\weblogic700\common\nodemanager\config\demo.crt
    weblogic.nodemanager.NodeManager
    i have created an admin server, called adminserver
    then i have created in the same domain a server called managedserver
    both servers run on the same machine,at different port number.
    i have created a machine, and associated managedserver to it.
    in the machine/configuration/nodemanager i have set listenaddress localhost
    and
    listenport 5555.
    my nodemanager starts automatically at htat port. however, when i try
    to start
    the managed server via adminserver console, i got the exception mentioned
    in
    the subject.
    can anyone help?
    regards
    marco
    can anyone point me to the right direction for solving this problem?
    in the adminserver console i have defined a machine for teh managedserver,
    and
    nodemanager is supposed to run at localhost:5555 (and indeed it does,
    because
    ihave started it successfully).
    thanx in advance and regards marco

Maybe you are looking for