Run the event at the start of the Weblogic Server

Hi all

I want to run some events at the start of the weblogic server.

What the version u use?

One way is

ServletContextListener

A better way to implement a class of application startup is to use the servlet context listener. He listens to the start and stop application events by implementing the methods contextInitialized() and contextDestroyed(). You can configure the listener in your web.xml () file, or even use the @WebServletContextListener annotation.

/ public class StartupListener implements javax.servlet.ServletContextListener {}

....

{} public void contextInitialized (dry ServletContextEvent)

....

}

{} public void contextDestroyed (dry ServletContextEvent)

....

}

}

Downside again; There is a context per "web application" per Java Virtual Machine. You would then have to manage cluster problems yourself. But positive on this subject is that you don't have to worry about that whether the external call, as this could occur with startup servlets. But it is portable and can be used on any Java EE server.

If you use version 12. You can use

Another way to use ApplicationListener. You can 4 event to capture it...

See this http://docs.oracle.com/cd/E24329_01/web.1211/e24368/lifecycle.htm#i1058406

Tags: Fusion Middleware

Similar Questions

  • Install PT8.53 Linux question: startPIA.sh cannot run the WebLogic Server


    People,

    Hello. I install PeopleTools 8.53 with the server database Oracle 11 GR 1 material and OS Oracle Linux 5. Data Mover Bootstrap and application designer can connect to the instance of database successfully. About PIA, Oracle Database Server and Application Server Tuxedo11gR1 runs correctly. But when to start WebLogic Server in the opt/PT8.53/webserv/PT853/bin directory, I get an error message like below:

    [user@userlinux bin] $./startPIA.sh

    Try to start WebLogic Server PIA
    No activity will be connected to this window.
    Activity on the server will be connected to /opt/PT8.53/webserv/PT853/servers/PIA/logs/PIA_*
    PID for WebLogic Server PIA is: 5462

    According to the site Internet of Nicolas http://gasparotto.blogspot.com/2010/02/web-server-weblogic-11gR1.html, I did 2 things like below:


    First of all, in the setenv.sh file, I changed MAX_FILE_DESCRIPTORS to 4096 to 1024.


    Secondly, I added the last 4 lines in the /etc/security/limits.conf file as below:

    # - nice - max great priority has led to increase of
    priority realtime max # - rtprio -
    #
    # < domain > < type > < item > < value >
    #

    soft #* coeur 0
    #* rss hard 10000
    #@student hard nproc 20
    #@faculty soft nproc 20
    #@faculty hard nproc 50
    #ftp hard nproc 0
    #@student - maxlogins 4

    # The following lines are added by me

    WebLogic - nofile 65536
    WebLogic - nproc 65536
    WebLogic - unlimited core
    WebLogic - memlock 50000000

    # End of file


    I have restart startPIA.sh and get the same error message:

    Try to start WebLogic Server PIA
    No activity will be connected to this window.
    Activity on the server will be connected to /opt/PT8.53/webserv/PT853/servers/PIA/logs/PIA_*
    PID for WebLogic Server PIA is: 5462


    My question is: any folk cannot resolve the error above to start the WebLogic for PIA Server?

    Thank you.

    As Nicolas says that you cannot start PIA on ports below 1024 on Linux with a non-root users.

    Recreate your PIA assembly and affect others like 8000 and 4443.

  • run the Web server in vmware

    Hello
    I run the Web server in the os(xp pro) host and now I want to run the Web server in the guest operating system
    I put things in the host operating system, follow
    router setting page (shared ip settings page)
    1 DHCP using OFF
    2 DMZ host server using on 192.168.10.201
    3. setting of virtual server 192.168.10.201 port TCP port internal external port 81 81
    TCP/IP
    1 use the following IP 192.168.10.201
    2 gateway 192.168.10.1
    3. the DNS settings of
    4. on the Advanced tab > Internet connection sharing > VMware Network Adapter VMnet 8
    for now, when someone tries to access my WAN IP then page host server is apear (from external network)
    If I stop server Web host then cannot access my WAN IP

    and in VMware, I put the (Windows XP Pro)
    TCP/IP configuration
    1 use the following IP 192.168.88.201
    2. default gateway 192.168.88.2
    3. the DNS settings of
    4. click the guest OS tab and click Edit > virtual network editor > NAT VMnet host is VMnet8
    5. setting NAT > Port forwarding > Add >: host port 81 machine virtual ip address 192.168.88.201 port 81
    and at the moment access to 192.168.88.201 in the guest operating system is ok the page is apear
    but nothing is apear when try and access my WAN IP external network and if I start it the host Web server then the host page is apear that im is not the intention of
    How can I make the Web server of the guest to access other networks operating system?
    in the guest operating system, I can access Web server of the customer by access 192.168.10.201
    but I can't access Web server of the client by typing host operating system access the 192.168.10.201
    any ideas? My version of vmware's vmware-workstation - 6.5.2 for windows

    Hi Teayun,

    Thanks for visiting the site of the community of Microsoft Windows XP. The question you have posted is related to VMware and would be better suited to the VMware or TechNet community. Please visit the link below to find a community that will support what ask you

    http://www.VMware.com/support/
    http://TechNet.Microsoft.com/en-us/default.aspx Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Error when starting the weblogic Server

    Hi all

    I get the following error when starting the weblogic server (10.3.5.0). I couldn't access the EM.

    < 9 July 2012 19:00:23 IST > < error > < org.apache.beehive.netui.pageflow.internal.AdapterManager > < BEA-000000 > < ServletContainerAdapter manager not initialized successfully. >

    java.lang.NoClassDefFoundError: HTTPClient/ProtocolNotSuppException

    at oracle.sysman.eml.app.EMDClientInitializer.setHttpConnectionTimeout(EMDClientInitializer.java:97)

    at oracle.sysman.eml.app.EMDClientInitializer.init(EMDClientInitializer.java:85)

    at oracle.sysman.emSDK.svc.ServiceUtil.initService(ServiceUtil.java:94)

    at oracle.sysman.eml.app.ContextInitializer.contextInitialized(ContextInitializer.java:432)

    to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:481)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)

    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)

    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)

    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)

    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)

    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)

    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)

    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)

    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)

    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)

    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)

    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:51)

    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)

    to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)

    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)

    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)

    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)

    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)

    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)

    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)

    Caused by: java.lang.ClassNotFoundException: HTTPClient.ProtocolNotSuppException

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)

    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)

    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)

    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)

    ... more than 40

    PostInstallConfigIntegration:oracle_ias_farm target auth check is performed.

    < 9 July 2012 19:00:49 IST > < WARNING > < HTTP > < BEA-101162 > < oracle.sysman.eml.app.ContextInitializer listener has not defined by user: java.lang.NoClassDefFoundError: HTTPClient/ProtocolNotSuppException.

    java.lang.NoClassDefFoundError: HTTPClient/ProtocolNotSuppException

    at oracle.sysman.eml.app.ContextInitializer.contextInitialized(ContextInitializer.java:1035)

    to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:481)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)

    Truncated. check the log file full stacktrace

    Caused by: java.lang.ClassNotFoundException: HTTPClient.ProtocolNotSuppException

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)

    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)

    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)

    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    Truncated. check the log file full stacktrace

    >

    < 9 July 2012 19:00:49 IST > < WARNING > < HTTP > < BEA-101162 > < oracle.sysman.eml.app.ContextInitializer listener has not defined by user: java.lang.NoClassDefFoundError: HTTPClient/ProtocolNotSuppException.

    java.lang.NoClassDefFoundError: HTTPClient/ProtocolNotSuppException

    at oracle.sysman.eml.app.ContextInitializer.contextDestroyed(ContextInitializer.java:1242)

    to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:482)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.EventsManager.notifyContextDestroyedEvent(EventsManager.java:200)

    Truncated. check the log file full stacktrace

    Caused by: java.lang.ClassNotFoundException: HTTPClient.ProtocolNotSuppException

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)

    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)

    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    Truncated. check the log file full stacktrace

    >

    < 9 July 2012 19:00:49 IST > < error > < hats > < BEA-149231 > < cannot create the activation to true for the em application state '.

    weblogic.application.ModuleException:

    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)

    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    Truncated. check the log file full stacktrace

    Caused by: java.lang.ClassNotFoundException: HTTPClient.ProtocolNotSuppException

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)

    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)

    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)






    How to solve this problem. Pls suggest me.


    Kind regards
    Deena.

    Copy the file http_client.jar in $ORACLE_HOME/Yes/jlib to $DOMAIN_HOME/lib. Also check if the classpath has been defined for this under $DOMAIN_HOME/bin/setDomainEnv.sh jar file

    https://forums.Oracle.com/forums/thread.jspa?MessageID=10200685

  • How to run the managed server weblogic as windows service

    Hello friends,

    I want a guide step by step to run the managed server and the application via the windows service.

    I am able to create admin server as a windows service. I tried a lot of managed server, but not luck.

    Please help me to solve it.

    Hello

    Here am attached the script to create a windows service for p6 service I used for my management environment.

    SETLOCAL

    Set DomainName = P6EPPM

    Set USERDOMAIN_HOME = C:\Oracle\Middleware\user_projects\domains\P6EPPM

    Define SERVER_NAME = P6

    Set PRODUCTION_MODE = true

    Set ADMIN_URL =http://p6eppmdev:7001

    CD % USERDOMAIN_HOME %

    call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd

    call "C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd".

    ENDLOCAL

    I hope it will work for you.

    Try this and updated the forum.

    Concerning

    Kumar

  • Cannot access the weblogic Server console.

    Hello

    In my windows server 2012 I created the virtual machine using the Hyper-V Manager.

    In this virtual machine, I installed the weblogic Server 10.3.6. The ip address of the virtual machine is 192.168.1.9.

    In my virtual machine using localhost I can able to access the console. But when I try to access the console to another computer that has windows 7, cannot able to access the console.

    Check if the AdminServer is listening on all addresses to link or not?

    Can you try to set an IP address to your AdminServer as following in your "$DOMAIN_HOME/config/config.xml", and then try again

    
        AdminServer
        
          false
        
        7001
        true
        192.168.1.9   
    

    Still, if you face any problem, then it might be a firewall problem.

    Please, try the following on the remote computer to see if the port is accessible from the other box or not:

    From your windows 7 computer customer trying to see if this port is available or not on this IP address

    telnet  192.168.1.9   7001
    

    Also several times the IPv6 configuration can cause this problem, where can you try to start your WebLogic using the following JVM option:

    -Djava.net.preferIPv4Stack=true
    
  • access to the weblogic Server console problem

    Hi all

    We have a problem of access to the weblogic Server console page.

    We have fresh installed the Enterprise Manager Cloud control 12 c and we can access the MS pages without problems.

    When trying to connect to the weblogic Server (https:// < our_server >: 7101/console) with Firefox, IE11 or if the page is loading and loading without showing the login page.

    But when trying to connect to this address with a place (elinks) browser on the unix machine we'll see the first page immediately.

    Any ideas?

    Thank you

    Michael

    Hi all

    We solved the problem in another way: we opened the ports http access.

    Because issues were security settings in Internet Explorer.

    Thank you

    Michael

  • Cal issue when you run the FTP server

    My organization has recently purchased Enterprise Cloud Suite (ECS) and as such in Core Cal went (included in the ECS).

    I have a section that needs to be 'entrepreneurs' access a FTP server that will be used to upload and download files only.  No application will run.

    How are they managing Cal licenses?  Contract users need client access licenses to access the FTP server?

    It was suggested that all I could need is to have a Windows external connector... ??

    Is there a better way to store and transfer these files?  Azure storage?

    Hello

    Please post your question here:

    https://social.technet.Microsoft.com/forums/en-us/home?searchTerm=default%20Ftp%20server

  • Problem running a page jspx on 11.1.2.4.0 on the weblogic Server integrated with 11.1.1.6.0 already installed

    Hi friends,

    I installed a different version of the JDev 11.1.2.4.0 according to my new work requirements and I am unable to perform my .jspx page... I have already installed 11.1.1.6.0 and works... Here's the error that I get... someone can help me with this...

    "The Server Instance cannot be started because the Weblogic domain integrated has not successfully built".

    I hope that you have not installed the 11.1.2.4.0 in the same middleware_home you isstalled the 11.1.1.6.0. In this case, you must reinstall both.

    If you have installed the 11.1.2.4.0 in middleware (empty) different House, you must check the log file, what exact error has occurred during installation. The location of the log are in the log window.

    In any case, you must remove the system11.1.2.x.x.x/DefaultDomain before trying again.

    Timo

  • Question on the WebLogic Server 10.3.6.0 - power supply 10.3.6.0.7 application (Patch 17572726)

    Hello:

    I am applying the latter following PSU of E-Business (Doc ID 1668237.1) for Oracle WebLogic Server 10.3.6.0 - power supply 10.3.6.0.7 ( ) Patch 17572726) on E - Business R12.2.3 and my question is what I have to apply this hotfix on filesystem fs1 & fs2 the or just run the fs_clone to synchronize the patch for both file system.  I appreciate if someone can throw some information in support of doc id


    Thanks in advance.


    Syed.

    Syed,

    Please see (Oracle E - Business Suite 12.2 Patching components Guide technology (Doc ID 1355068.1)), it answers your question.

    Thank you

    Hussein

  • How to change the name of the weblogic Server

    Hello world!

    I followed a weblogic server. Now I want to change the name of this server

    \

    What should I do?

    THX!

    Most clients choose not to monitor WebLogic AdminServer, as this JVM does not normally process applications the user.

    While the X-Agent showing your screenshot application servers are normally named and grouped using the agent configuration, WebLogic servers are normally named after the WebLogic configuration. The best practice would be to change the name of the app server in WebLogic, but you can probably change this name by using a setting of additional agent:

    -Dquest.agent.appserverinfo = MyAppServer

    This setting has additional options to set the type of application server, the version and the group.

    Kind regards

    Brian Wheeldon

  • Problem on the weblogic server application deployment

    Nice day

    I had one job the next on Oracle WebCenter forum, Thread but it seems the problem with weblogic. weblogic Server deployment:

    *Re: cannot record contained in the Complutense University of MADRID through servlet depolyed on weblogic server

    All of the Suggestions.

    Concerning

    Dear,
    The problem is resolved. It's a delicate question.

    The type of method in my jsp page was 'post'

    *

    *

    This is what is written in Netbeans and deployed to the Glassfish server.

    When a war file created and deployed on weblogic server and the parameters obtained with the value null of the application; the request had the value zero. This is because weblogic seems to read the type of method that is case-sensitive. When I change post everything works fine.

    Kind regards.

  • Unable to start services on Weblogic server

    When I try to start the managed server or any additional services I get error, following
    Please may I know why this error is shown and what would be the solution.

    For server vijay_webcenter, the Manager of associated node of machine to Machine-0 is not accessible.
    All selected servers are currently in a State that is not compatible with this operation or are not associated with a Node Manager running or you are not authorized to perform the requested action. No action will be taken.

    Hello

    You must start the node Manager service before you start the managed server. If you start the managed server without Manager nodes to check if MSI mode is enabled or not.

    Kind regards
    Siva Prasad Reddy
    [email protected]
    9550887963

  • By default the administrator username and password for the Weblogic Server administration Console

    I have created a new domain Wizard configuration under windows (with config.cmd).
    When you set up the field, I don't check boxes to configure the server administration, server management, cluster...
    Just give the domain name and the location of the home field and clicked on create the domain.
    So automatically AdminServer is created and domain was created successfully.
    Once the domain is created, I started with the administrator of the server with the same configuration Wizard and clicked on fact.

    Now, the administrator of the server is started successfully. But I don't know the username Admin and the password I didn't configure it when creating the domain.

    So how to connect to the administration Console? What will be the default username Admin and password for you connect to the Management Console?

    The Assistant of the STANDARD Config does not have a default password, you must set when you create the domain. It is one of the steps in the config wizard...

    Published by: EramusBlack on April 26, 2012 16:50

  • CFGFWK-64217, try to run the wizard config fmw

    My goal is to install the OSB on a Windows7 64 bit laptop. Try to download OSB, I ended up with pots of fmw_12.1.3.0.0_soa_quickstart since the SOA Suite downloads (download OSB redirects there).

    I understand compatibility guide (http://www.oracle.com/technetwork/middleware/fusion-middleware/documentation/fmw-1213certmatrix-2226694.xls), the Weblogic Server for 12.1.3.0.0 requires an Oracle DB 12.1.0.1 version or some versions of 11.x.

    So I downloaded Oracle DB 12.1.0.1, installed the service by default ORCL and it starts.

    I then ran my Installer FMW_quickstart (OSB but not SOA suite installation) successfully, and was correctly executed the RCU.bat.

    I ran the config.cmd Wizard very well just before the bit where she checked all the fine regional coordination unit configurations. I made no changes to the schema component JDBC and clicked on next, but it is where I get CFGFWK-64217: JDBC data source validation failed (passwords do not match). The schema password is correct. I found another person asking this exact question using MySQL and answer, they got was that their MySQL was incompatible.

    According to the docs, I have all the compatible versions of DB + FMW. I am stuck on this error and cannot complete the installation. Can someone please help me unwedge this process?

    Thank you.

    Well the soa QuickStart is sufficient and meant for development only. It is to have a small footprint to support the development of SOA and OSB panels and run and test services on the laptop.

    It will work to run against MQ and external JMS providers. It is not supported for Production. If you want to use for purposes of test/ACC/prod, then you should not use the fast start but the deployment of Enterprise downloads. You can get those edelivery.oracle.com. You need an oracle (free) account to connect. Search for 'Oracle SOA Suite for Oracle Middleware'.

Maybe you are looking for