Mtrace profiling on tomcat war

I wanted to see a very simple example of JVMTI. For that I included the sun provided sample mtrace.dll and mtrace.jar (with couple of sysouts and again I created a jar) in tomcat 6.0 bin directory and also from Tomcat configuration I provided -Xbootclasspath/a:"C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\mtrace.jar" -agentlib:mtrace in java options.
I was expecting that when I run any of the war project on tomcat then mtrace would instrument bytecod at entry and exit of methods. But none of the sysout that I provided in the mtrace came out in log. If mtrace.jar gets called then sysout should get printed in logs.
Just wanted to ask if the steps I followed are correct and if so then why sysouts are not coming in logs?

Put you default page in webapps/ROOT directory and call it index.jsp , or
put in conf/web.xml ,in the wellcome files list(at the bottom of the file), your default file name.
Of course you should have a way to to change the ROOT folder, from which your server will read it out .......... anyway i gave you an ideea , find it out by yourself ;)

Similar Messages

  • Extension libs in Tomcat .war

    Hi all. After researching ANT for a bit, and the ins-and-outs of .war files, I'm feeling a bit more adventerous with deploying web apps via JWS.
    I've been studying the very good Sun/Oracle tutorials on deploying apps via Web Start, but I'm stuck on the JNLP API. I don't understand when or why I need to use the classes in the api such as DownloadService.
    I came across having to use the jnlp library when the code I would expect to work fails without error.
    (The console opens, appends nothing, closes)
    I have all my code in a try block, so it's a bit strange that catch (Exception e) catches nothing. - Or at least keeps the console open :/
    (For ease of tracking, questions will be numbered!)
    +1) Are there any java logs or anything where I can verify what is going on?+
    So, after some reseach, it most likely is because I am using extension libs in my war.
    +2) Is it?+
    I will add the jnlp file I create is made by a servlet (after taking some params etc from my JSPs).
    A copy of the generated file I have saved and hosted on the remote server, which JaNeLa verifies as follows (where jdom.jar and jaxen-1.1.3.jar are simple pointer jnlps to the jars in my /web directory along with all my other files):
    JaNeLA Report - version 10.03.10
    Report for http://hemmels.dyndns.org/WebTriad/web/jnlp.jnlp
    XML encoding not known, but declared as UTF-8
    Optimize this application for off-line use by adding the <offline-allowed /> flag.
    Downloads can be optimized by specifying a resource size for 'web/PokeTriad.jar'.
    The resource download at web/PokeTriad.jar can be optimized by removing the (default) value of download='eager'.
    Lazy downloads might not work as expected for web/PokeTriad.jar unless the download 'part' is specified.
    Downloads can be optimized by specifying a resource size for 'http:/reference.itags.org/reference/link/?url=img/OntoramaLogo-smaller.jpg'.
    Icon loading & use can be optimized by specifying the width and height for http:/reference.itags.org/reference/link/?url=img/OntoramaLogo-smaller.jpg
    Report for http://hemmels.dyndns.org/WebTriad/web/jaxen.jnlp
    XML encoding not known, but declared as UTF-8
    Downloads can be optimized by specifying a resource size for 'lib/jaxen-1.1.3.jar'.
    The resource download at lib/jaxen-1.1.3.jar can be optimized by removing the (default) value of main='false'.
    Lazy downloads might not work as expected for lib/jaxen-1.1.3.jar unless the download 'part' is specified.
    Report for http://hemmels.dyndns.org/WebTriad/web/jdom.jnlp
    XML encoding not known, but declared as UTF-8
    Downloads can be optimized by specifying a resource size for 'lib/jdom.jar'.
    The resource download at lib/jdom.jar can be optimized by removing the (default) value of main='false'.
    Lazy downloads might not work as expected for lib/jdom.jar unless the download 'part' is specified. I have added code for using a DownloadService to access these jars from the client (can't remember which page this was from):
    try{
                   DownloadService ds;
                  try {
                      ds = (DownloadService)ServiceManager.lookup("javax.jnlp.DownloadService");
                      Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).info(
                                "DownloadService started!");
                  } catch (UnavailableServiceException e) {
                      ds = null;
                  if (ds != null) {
                      try {
                          // determine if a particular resource is cached
                          URL url = new URL("http://hemmels.dyndns.org/WebTriad/web/jdom.jar");
                          boolean cached = ds.isResourceCached(url, "1.0");
                          // remove the resource from the cache
                          if (cached) {
                              ds.removeResource(url, "1.0");
                          // reload the resource into the cache
                          DownloadServiceListener dsl = ds.getDefaultProgressWindow();
                          ds.loadResource(url, "1.0", dsl);
                      } catch (Exception e) {
                          e.printStackTrace();
                  }3) Is this right? I need to use the jnlp api to access extension libs from Tomcat?
    This confirms my suspicions with the problem stemming from libraries in my war file because now when running the app I get the following error:
    29-Oct-2010 00:35:25 runtime.PokeClient <init>
    INFO: DownloadService started!
    29-Oct-2010 00:35:25 runtime.PokeClient <init>
    SEVERE: jdom lib could not be cached!
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: (http://hemmels.dyndns.org/WebTriad/web/jdom.jar, 1.0)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by:
    java.io.IOException: missing version response from server
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)which is thrown when the code hits:
    DownloadService ds;
                  try {
                      ds = (DownloadService)ServiceManager.lookup("javax.jnlp.DownloadService");
                      Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).info(
                                "DownloadService started!");
                  } catch (UnavailableServiceException e) {
                      ds = null;
                  if (ds != null) {
                      try {
                          // determine if a particular resource is cached
                          URL url = new URL("http://hemmels.dyndns.org/WebTriad/web/jdom.jar");
                          boolean cached = ds.isResourceCached(url, "1.0");
                          // remove the resource from the cache
                          if (cached) {
                              ds.removeResource(url, "1.0");
                          // reload the resource into the cache
                          DownloadServiceListener dsl = ds.getDefaultProgressWindow();
                          ds.loadResource(url, "1.0", dsl);
                          Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).info(
                                     "jdom lib is now cached!");
                      } catch (Exception e) {
                          Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).severe(
                                      "jdom lib could not be cached!");
                          e.printStackTrace();
                  }So before I go any further into guessing (have been googling/lurking in this forum for this problem for a week and found nothing), +4) am I along the right lines (i.e. am I trying to do something incorrectly or worse, something you can't do), or do I need to implement the "javax.jnlp.DownloadService" properly?+
    Other information would be that the jar file ("http://hemmels.dyndns.org/WebTriad/web/jdom.jar") is accessable from a browser.
    Appreciate any replies and the time spent reading.
    Edited by: 798437 on Oct 28, 2010 11:44 PM
    Spelling.
    Edited by: 798437 on Oct 28, 2010 11:45 PM
    code blocks
    EDIT: I understand the issue java.io.IOException: missing version response from server, is from versioned extensions or something, having googled this I found I need the following version.xml in the /web folder:
    <jnlp-versions>
       <resource>
          <pattern>
             <name>jaxen-1.1.3.jar</name>
             <version-id>1.0</version-id>
             <locale>en_GB</locale>
             <locale>en</locale>
          </pattern>
          <file>jaxen-1.1.3.jar</file>
      </resource>
      <resource>
          <pattern>
             <name>jdom.jar</name>
             <version-id>1.0</version-id>
             <locale>en_GB</locale>
             <locale>en</locale>
          </pattern>
          <file>jdom.jar</file>
      </resource>
    </jnlp-versions>+5) Do I need a JNLPDownloadServlet or something or this this something different, and again, am I down the wrong path?+
    Edited by: 798437 on Oct 28, 2010 11:47 PM

    All the above seems to be irrelvant.
    My console was closing because the client's stream was empty, and I was trying to read from it.
    This was causing an Exception in my client code I wasn't catching (shame on me).
    Consider it a hard lesson learnt :)

  • User profiles. Tomcat's web authentication

    hi all ! I dont know if this has an easy implementation in JAVA.
    My webapp can have one user with different profiles, lets say administrative and manager. So one user could access both restricted areas in my program.
    The users/pass are saved in a Database and make use of Tomcat's user authentication
    So far Im just able to save one profile per user and I would like to know the best way to do it the way I want.
    Thanks for the help.

    ok thanks for the clarification thats what I used when I first set up the form authentication.
    Still I have problems to give the users more than one role even if it seems to be permited.
    So for example for a user role I use: Gerencia,Administracion and both roles are valid separately
    I get when when used toguether "Access denied".
    Thanks for the help.

  • Tomcat War issue

    In my Tomcat 4.1.27 local development container (on Windows XP) I cant seem to get any of my War files to deploy. War files did work in the past and now anytime I put a War file in the webapps directory and stop and start Tomcat the War file doesnt create the new webapp directory. The autoDeploy is set to true in the conf/server.xml. Please advise how I can get War file to work?

    So is context.xml actually overwriting the settings found in server.xml?I think so. The way I understand it is the the context.xml file saves you from having to edit server.xml. It is preferred for each web app to do its own config, rather than lumping them all together in server.xml.
    And what would be the best way to create the war file? IAt its heart, a WAR is just a zip file with its contents laid out in according to the specification of a web application directory structure.
    So the simplest way to make a war file is to zip up your directory structure with a tool like winzip, and rename it to be myApp.war.
    Regarding ant, I would recommend you take a look through [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
    ]this tutorial. It explains the basics of website layout, configuration and deployment.
    On [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html] this pageĀ  in particular, it includes a link to a basic ant file that you can use as a starting point.
    Cheers,
    evnafets

  • Firefox crashes at startup (no safe mode or profile manager; mal-ware free)

    Hello, I've been a loyal FF proponent for years. I'm running Windows 7 HP x64 with all the latest updates. The STRANGEST thing happened this week. I uninstalled my installation of firefox. I'm using a profile I've perpetuated for 3-4 years. I wanted to start clean and have a fresh slate.
    Well, now, whenever I try to install firefox (8, 9, or 10), after installation firefox will not start up. I click the icon, you can see it starting up, and then it disappears. No crash reporter, no crash reports in %appdata%. It won't start up in Safe Mode (-safe-mode, or -safemode, or -safe). None of this applies that I can tell: https://support.mozilla.org/en-US/kb/Fi ... t&r=0&as=s http://kb.mozillazine.org/Firefox_crashes I have tried all combinations of clean installing, rebooting, running from windows safe mode, scanning for viruses/malware (Windows MSE, MalwareBytes, SuperAntiSpyware), and deleting every bit of data left over in */appdata/ I can find for FireFox.
    I CAN get Firefox to start up with the "-profile manager" tag at the end (not -p OR -profilemanager, note the space...I believe this forces it to run that profile, even though it doesn't exist), however, it does not load up the Profile Manager, and when I try to visit a site, it crashes, and as far as I can tell, no crash reports are created. It does not create a profile or anything on my hard-drive. In fact, it doesn't look like it's getting far enough to recreate any of the directories I deleted before clean installing.
    It is interesting to note, FirefoxPortable runs just fine, I am even running my previous profile with a simple copy/paste of my old profile folder. It runs just fine, except I think it's marginally slower. I'm fairly adept at troubleshooting. I've scanned the web for hours looking for a solution that works. Perhaps I've some registry corruption, but I'm not THAT savvy or knowledgeable on where to look for corruption. If this is the case, CCleaner's reg-cleaner did not fix the problem.
    ANY ideas are welcome. I love using FF and my gamut of extensions., I would hate to have to set sail for Chrome.
    Thanks!
    P.S. I have a hunch this might be a Windows permissions issue...the problem with this hypothesis is that I'm running with UAC turned off completely. I've tried disabling firewalls & whatnot as well.

    The attached crash report doesn't have any data in it, so it doesn't help the find a cause of the crashes.
    If you have one that does have data in it if you check the link then please post the crash ID of such a crash.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter#Location_of_crash_reports
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter#Viewing_crash_reports
    Try a clean reinstall of Firefox and drag the current Firefox application to the trash.
    You can also try to do some maintenance.
    Try to repair the disk permissions:
    * http://thexlab.com/faqs/repairprocess.html
    You can do a check for corrupted and duplicate fonts and other font issues:
    *http://www.thexlab.com/faqs/multipleappsquit.html - Font Book 2.0 Help: Checking for damaged fonts
    *http://www.creativetechs.com/iq/garbled_fonts_troubleshooting_guide.html

  • Problem deploying war created in Sun Java Studio Enterprise 8

    I have, with some help from this forum, converted a portlet application from the Sun Java Studio Enterprise 7 environment to the Sun Java
    Studio Enterprise 8 environment. This portlet application runs in SJSE 8 now but fails when I pdeploy it to the portal server (Portal Server 6
    2005 Q1). The old war created from SJSE 6 does work. The code is identical. The war files are slightly different.
    On deployment I get:
    [DEBUG] Getting Jar File from war...
    [DEBUG] Getting Portlet DD as Stream...
    [DEBUG] Creating DPProviders...
    [DEBUG] Updating the Portlet Application...
    [DEBUG] Adding Providers to DP...
    [DEBUG] Adding provider: provider=__Portlet__timetableEnt8.Timetable
    [DEBUG] Creating DPProvider...
    [DEBUG] Checking for duplicate name: name=__Portlet__timetableEnt8.Timetable
    [DEBUG] Validating modified DP doc...
    [DEBUG] Storing the DP...
    Done Updating Display Profile! Deploying War File to Web Container...
    SUCCESS.But in the logs I see:
    [#|2006-04-04T13:09:58.112-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=10;|WebModule
    [/portlet]Error configuring application listener of class
    com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
    java.lang.ClassNotFoundException: com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1447)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1228)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3958)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4525)
            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:833)
            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:688)
            at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:889)
            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)
    |#]
    [#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Skipped installing application listeners due to previous error(s)|#]
    [#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Error listenerStart|#]
    [#|2006-04-04T13:09:58.115-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Context startup failed due to previous errors|#]When I look in the create "New Portlet Channel..." in the am console my application appears in the list but when I create a channel based on it, the whole desktop crashes with this error:
    [#|2006-04-03T11:39:41.699-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=16;|
    StandardWrapperValve[desktopServlet]: Servlet.service() for servlet desktopServlet threw exception
    java.lang.IllegalStateException: getWriter() has already been called for this response
         at org.apache.coyote.tomcat5.CoyoteResponse.getOutputStream(CoyoteResponse.java:588)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade.getOutputStream(CoyoteResponseFacade.java:166)
         at com.sun.portal.desktop.DesktopServlet.getWriter(DesktopServlet.java:444)
         at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:328)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
         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.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:221)
         at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2072)
    |#]When I remove my custom channel the desktop renders normally.
    As I mentioned before, the war created with 7 did not cause this and the application behaved normally.
    Any insight would be appreciated.
    I am going to look at the diff between the two wars.
    Thanks,
    Allan

    I have the same problem, how do yuo resolve that?
    Edited by: 864937 on Jun 9, 2011 1:43 PM

  • Deploy supporting files to WAR

    Is there a way to include support files (eg. *.gif, *.jpg, *.js) in the deployment profile for the WAR file using Oracle9i JDeveloper 9.0.2.829? I guess I could add them manually after the deployment but I'd rather not. Is there a better way?
    Thanks,
    Barth

    If those support files are somewhere in the HTML Root Directory (usually named "public_html"), they will automatically get picked up when you deploy to a WAR file. If those files are on your sourcepath, the best way to get them included is to add them to the project. By default a WAR profile will include all the files that you've added to your project.

  • Tomcat deployment descriptor - JAXP

    Hello,
    I am currently writing a small utility to package a web application for Jakarta Tomcat (.war files).
    The DTD for teh descriptor web.xml starts as follows :
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    I need to parse that descriptor to generate a DOM tree :
    here is my parser :
    private void parse(File in) {
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setValidating(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse(in); (((*)))
    catch (...)
    }//parse
    It seems I have no further controls on DocumentBuilder and DocumentBuilderFactory.
    The builder.parse call generates this exception :
    java.net.NoRouteToHostException: Operation timed out: no further information
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at org.apache.crimson.parser.Resolver.resolveEntity(Resolver.java:389)
    Can someone help ?

    I tried this already. But Tomcat needs the header with a PUBLIC id for the DTD, otherwise it throws exceptions (the app still works, but that's an ugly trick, and the software is intended to be used professionnally, so I want to find a clean solution).

  • Remote Memory Profiling

    Can anyone tell me how to set up remote memory profiling in TP4? The existing instructions for 10g do not address remote profiling. At one point I somehow found documentation on a profiling agent that is started from the command line but I cannot find that again. Anyway, I really need to profile a Tomcat application server, and it would be nice if TP4 could do the job. Maybe this type of thing would even convince my colleagues that JDeveloper is better than Eclipse or IDEA.
    Thanks In Advance, Keith

    'Cmon Team JDeveloper - in a matter of a few hours, I was able to download and setup NetBeans and start remote profiling my JDeveloper-developed web app on Tomcat. Surely somebody knows how to do this with JDeveloper!?
    I'm a long-time JDeveloper user and a very vocal proponent of the tool - I pains me to have to use another tool to do what JDeveloper should clearly be able to do. Heck, I'm willing to help document the process if someone can just help get me going on this.
    Jim

  • JDeveloper on Tomcat.

    I'm having a hard time running my .WAR file in JDeveloper using Tomcat and not OC4J. I cant seem to follow the document at JDeveloper.
    using:
    JDeveloper 10g (10.1.3)
    Tomcat 5.0.29
    Now, I wanted to run my application using JDeveloper. what should I do to fic this?
    This is what i've done so far:
    1. put .war file into Tomcat/webapps
    2. restart tomcat - war file extracted/created
    3. ?
    Do you guys have the steps how to run my tomcat application in JDeveloper?

    Here is the problem output:
    2005-10-16 19:09:36 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2005-10-16 19:09:41 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2005-10-16 19:09:41 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2005-10-16 19:09:42 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2005-10-16 19:09:42 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2005-10-16 19:16:25 ApplicationDispatcher[TT_Tomat_WAR_01] Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null
         at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:249)
         at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:220)
         at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:475)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-16 19:16:25 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
    org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null
         at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:249)
         at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:220)
         at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:475)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)

  • How to print a method trace to a file (first method called to the end)

    I have a tomcat war that I am deploying. I want to use some command line parameter or some tool that will show me a method trace of each method that gets executed.
    There is some static initializer in the code that starts everything in the war (the war is not a web app) but simply a process that runs in the background that does stuff.
    I want to find out what the first method called in the war is and to locate the static initializer. Having a method trace would do this because this method would be printed out first.
    After the static initializer gets called I want to see a method trace of all methods called. Having this printed to a file like Class:Method(params) would be nice.
    Even better would be some sort of tool that I could open a trace file with and see method calls in the order they were called.
    I tried several Java profiling tools but none of them show me the order (first to last) of the methods called. All I need is to see a method trace from beginning to end.
    Any help would be appreciated.

    JProbe provided almost everything I needed to see a method call trace. The method graph feature was great.
    I have a single static class with a static initializer that runs in a loop but did not know what the class name was (I inherited some code and was told about the static initializer).
    So when I fired it up in JProbe it showed me the class running off the root thread. In fact I found another static initializer that was unknown to me and another oddity as well.
    The only problem is that the method call graph is collapsed and you need to click [+] to expand every method call.
    I am told by JProbe support that there was an "expand all" option in JProbe 7.0 but it is not there in 7.1.
    Not sure why they took the time, money and energy to take a needed feature out.
    It would be great to have something that did the same thing from the command line or to be able to print a method call trace out to a file but not sure how to do this.

  • An unexpected error has been detected by Java Runtime Environment

    Hi there,
    I am trying to run my application in java and suddenly java started giving me the bellow error:
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3624
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # V [jvm.dll+0x5bd10]
    # An error report file with more information is saved as:
    # G:\My Documents\UCY\Graduate\Final Year Project\Persona\Testing\hs_err_pid1500.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    I do not believe that this is a problem in my code as this was working before.
    Also the system works fine for about 20 iterations of the same code and then displays this error
    I also try to uninstall and reinstall java but with no luck.
    I am also attaching the log file that java has saved some information.
    Thanks a lot for your help in advance.
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3624
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # V [jvm.dll+0x5bd10]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x0aaa0c00): VMThread [stack: 0x0ab30000,0x0ab80000] [id=3624]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000050
    Registers:
    EAX=0x00000000, EBX=0x003abcec, ECX=0x072d0106, EDX=0x00000000
    ESP=0x0ab7f5bc, EBP=0x003abc60, ESI=0x06b29bc8, EDI=0x06b29bc8
    EIP=0x6d81bd10, EFLAGS=0x00010246
    Top of Stack: (sp=0x0ab7f5bc)
    0x0ab7f5bc: 06b29bc8 06b29bc8 00000000 6d940820
    0x0ab7f5cc: 6d7dcc8b 06b29bc8 0ab7f618 0ab7f618
    0x0ab7f5dc: 00000002 003aa9f8 6d86cd11 06b29c45
    0x0ab7f5ec: 003abab8 6d86cae1 003abcb0 6d83c5a3
    0x0ab7f5fc: 0ab7f618 00000000 003aaa50 06b29c45
    0x0ab7f60c: 6d86c927 0ab7f618 00000000 6d99f718
    0x0ab7f61c: 06b29c45 00000000 6d8676c3 06b29c45
    0x0ab7f62c: 06b29c45 00000000 0ab7f748 00000000
    Instructions: (pc=0x6d81bd10)
    0x6d81bd00: 08 07 c1 e8 02 25 fe ff ff 3f 5e 59 c3 8b 11 56
    0x6d81bd10: ff 52 50 5e 59 c3 cc cc cc cc cc cc cc cc cc cc
    Stack: [0x0ab30000,0x0ab80000], sp=0x0ab7f5bc, free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x5bd10]
    VM_Operation (0x0090f410): GenCollectForAllocation, mode: safepoint, requested by thread 0x003a6400
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0aade000 JavaThread "&#1281;&#49164; &#4944;&#1689;&#23520;&#1689;&#1088;&#1689;&#28936;&#1690;&#23520;&#1689;&#1072;&#1689;&#752;&#1689;&#1041;&#32768;&#27880;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#18011;&#480;&#1689;&#26688;&#28059;&#1538;&#49164; &#4944;&#1689;&#23520;&#1689;&#1424;&#1689;&#29032;&#1690;&#23520;&#1689;&#1408;&#1689;&#1088;&#1689;&#1041;&#32768;&#27496;&#1690;&#65530;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#17499;&#480;&#1689;&#26688;&#28059;&#1795;&#49168; &#4944;&#1689;&#23520;&#1689;&#1760;&#1689;&#29128;&#1690;&#23520;&#1689;&#1744;&#1689;&#1424;&#1689;&#1041;&#32768;&#27592;&#1690;&#65532;&#16383;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#16987;&#480;&#1689;&#26688;&#28059;&#2048;&#49164; &#4944;&#1689;&#23520;&#1689;&#2096;&#1689;&#29224;&#1690;&#23520;&#1689;&#2080;&#1689;&#1760;&#1689;&#1041;&#32768;&#18512;&#1730;&#27688;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#21339;&#480;&#1689;&#26688;&#28059;&#2305;&#49164; &#4944;&#1689;&#23520;&#1689;&#2432;&#1689;&#29320;&#1690;&#23520;&#1689;&#2416;&#1689;&#2096;&#1689;&#1041;&#32768;&#31408;&#1722;&#28072;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#18779;&#480;&#1689;&#26688;&#28059;&#2562;&#49164; &#4944;&#1689;&#23520;&#1689;&#2768;&#1689;&#29416;&#1690;&#23520;&#1689;&#2752;&#1689;&#2432;&#1689;&#1041;&#32768;&#27640;&#1729;&#27400;&#1690;&#65530;&#32767; daemon [_thread_blocked, id=3244, stack(0x0ae00000,0x0ae50000)]
    0x0aad4400 JavaThread "" [_thread_blocked, id=1788, stack(0x0adb0000,0x0ae00000)]
    0x0aac6c00
    [error occurred during error reporting (printing all threads), id 0xc0000005]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x003a5ab0/0x00002710] Threads_lock - owner thread: 0x0aaa0c00
    [0x003a5c50/0x000026d0] Heap_lock - owner thread: 0x003a6400
    Heap
    def new generation total 960K, used 64K [0x02990000, 0x02a90000, 0x02e70000)
    eden space 896K, 0% used [0x02990000, 0x02990000, 0x02a70000)
    from space 64K, 100% used [0x02a70000, 0x02a80000, 0x02a80000)
    to space 64K, 0% used [0x02a80000, 0x02a80000, 0x02a90000)
    tenured generation total 4224K, used 4223K [0x02e70000, 0x03290000, 0x06990000)
    the space 4224K, 99% used [0x02e70000, 0x0328fc38, 0x031a2200, 0x03290000)
    compacting perm gen total 12288K, used 4879K [0x06990000, 0x07590000, 0x0a990000)
    the space 12288K, 39% used [0x06990000, 0x06e53cc0, 0x06e51200, 0x07590000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Program Files\Java\jre1.6.0_06\bin\javaw.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jre1.6.0_06\bin\msvcr71.dll
    0x6d7c0000 - 0x6da10000      C:\Program Files\Java\jre1.6.0_06\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6bd00000 - 0x6bd0d000      C:\WINDOWS\system32\SYNCOR11.DLL
    0x6d270000 - 0x6d278000      C:\Program Files\Java\jre1.6.0_06\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d360000 - 0x6d389000      C:\Program Files\Java\jre1.6.0_06\bin\jdwp.dll
    0x6d6c0000 - 0x6d6c6000      C:\Program Files\Java\jre1.6.0_06\bin\npt.dll
    0x6d770000 - 0x6d77c000      C:\Program Files\Java\jre1.6.0_06\bin\verify.dll
    0x6d310000 - 0x6d32f000      C:\Program Files\Java\jre1.6.0_06\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      C:\Program Files\Java\jre1.6.0_06\bin\zip.dll
    0x6d1e0000 - 0x6d1e7000      C:\Program Files\Java\jre1.6.0_06\bin\dt_socket.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    VM Arguments:
    jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:1578
    java_command: TestingResults
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
    CLASSPATH=.;C:\TomCat\webapps\Profiling;C:\TomCat\common\lib\servlet-api.jar;C:\TomCat\common\lib\jsp-api.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip
    PATH=C:\Program Files\Java\jre1.6.0_06\bin\client;C:\Program Files\Java\jre1.6.0_06\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\jwsdp-1.3\jwsdp-shared\bin;C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin
    USERNAME=maria
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 6, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 13 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 523632k(50496k free), swap 882224k(299028k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1
    time: Sun Jun 15 19:09:27 2008
    elapsed time: 105 seconds
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hi there,
    I am trying to run my application in java and suddenly java started giving me the bellow error:
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3624
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # V [jvm.dll+0x5bd10]
    # An error report file with more information is saved as:
    # G:\My Documents\UCY\Graduate\Final Year Project\Persona\Testing\hs_err_pid1500.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    I do not believe that this is a problem in my code as this was working before.
    Also the system works fine for about 20 iterations of the same code and then displays this error
    I also try to uninstall and reinstall java but with no luck.
    I am also attaching the log file that java has saved some information.
    Thanks a lot for your help in advance.
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3624
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # V [jvm.dll+0x5bd10]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x0aaa0c00): VMThread [stack: 0x0ab30000,0x0ab80000] [id=3624]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000050
    Registers:
    EAX=0x00000000, EBX=0x003abcec, ECX=0x072d0106, EDX=0x00000000
    ESP=0x0ab7f5bc, EBP=0x003abc60, ESI=0x06b29bc8, EDI=0x06b29bc8
    EIP=0x6d81bd10, EFLAGS=0x00010246
    Top of Stack: (sp=0x0ab7f5bc)
    0x0ab7f5bc: 06b29bc8 06b29bc8 00000000 6d940820
    0x0ab7f5cc: 6d7dcc8b 06b29bc8 0ab7f618 0ab7f618
    0x0ab7f5dc: 00000002 003aa9f8 6d86cd11 06b29c45
    0x0ab7f5ec: 003abab8 6d86cae1 003abcb0 6d83c5a3
    0x0ab7f5fc: 0ab7f618 00000000 003aaa50 06b29c45
    0x0ab7f60c: 6d86c927 0ab7f618 00000000 6d99f718
    0x0ab7f61c: 06b29c45 00000000 6d8676c3 06b29c45
    0x0ab7f62c: 06b29c45 00000000 0ab7f748 00000000
    Instructions: (pc=0x6d81bd10)
    0x6d81bd00: 08 07 c1 e8 02 25 fe ff ff 3f 5e 59 c3 8b 11 56
    0x6d81bd10: ff 52 50 5e 59 c3 cc cc cc cc cc cc cc cc cc cc
    Stack: [0x0ab30000,0x0ab80000], sp=0x0ab7f5bc, free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x5bd10]
    VM_Operation (0x0090f410): GenCollectForAllocation, mode: safepoint, requested by thread 0x003a6400
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0aade000 JavaThread "&#1281;&#49164; &#4944;&#1689;&#23520;&#1689;&#1088;&#1689;&#28936;&#1690;&#23520;&#1689;&#1072;&#1689;&#752;&#1689;&#1041;&#32768;&#27880;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#18011;&#480;&#1689;&#26688;&#28059;&#1538;&#49164; &#4944;&#1689;&#23520;&#1689;&#1424;&#1689;&#29032;&#1690;&#23520;&#1689;&#1408;&#1689;&#1088;&#1689;&#1041;&#32768;&#27496;&#1690;&#65530;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#17499;&#480;&#1689;&#26688;&#28059;&#1795;&#49168; &#4944;&#1689;&#23520;&#1689;&#1760;&#1689;&#29128;&#1690;&#23520;&#1689;&#1744;&#1689;&#1424;&#1689;&#1041;&#32768;&#27592;&#1690;&#65532;&#16383;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#16987;&#480;&#1689;&#26688;&#28059;&#2048;&#49164; &#4944;&#1689;&#23520;&#1689;&#2096;&#1689;&#29224;&#1690;&#23520;&#1689;&#2080;&#1689;&#1760;&#1689;&#1041;&#32768;&#18512;&#1730;&#27688;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#21339;&#480;&#1689;&#26688;&#28059;&#2305;&#49164; &#4944;&#1689;&#23520;&#1689;&#2432;&#1689;&#29320;&#1690;&#23520;&#1689;&#2416;&#1689;&#2096;&#1689;&#1041;&#32768;&#31408;&#1722;&#28072;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#18779;&#480;&#1689;&#26688;&#28059;&#2562;&#49164; &#4944;&#1689;&#23520;&#1689;&#2768;&#1689;&#29416;&#1690;&#23520;&#1689;&#2752;&#1689;&#2432;&#1689;&#1041;&#32768;&#27640;&#1729;&#27400;&#1690;&#65530;&#32767; daemon [_thread_blocked, id=3244, stack(0x0ae00000,0x0ae50000)]
    0x0aad4400 JavaThread "" [_thread_blocked, id=1788, stack(0x0adb0000,0x0ae00000)]
    0x0aac6c00
    [error occurred during error reporting (printing all threads), id 0xc0000005]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x003a5ab0/0x00002710] Threads_lock - owner thread: 0x0aaa0c00
    [0x003a5c50/0x000026d0] Heap_lock - owner thread: 0x003a6400
    Heap
    def new generation total 960K, used 64K [0x02990000, 0x02a90000, 0x02e70000)
    eden space 896K, 0% used [0x02990000, 0x02990000, 0x02a70000)
    from space 64K, 100% used [0x02a70000, 0x02a80000, 0x02a80000)
    to space 64K, 0% used [0x02a80000, 0x02a80000, 0x02a90000)
    tenured generation total 4224K, used 4223K [0x02e70000, 0x03290000, 0x06990000)
    the space 4224K, 99% used [0x02e70000, 0x0328fc38, 0x031a2200, 0x03290000)
    compacting perm gen total 12288K, used 4879K [0x06990000, 0x07590000, 0x0a990000)
    the space 12288K, 39% used [0x06990000, 0x06e53cc0, 0x06e51200, 0x07590000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Program Files\Java\jre1.6.0_06\bin\javaw.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jre1.6.0_06\bin\msvcr71.dll
    0x6d7c0000 - 0x6da10000      C:\Program Files\Java\jre1.6.0_06\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6bd00000 - 0x6bd0d000      C:\WINDOWS\system32\SYNCOR11.DLL
    0x6d270000 - 0x6d278000      C:\Program Files\Java\jre1.6.0_06\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d360000 - 0x6d389000      C:\Program Files\Java\jre1.6.0_06\bin\jdwp.dll
    0x6d6c0000 - 0x6d6c6000      C:\Program Files\Java\jre1.6.0_06\bin\npt.dll
    0x6d770000 - 0x6d77c000      C:\Program Files\Java\jre1.6.0_06\bin\verify.dll
    0x6d310000 - 0x6d32f000      C:\Program Files\Java\jre1.6.0_06\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      C:\Program Files\Java\jre1.6.0_06\bin\zip.dll
    0x6d1e0000 - 0x6d1e7000      C:\Program Files\Java\jre1.6.0_06\bin\dt_socket.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    VM Arguments:
    jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:1578
    java_command: TestingResults
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
    CLASSPATH=.;C:\TomCat\webapps\Profiling;C:\TomCat\common\lib\servlet-api.jar;C:\TomCat\common\lib\jsp-api.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip
    PATH=C:\Program Files\Java\jre1.6.0_06\bin\client;C:\Program Files\Java\jre1.6.0_06\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\jwsdp-1.3\jwsdp-shared\bin;C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin
    USERNAME=maria
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 6, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 13 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 523632k(50496k free), swap 882224k(299028k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1
    time: Sun Jun 15 19:09:27 2008
    elapsed time: 105 seconds
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • ADF 11g application on Weblogic 10.3 + JDBC connection to Oracle XE

    Hello! i'm using Jdev 11g (not tp4) and i have Adf applicarion which uses BC4J, thereofre in jdev exists connection to DB.
    When i start my application in Jdev, it starts Weblogic and deploys my application. And all works fine!
    When i want to execute my Weblogic as standalone server, using Weblogic domain Administration console, i deploy my application as WAR archive
    before deploy, i've been created JDBC DataSource in Weblogic server, using Weblogic webinterface (connection test was OK)
    and now, when i start my application, entering application Url in internet explorer, i see that exception has ariced, her is the stack trace
    {color:#0000ff}&lt;17-Oct-2008 18:30:49 o'clock EEST&gt; &lt;Error&gt; &lt;HTTP&gt; &lt;xc002600109&gt; &lt;AdminServer&gt; &lt;ACTIVE ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;1224257449182&gt; &lt;BEA-101017&gt; &lt;[weblogic.servlet.internal.WebAppServletContext@1410e0d - appName: 'nano', name: 'nano.war', context-path: '/nano', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@8f5e03[
    GET /nano/faces/untitled3.jsp?_adf.ctrl-state=1797442774_7 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Cookie: oracle.uix=0^^GMT+3:00; JSESSIONID=wShvL4vT9h40V7TSNH9D84p3v4h48S992vJyWK6p0hnWflfZVpc2!652912999; ADMINCONSOLESESSION=r440L4XpGDJhhX3G1slmFdSzV3xSH51xGzhy912nTnpP2Zv1yVrQ!652912999
    Pragma: no-cache
    Cache-Control: no-cache
    ]] Root cause of ServletException.
    java.lang.NullPointerException
    at oracle.adf.model.bc4j.DCJboDataControl.findVariable(DCJboDataControl.java:2934)
    at oracle.adf.model.binding.DCVariableImpl.resolveSourceVariable(DCVariableImpl.java:69)
    at oracle.adf.model.binding.DCVariableImpl.getVariableKind(DCVariableImpl.java:162)
    at oracle.jbo.common.VariableManagerImpl.doGetVariables(VariableManagerImpl.java:125)
    at oracle.jbo.common.VariableManagerImpl.getVariablesOfKind(VariableManagerImpl.java:259)
    at oracle.jbo.common.VariableManagerImpl.getVariables(VariableManagerImpl.java:253)
    at oracle.jbo.common.VariableValueManagerImpl.doPassivateVariables(VariableValueManagerImpl.java:499)
    at oracle.jbo.common.VariableValueManagerImpl.getPassivatableVariables(VariableValueManagerImpl.java:439)
    at oracle.adf.model.binding.DCBindingContainer.buildFormToken(DCBindingContainer.java:4523)
    at oracle.adf.model.binding.DCBindingContainerState.buildStringBuffer(DCBindingContainerState.java:56)
    at oracle.adf.model.binding.DCBindingContainerState.toString(DCBindingContainerState.java:590)
    at oracle.adf.model.binding.DCBindingContainer.getStateToken(DCBindingContainer.java:4293)
    at oracle.adfinternal.controller.application.model.SaveStateTokenListener.afterPhase(SaveStateTokenListener.java:54)
    at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.afterPhase(ADFLifecycleImpl.java:529)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:118)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:166)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:122)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:68)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:51)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    {color:#000000}i have learned about deployment descriptors and i have made additional files and changed web.xml file:
    {color:#ff0000}web.xml:
    {color:#000000}....{color}
    {color} &lt;resource-ref&gt;
    &lt;description&gt;Nano Datasource&lt;/description&gt;
    &lt;res-ref-name&gt;Nano_DB_connection&lt;/res-ref-name&gt;
    &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
    &lt;res-auth&gt;Container&lt;/res-auth&gt;
    &lt;/resource-ref&gt;
    {color:#ff0000}weblogic.xml:{color}
    &lt;?xml version = '1.0' encoding = 'windows-1252'?&gt;
    &lt;weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"&gt;
    &lt;resource-description&gt;
    &lt;res-ref-name&gt;Nano_DB_connection&lt;/res-ref-name&gt;
    &lt;jndi-name&gt;Nano_DB_connection&lt;/jndi-name&gt;
    &lt;/resource-description&gt;
    &lt;/weblogic-web-app&gt;
    {color:#ff0000}weblogic-jdbc.xml:{color}
    &lt;?xml version = '1.0' encoding = 'windows-1252'?&gt;
    &lt;jdbc-data-source xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-jdbc.xsd" xmlns="http://www.bea.com/ns/weblogic/jdbc-data-source"&gt;
    &lt;name&gt;Nano_DB_connection&lt;/name&gt;
    &lt;jdbc-driver-params&gt;
    &lt;url&gt;10.5.25.169&lt;/url&gt;
    &lt;driver-name&gt;oracle.jdbc.OracleDriver&lt;/driver-name&gt;
    &lt;properties&gt;
    &lt;property&gt;
    &lt;name&gt;user&lt;/name&gt;
    &lt;value&gt;chaosdb&lt;/value&gt;
    &lt;/property&gt;
    &lt;property&gt;
    &lt;name&gt;servername&lt;/name&gt;
    &lt;value&gt;10.5.25.169&lt;/value&gt;
    &lt;/property&gt;
    &lt;property&gt;
    &lt;name&gt;portnumber&lt;/name&gt;
    &lt;value&gt;1521&lt;/value&gt;
    &lt;/property&gt;
    &lt;property&gt;
    &lt;name&gt;sid&lt;/name&gt;
    &lt;value&gt;XE&lt;/value&gt;
    &lt;/property&gt;
    &lt;/properties&gt;
    &lt;/jdbc-driver-params&gt;
    &lt;jdbc-data-source-params&gt;
    &lt;jndi-name&gt;Nano_DB_connection&lt;/jndi-name&gt;
    &lt;scope&gt;Application&lt;/scope&gt;
    &lt;/jdbc-data-source-params&gt;
    &lt;/jdbc-data-source&gt;
    in BC4J project Model.jpx tells that bc4j uses connection named Nano_DB_connection.
    in Weblogic datasource name is the same
    Question: how to bind my application in weblogic to existed connection/datasource in weblogic?
    how Jdev deploys and configures Weblogic server, that it works fine, but when i start THE SAME server manually, deploy application using JDEV the application execution failed (see above exception)
    maybe i should use EAR profile instead of WAR, to deploy all connections and other stuff to weblogic?
    {color:#ff0000}please help!!!{color}
    {color}{color}

    Hi,
    Did you configure your application module to use a JDBC data source? To do this, right-click the app module in the navigator, select Configurations and in the dialog that comes up change the connection type to JDBC Data Source and enter your data source name - which should be the same as the data source you created on the weblogic server.
    Also, I do suggest you create an EAR file - this is what we've tested and certified with. You can find more details in the deployment chapter of the fusion developer's guide: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDJJDDG.
    Hope this helps
    Blaise

  • WSCompile error

    Hello,
    I'm very new to webservices. I am using tomcat as the container and got jwsdp installed in it.
    While trying to build one of the examples provided I am getting a build error. It seems that WSCompile isn't working fine. Find below the extracts of build output and some excerpts of build.xml file too.
    build output
    C:\tomcat50-jwsdp\xws-security\samples\simple>ant run-sample
    Buildfile: build.xml
    clean:
       [delete] Deleting directory C:\tomcat50-jwsdp\xws-security\samples\simple\build
       [delete] Deleting directory C:\tomcat50-jwsdp\xws-security\samples\simple\dist
    as8-check:
    ws-check:
    tc-check:
        [mkdir] Created dir: C:\tomcat50-jwsdp\xws-security\samples\simple\build\client\classes
        [mkdir] Created dir: C:\tomcat50-jwsdp\xws-security\samples\simple\build\server\WEB-INF\classes
        [mkdir] Created dir: C:\tomcat50-jwsdp\xws-security\samples\simple\dist
    compile-handler-code:
         [echo] Compiling the handler source code
        [javac] Compiling 1 source file to C:\tomcat50-jwsdp\xws-security\samples\simple\build\server\WE
    B-INF\classes
        [javac] Compiling 1 source file to C:\tomcat50-jwsdp\xws-security\samples\simple\build\client\cl
    asses
    create-handler-jar:
          [jar] Building jar: C:\tomcat50-jwsdp\xws-security\samples\simple\build\client\secenv-handler.
    jar
    prepare:
    gen-server:
         [echo] Running wscompile....
    BUILD FAILED
    file:C:/tomcat50-jwsdp/xws-security/samples/simple/build.xml:135: Could not create task or type of t
    ype: wscompile.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'wscompile'.
       Fix: check your spelling.
    - The task needs an external JAR file to execute
       and this is not found at the right place in the classpath.
       Fix: check the documentation for dependencies.
       Fix: declare the task.
    - The task is an Ant optional task and optional.jar is absent
       Fix: look for optional.jar in ANT_HOME/lib, download if needed
    - The task was not built into optional.jar as dependent
       libraries were not found at build time.
       Fix: look in the JAR to verify, then rebuild with the needed
       libraries, or download a release version from apache.org
    - The build file was written for a later version of Ant
       Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
       and needs to be declared using <taskdef>.
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Total time: 2 seconds
    Excerpts from the build.xml
    <!--
    Copyright 2004 Sun Microsystems, Inc. All rights reserved.
    SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    -->
    <!DOCTYPE project [
          <!ENTITY tomcat SYSTEM "file:../buildconfig/tomcat-config.xml">
          <!ENTITY sjsas SYSTEM "file:../buildconfig/sjsas-config.xml">
          <!ENTITY sjsws SYSTEM  "file:../buildconfig/sjsws-config.xml">
    ]>
    <project name="simple" default="usage" basedir=".">
      <!-- Values in build.properties (if any) override the values in this file -->
      <property file="build.properties"/>
      <property file="../build.properties"/>
      <property name="context-path" value="securesimple"/> 
      <property name="client-class" value="${ant.project.name}.TestClient"/>
      <property name="url" value="http://${endpoint.host}:${endpoint.port}/manager/"/>
      <property name="username" value="${username}"/>
      <property name="password" value="${password}"/>
      <property name="build.home" value="build"/>
      <property name="dist.home" value="dist"/>
      <property name="portable-war" value="${ant.project.name}-portable.war"/>
      <property name="deployable-war" value="${context-path}.war"/>
      <property name="war-path" value="${dist.home}/${deployable-war}"/>
      <property name="config.rpcenc.file" value="${basedir}/etc/config.xml"/>
      <property name="client.config.rpcenc.file" value="${basedir}/etc/client-config.xml"/>
      <property name="model.rpcenc.file" value="model.xml.gz"/>
      <property name="webapp.webxml" value="${basedir}/etc/web.xml"/>
      <property name="jaxrpc.tool.verbose" value="true"/>
      <target name="as8-check" if="sjsas.home">
        <mkdir dir="${build.home}/client/classes"/>
        <mkdir dir="${build.home}/server/WEB-INF/classes"/>
        <mkdir dir="${dist.home}"/>
        &sjsas;
      </target>
      <target name="ws-check" if="sjsws.home">
        <mkdir dir="${build.home}/client/classes"/>
        <mkdir dir="${build.home}/server/WEB-INF/classes"/>
        <mkdir dir="${dist.home}"/>
        &sjsws;
      </target>
      <target name="tc-check" if="tomcat.home">
        <mkdir dir="${build.home}/client/classes"/>
        <mkdir dir="${build.home}/server/WEB-INF/classes"/>
        <mkdir dir="${dist.home}"/>
        <!--&tomcat;--><!--Added by Sourabh: Its commented to fix compilation issues-->
      </target>
      <target name="prepare" depends="as8-check, ws-check, tc-check, compile-handler-code, create-handler-jar">
          <mkdir dir="${build.home}"/>
          <mkdir dir="${build.home}/server"/>
          <mkdir dir="${build.home}/server/WEB-INF"/>
          <mkdir dir="${build.home}/server/WEB-INF/classes"/>
          <mkdir dir="${dist.home}"/>
      </target>
      <target name="compile-handler-code"
              description="Compiles the handler">
        <echo message="Compiling the handler source code "/>
         <path id="app.classpath">
         <!--Added by Sourabh:Start -->
              <fileset dir="${build.home}/../../../../xws-security/lib">
                   <include name="**/*.jar"/>
              </fileset>
              <fileset dir="${build.home}/../../../../jwsdp-shared/lib">
                   <include name="**/*.jar"/>
              </fileset>
         <!--Added by Sourabh: End-->
         </path>
        <javac debug="true"
               srcdir="src"
               destdir="${build.home}/server/WEB-INF/classes"
               includes="**/*.java">
        <classpath>
            <path refid="app.classpath"/>
        </classpath>
        </javac>
        <javac debug="true"
               srcdir="src"
               destdir="${build.home}/client/classes"
               includes="**/*.java">
        <classpath>
            <path refid="app.classpath"/>
        </classpath>
        </javac>
      </target>
      <target name="create-handler-jar"
              description="Creating jar file">
        <jar jarfile="${build.home}/client/secenv-handler.jar">
          <fileset dir="${build.home}/client/classes">
            <include name="**/*.class"/>
          </fileset>
        </jar>
      </target>
      <target name="compile-server" depends="gen-server"
              description="Compiles the server-side source code">
        <echo message="Compiling the server-side source code...."/>
        <javac debug="true"
               srcdir="server/src"
               destdir="${build.home}/server/WEB-INF/classes"
               includes="**/*.java">
        <classpath>
            <path refid="app.classpath"/>
         </classpath>
        </javac>
      </target>
      <target name="gen-server" depends="prepare"
              description="Runs wscompile to generate server artifacts">
        <echo message="Running wscompile...."/>
        <wscompile verbose="${jaxrpc.tool.verbose}"
                   xPrintStackTrace="true"   
                   jvmargs="-Djava.endorsed.dirs=${java.endorsed.dir}"
                   keep="true" fork="true"
                   security="${server.security.config}"
                   import="true"
                   model="${build.home}/server/WEB-INF/${model.rpcenc.file}"
                   base="${build.home}/server/WEB-INF/classes"
                   classpath="${app.classpath}"
                   config="${config.rpcenc.file}">
          <classpath>
            <pathelement location="${build.home}/server/WEB-INF/classes"/>
            <path refid="app.classpath"/>
          </classpath>
        </wscompile>
      </target>
        <target name="setup-web-inf" depends="prepare">
            <echo message="Setting up ${build.home}/server/WEB-INF..."/>
            <copy file="./etc/web.xml" todir="${build.home}/server/WEB-INF"/>
            <copy file="./etc/jaxrpc-ri.xml" todir="${build.home}/server/WEB-INF"/>
            <copy file="./etc/PingService.wsdl" todir="${build.home}/server/WEB-INF"/>
        </target>
      <target name="raw-war" depends="setup-web-inf"
              description="Creates a 'raw' WAR file">
        <echo message="Packaging to ${dist.home}/${portable-war}...."/>
        <delete file="${dist.home}/${portable-war}" />
        <jar jarfile="${dist.home}/${portable-war}">
          <fileset dir="${build.home}/server">
            <include name="WEB-INF/**"/>
            <include name="index.html"/>
          </fileset>
        </jar>
      </target>
      <target name="process-war" depends="raw-war"
              description="Runs wsdeploy to create a deployable or 'cooked' WAR file">
        <echo message="Running wsdeploy..."/>
        <delete file="${dist.home}/${deployable-war}"/>
        <wsdeploy fork="true" verbose="${jaxrpc-tool-verbose}" keep="true"
                  jvmargs="-Djava.endorsed.dirs=${java.endorsed.dir}"
                  tmpdir="${build.home}/server"
                  outwarfile="${dist.home}/${deployable-war}"
                  inwarfile="${dist.home}/${portable-war}">
          <classpath>
            <path refid="app.classpath"/>
          </classpath>
        </wsdeploy>
      </target>
      <target name="build-server"
              depends="compile-server, gen-server, raw-war, process-war">
      </target>
      <!-- Appserver -->
      <target name="check-if-deployed-as" if="sjsas.home">
        <echo message="Checking for deployed webapp at context path /${context-path}"/>
        <condition property="as.webapp.deployed">
          <http url="http://${endpoint.host}:${endpoint.port}/${context-path}/"/>
        </condition>
      </target>
      <target name="deploy-sjsas"
              depends="prepare, check-if-deployed-as, undeploy-sjsas"
              if="sjsas.home">
        <echo message="Deploying war for ${ant.project.name} to sjsas"/>
        <appserv-deploy file="${war-path}" password="${password}" sunonehome="${sjsas.home}" />
      </target>
      <target name="undeploy-sjsas" if="as.webapp.deployed">
        <echo message="Undeploying existing webapp at ${context-path}"/>
        <echo message="appclasspath ${app.classpath}"/>
        <appserv-undeploy name="${context-path}" password="${password}" sunonehome="${sjsas.home}" />
      </target>
      <!-- end of Appserver -->
      <!-- Webserver -->
      <target name="check-if-deployed-ws" if="sjsws.home">
        <echo message="Checking for deployed webapp at context path /${context-path}"/>
        <condition property="ws.webapp.deployed">
          <http url="http://${endpoint.host}:${endpoint.port}/${context-path}/"/>
        </condition>
      </target>
      <target name="deploy-ws">
          <echo message="deploying ${war-path} at ${context-path}" />
          <exec executable="${SJSWS_DEPLOY}" vmlauncher="false">
          <arg value="deploy" />
          <arg value="-u" />
          <arg value="/${context-path}" />
          <arg value="-i" />
          <arg value="${VS.DIR}" />
          <arg value="-v" />
          <arg value="${VS.DIR}" />
          <arg value="${war-path}" />
          </exec>
      </target>
      <target name="undeploy-ws" >
        <echo message="undeploying ${context-path}" />
        <exec executable="${SJSWS_DEPLOY}" vmlauncher="false">
            <arg value="delete" />
            <arg value="deploy" />
            <arg value="-u" />
            <arg value="/${context-path}" />
            <arg value="-i" />
            <arg value="${VS.DIR}" />
            <arg value="-v" />
            <arg value="${VS.DIR}" />
            <arg value="hard" />
         </exec>
      </target>
      <target name="deploy-sjsws"
              depends="prepare, check-if-deployed-ws, undeploy-sjsws"
              if="sjsws.home" >
        <echo message="Deploying war for ${ant.project.name} to sjsws"/>
        <antcall target="deploy-ws" />
      </target>
      <target name="undeploy-sjsws" if="ws.webapp.deployed">
        <echo message="Undeploying existing webapp at ${context-path}"/>
        <echo message="appclasspath ${app.classpath}"/>
        <antcall target="undeploy-ws" />
      </target>
      <!--End of Webserver -->
      <!--Tomcat -->
      <target name="check-if-deployed-tom" if="tomcat.home">
        <echo message="Checking for deployed webapp at context path /${context-path}"/>
        <condition property="tom.webapp.deployed">
          <http url="http://${endpoint.host}:${endpoint.port}/${context-path}/"/>
        </condition>
      </target>
      <target name="deploy-tomcat"
              depends="prepare, check-if-deployed-tom, undeploy-tomcat"
              if="tomcat.home" >
        <echo message="Deploying war for ${ant.project.name} to tomcat"/>
        <deploy-catalina url="${url}" username="${username}" password="${password}"
                path="/${context-path}" war="file:${war-path}"/>
      </target>
    <target name="undeploy-tomcat-proper" if="webapp.deployed">
          <echo message="Undeploying existing webapp at ${context-path}"/>
          <undeploy-catalina url="${url}" username="${username}" password="${password}" path="/${context-path}"/>
      </target>
      <target name="undeploy-tomcat-war-present" if="war.present">
          <echo message="Undeploying existing webapp at ${context-path}"/>
          <undeploy-catalina url="${url}" username="${username}" password="${password}" path="/${context-path}"/>
      </target>
      <target name="undeploy-tomcat" if="tomcat.home">
        <echo message="Undeploying existing webapp at ${context-path}"/>
        <condition  property="war.present">
            <available file="${tomcat.home}/webapps/${deployable-war}" />
        </condition>
        <antcall target="undeploy-tomcat-war-present" />
        <condition property="webapp.deployed">
          <http url="http://${endpoint.host}:${endpoint.port}/${context-path}/"/>
        </condition>
        <antcall target="undeploy-tomcat-proper" />
    </target>
      <!--End of Tomcat -->
      <target name="deploy-forced" depends= "deploy-sjsas, deploy-sjsws, deploy-tomcat"/>
      <target name="internal-undeploy" depends= "undeploy-sjsas, undeploy-sjsws, undeploy-tomcat"/>
      <target name="redeploy" depends="prepare"
          description="Undeploys and deploys a Web aplication">
          <antcall target="undeploy" />
          <antcall target="deploy" />
      </target>
      <target name="gen-client" depends="prepare"
              description="Runs wscompile to generate client side artifacts">
        <echo message="Running wscompile...."/>
        <wscompile fork="true" verbose="${jaxrpc.tool.verbose}" keep="true"
                   jvmargs="-Djava.endorsed.dirs=${java.endorsed.dir}"
                   client="true"
                   security="${client.security.config}"
                   base="${build.home}/client"
                   features=""
                   config="${client.config.rpcenc.file}">
          <classpath>
            <fileset dir="${build.home}/client">
                <include name="secenv-handler.jar"/>
            </fileset>
            <path refid="app.classpath"/>
          </classpath>
        </wscompile>
      </target>
      <target name="compile-client" depends="prepare"
              description="Compiles the client-side source code">
        <echo message="Compiling the client source code...."/>
        <javac srcdir="client/src"
               debug="true"
               destdir="${build.home}/client"
               includes="**/*.java">
          <classpath>
            <path refid="app.classpath"/>
            <fileset dir="${build.home}/client">
                <include name="secenv-handler.jar"/>
            </fileset>
          </classpath>
        </javac>
      </target>
      <target name="build-client" depends="gen-client, compile-client"
              description="Executes the targets needed to build a stub client.">
      </target>
      <target name="run-sample"
              depends="clean, prepare, build-server, deploy-forced, build-client"
              description="Runs the example client">
        <echo message="Running the ${client-class} program...."/>
        <java fork="on" classname="${client-class}">
          <sysproperty key="java.endorsed.dirs" value="${java.endorsed.dir}"/>
          <sysproperty key="endpoint.host" value="${endpoint.host}"/>
          <sysproperty key="endpoint.port" value="${endpoint.port}"/>
          <sysproperty key="service.url" value="${service.url}"/>
          <sysproperty key="jwsdp.home" value="${jwsdp.home}"/>
          <classpath>
            <pathelement location="${build.home}/client"/>
            <fileset dir="${build.home}/client">
                <include name="secenv-handler.jar"/>
            </fileset>
            <path refid="app.classpath"/>
          </classpath>
        </java>
      </target>
      <target name="run-remote-sample"
              depends="clean, prepare, build-client"
              description="Runs the example client">
        <echo message="Running the ${client-class} program...."/>
        <java fork="on" classname="${client-class}">
          <sysproperty key="java.endorsed.dirs" value="${java.endorsed.dir}"/>
          <sysproperty key="http.proxyHost" value="${http.proxyHost}"/>
          <sysproperty key="http.proxyPort" value="${http.proxyPort}"/>
          <sysproperty key="endpoint.host" value="${endpoint.host}"/>
          <sysproperty key="endpoint.port" value="${endpoint.port}"/>
          <sysproperty key="service.url" value="${service.url}"/>
          <sysproperty key="jwsdp.home" value="${jwsdp.home}"/>
          <classpath>
            <pathelement location="${build.home}/client"/>
            <fileset dir="${build.home}/client">
                <include name="secenv-handler.jar"/>
            </fileset>
            <path refid="app.classpath"/>
          </classpath>
        </java>
      </target>
      <target name="clean-server"
              description="Removes server side build directories">
        <delete dir="${build.home}/server"/>
      </target>
      <target name="clean-client"
              description="Removes client side build directories">
        <delete dir="${build.home}/client"/>
      </target>
      <target name="clean"
              description="Removes all build and dist directories">
        <delete dir="${build.home}"/>
        <delete dir="${dist.home}"/>
      </target>
      <target name="usage" depends="prepare">
        <echo message="Please see README.txt for more info."/>
        <echo message="Useful targets:"/>
        <echo message="  clean = remove both server and client objects"/>
        <echo message="  clean-server = remove only server objects"/>
        <echo message="  clean-client = remove only client objects"/>
        <echo message="  build-server = build server side code"/>
        <echo message="  deploy-forced = force deploy built server code to Container"/>
        <echo message="  build-client = build client app code"/>
        <echo message="  run-sample = run the sample"/>
        <echo message="  run-remote-sample = run the sample against a remote server containing the deployed endpoint"/>
      </target>
      <target name="help" depends="usage"/>
    </project>any help would be highly appreciated.
    regards,
    Sourav

    407 Proxy Authentication Required
    The compiler is trying to reference a document on the web, but can't use your proxy because it doesn't have the proxy id and password to use.
    If it isn't possible to pas the proxy info to the compiler, download the doc to a local server and reference it there.

  • Org/apache/log4j/Category on OAS 10.1.3 and Jdev 10.1.3.5

    Hi,
    I am new to ADF and my company is also new to ADF. We are doing how it coudl help us in acclerating the development of custom screens on top of OTM 5.5
    I am using OAS 10.1.3. I am getting org/apache/log4j/Category error at the time of deployment causing road block. Plz help...
    Below are the steps I followed
    1. Stopped OAS
    2. Install ADF Installer 10.1.3.5 by extracting files, changing adfinstaller.properties, and running java -jar runinstaller.jar adfinstaller.properties
    3. Started OAS
    4. OAS never started up as server.xml had an new entry
         <application name="datatags" path="../../../BC4J/redist/datatags.ear" start="true" />
         <import-shared-library name="oracle.ws.jaxrpc"/>
    5. datatags directory was malformed in the sense META-INF/application.xml and other .xml file was not created at all.
    6. Since ADF requires only libraries to be available, I removed this 2 enteries and started up the OAS.
    7. Started the OAS
    8. Copied files from
    [$Jdeveloper Home]\jakarta-taglibs
    to
    [$OC4J Home]\BC4J\lib
    the files are:
    commons-digester.jar
    commons-logging.jar
    commons-collections.jar
    9. Download and copy apache-log4j-1.2.15 (log4j-1.2.15.jar) to [$OC4J Home]\BC4J\lib
    10. I created a simpel ADF Helloworld page.
    11.Created a deployment discriptor orion-application and added the following enteries
    <imported-shared-libraries>
    <remove-inherited name="apache.commons.logging"></remove-inherited>
    </imported-shared-libraries>
    12. I right clicked on my UserInterface ->New-> Deployment profile -> Created a WAR file
    13. Right click the WAR file and deployed to the OAS
    14. I got the following deployment error
    Wrote EAR file to C:\shobz\SOFTWARES\otm_jdev_10G\jdev\mywork\TestADF\UserInterface\deploy\webapp1.ear
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Application Deployer for webapp1 STARTS.
    Copy the archive to /u01/app/otm/otmapp/oas/j2ee/home/applications/webapp1.ear
    Initialize /u01/app/otm/otmapp/oas/j2ee/home/applications/webapp1.ear begins...
    Unpacking webapp1.ear
    Done unpacking webapp1.ear
    Unpacking webapp1.war
    Done unpacking webapp1.war
    Initialize /u01/app/otm/otmapp/oas/j2ee/home/applications/webapp1.ear ends...
    Starting application : webapp1
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize webapp1 begins...
    Initialize webapp1 ends...
    Started application : webapp1
    Binding web application(s) to site default-web-site begins...
    Binding webapp1 web-module for application webapp1 to site default-web-site under context root TestADF-UserInterface-context-root
    Operation failed with error:
    org/apache/log4j/Category
    Deployment failed
    I tried step 9 and 11 in order to get rid of this log4j error.
    Your help is highly appreciated.
    Shobz
    Edited by: user13114596 on Jan 6, 2011 8:40 PM

    ADF 11g requires JEE 5.0 server.
    Oracle Application Server 10.1.3 supports J2EE 1.4.
    JDeveloper 11g application won't run on OAS 10.1.3.

Maybe you are looking for

  • MVC Design Help, Single Servlet, How do I access the Model and DB

    Hi all. New here and looking for some help. I am currently writing a website that allows the creation of users, that may upload articles and post comments on articles. Im trying to develop using MVC. I have a single controller servlet that processes

  • Is it possible to backup all purchased media in iTunes to an external hard?

    I have a large media content that I purchased through iTunes that is only stored on my Mac Book Pro. I have not backed-up any of it yet because of the number of CDs/DVDs it takes. Is it possible to backup all of this purchased media onto an existing

  • Dns server issues with business catalyst, website not loading

    Hi there, Trying to upload a new website and it has disappeared saying that the DNS lookup failed. Have checked settings under site management and all looks correct but its still not working any help would be great.

  • Repeating frame spacing Problem in Reports 6i

    I have a Matrix with Group report. Now I have two sections (one is matrix section, second is Grand totals section). After I run the report layout ,Matrix section data (repeating frame) is appearing at one spacing but the other repeating frame in Gran

  • Partner Connectivity Kit

    Hallo, XI-experts, I would like to test the Partner Connectivity Kit. What product need I for this item ? I have saw in SAP-Shop: -SAP Exchange Infrastructure 2.0 SR1 -SAP NetWeaver 04 SR1 What of this product must buy my company? Many thanks ! With