JDeveloper 11g Using jsp to display images

I am converting a 10.1.3.3 application to 11.1.1.3
It has 2 web modules. One is an ADF administrator module and the other is a public web that displays information including images stored as blobs.
This public module has a simple technology scope, only html, java, jsp and servlets. It is a hand me down from a few technologies ago and ran well on 10.1.3.3
To display images it uses a jsp acting as a servlet which is referenced inside other jsps. Since moving to 11g the images no longer display. If I use a java class servlet it works
however I have to use the full url, e.g. http://mydomain:myport/web/Sevlet?.... which means I have to update the details for each deployment.
I can use <h:graphicImage but this means I have to include JSF and use expression language to fill in the servlet parameters.
I don't know what has changed to cause it to fail. Weblogic?
The Libraries and Classpath include
JSP Runtime
Servlet Runtime
JSTL 1.2
The servlet jsp is as follows remembering it works in 10.1.3.3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="javax.naming.Context" %>
<%@ page import="java.io.*" %>
<%@ page import="userinterface.util.ByteArray" %>
<%@ page import="userinterface.online.ImageUIHelper" %>
<%@ page import="userinterface.online.ImageUIHelperValue" %>
<%
     String dataObjectId = "";
     String regionId = "";
     boolean getObjectImage=false;
     boolean getRegionImage=false;
     // determine which type of image to retrieve
     if (request.getParameter("dataObjectId") != null)
          dataObjectId = request.getParameter("dataObjectId").toString();
          getObjectImage=true;
     } else if (request.getParameter("regionId") != null)
          regionId = request.getParameter("regionId").toString();
          getRegionImage=true;
     if (getObjectImage==true || getRegionImage == true)
          try
               ImageUIHelper imageHelper = new ImageUIHelper();
               ImageUIHelperValue vo = null;
               if (getObjectImage)
                    vo = imageHelper.doReadObjectImage(new Integer(dataObjectId));
               } else if (getRegionImage)
                    vo = imageHelper.doReadRegionImage(new Integer(regionId));
               if (vo != null && vo.getImage() != null)
                    // determine the mimetype
                    String mimeType="image/png";
                    if (vo.getFilename().toLowerCase().endsWith(".gif"))
                         mimeType = "image/gif";
                    else if (vo.getFilename().toLowerCase().endsWith(".jpg"))
                         mimeType = "image/jpg; charset=windows-1252";
                    else if (vo.getFilename().toLowerCase().endsWith(".png"))
                         mimeType = "image/png";
                    else if (vo.getFilename().toLowerCase().endsWith(".bmp"))
                         mimeType = "image/bmp";
                    response.setContentType(mimeType);
                    response.setHeader("pragma", "no-cache");
                    ServletOutputStream os = response.getOutputStream();
os.write(vo.getImage().getBytes());
                    os.flush();
                    os.close();
          } catch (Exception ex)
A simple test harness follows. The actual pages substitute the java values using <%= uri %> as below
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%
String uri = "http://localhost:7101/publicweb/img/ImageServlet?imageType=dataObject&dataObjectId=822";
String uri2 = "ImageServlet.jsp?dataObjectId=822";
String uri3 = "ImageServlet.jsp?dataObjectId=694";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>testServlet</title>
</head>
<body>
<table cellspacing="2" cellpadding="3" border="1" width="100%">
<tr>
<td width="20%">Checking Servlet</td>
<td width="80%"><img src=<%= uri %>
id="imge"
width="400px" alt="Image" />
</td>
</tr>
</table>
</body>
</html>

i responded to your duplicate message 4 days ago:
is it possible to insert and retrieve images from sql server using actionscript.
you'll need server-side script to query your database and you can use the flash urlloader class to call your script.
also  is it possible to create a flash scrolling gallery based on images  stored in a database and everytime an image is added it is displayed in  the gallery.
load the data using the urlloader class and  then load the images.  periodically query the database for new images if  there's no direct way for flash to know a new image was added.

Similar Messages

  • Problem with tutorial; "Build a Web Application with JDeveloper 11g Using "

    I've got a rather new installation of Vista Business x64 on my developer rig, and last week I installed the new JDeveloper 11g version. The installation was all-inclusive, no customization on my end.
    In addition I've got a test installation of an Oracle DB 11gR1 on an available server here.
    To familiarize myself with the new JDeveloper I decided to spend some time with the JDeveloper 11g tutorials found here: http://www.oracle.com/technology/obe/obe11jdev/11/index.html.
    I've started twice on the second tutorial, "Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces", and find myself repeatedly stuck at step 19 in section "Creating the Data Model and Testing it".
    It seems impossible to deploy the application to the default application server. The server starts fine on its own, I can access it via the admin console on port 7001 and it looks good. However, when I try to run the HRFacadeBean funny things are happening, symptomized by the following error messages seen in the IDE log-area:
    The "Messages" pane displays:
    "Compiling...
    Context: MakeProjectAndDependenciesCommand application=HR_EJB_JPA_App.jws project=EJBModel.jpr
    C:\Oracle\Middleware\jdk160_05\jre\bin\java.exe -jar C:\Oracle\Middleware\jdeveloper\jdev\lib\ojc.jar -g -warn -nowarn:320 -nowarn:372 -nowarn:412 -nowarn:413 -nowarn:415 -nowarn:486 -nowarn:487 -nowarn:489 -nowarn:556 -nowarn:558 -nowarn:560 -nowarn:561 -nowarn:705 -Xlint:-fallthrough -Xlint:-serial -Xlint:-unchecked -source 1.6 -target 1.6 -noquiet -encoding Cp1252 -d C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes -namereferences -make C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes\EJBModel.cdi -classpath C:\Oracle\Middleware\jdk160_05\jre\lib\resources.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\rt.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\jsse.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\jce.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\charsets.jar;C:\JDeveloper\mywork\HR_EJB_JPA_App\.adf;C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\toplink.jar;C:\Oracle\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_1-0.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xmlparserv2.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xml.jar;C:\Oracle\Middleware\modules\javax.jsf_1.2.0.0.jar;C:\Oracle\Middleware\modules\javax.ejb_3.0.1.jar;C:\Oracle\Middleware\modules\javax.enterprise.deploy_1.2.jar;C:\Oracle\Middleware\modules\javax.interceptor_1.0.jar;C:\Oracle\Middleware\modules\javax.jms_1.1.1.jar;C:\Oracle\Middleware\modules\javax.jsp_1.1.0.0_2-1.jar;C:\Oracle\Middleware\modules\javax.jws_2.0.jar;C:\Oracle\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.mail_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.soap_1.3.1.0.jar;C:\Oracle\Middleware\modules\javax.xml.rpc_1.2.1.jar;C:\Oracle\Middleware\modules\javax.xml.ws_2.1.1.jar;C:\Oracle\Middleware\modules\javax.management.j2ee_1.0.jar;C:\Oracle\Middleware\modules\javax.resource_1.5.1.jar;C:\Oracle\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;C:\Oracle\Middleware\modules\javax.transaction_1.0.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.stream_1.1.1.0.jar;C:\Oracle\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\wlserver_10.3\common\lib -sourcepath C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src;C:\Oracle\Middleware\jdk160_05\src.zip;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\toplink-src.zip;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink-src.zip C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\Dept.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\Emp.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeLocal.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeClient.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacade.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeBean.java
    [11:45:27 PM] Successful compilation: 0 errors, 0 warnings.
    [Application HR_EJB_JPA_App is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    The "Running: DefaultServer" displays:
    "C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    [Server Instance DefaultServer is shutting down.  All applications currently running will be terminated and undeployed.]
    Process exited.
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\stopWebLogic.cmd
    Stopping Weblogic Server...
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Connecting to t3://localhost:7101 with userid weblogic ...
    This Exception occurred at Wed Oct 29 23:47:40 CET 2008.
    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTHelper.java:512)
         at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLSTHelper.java:565)
         at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:305)
         at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
         at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:60)
         at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:125)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
         at org.python.core.PyMethod.__call__(PyMethod.java:96)
         at org.python.core.PyObject.__call__(PyObject.java:248)
         at org.python.core.PyObject.invoke(PyObject.java:2016)
         at org.python.pycode._pyx4.connect$1(<iostream>:16)
         at org.python.pycode._pyx4.call_function(<iostream>)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyTableCode.call(PyTableCode.java:404)
         at org.python.core.PyFunction.__call__(PyFunction.java:184)
         at org.python.pycode._pyx16.f$0(C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py:1)
         at org.python.pycode._pyx16.call_function(C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyCode.call(PyCode.java:14)
         at org.python.core.Py.runCode(Py.java:1135)
         at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
         at weblogic.management.scripting.WLST.main(WLST.java:129)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.WLST.main(WLST.java:29)
    Caused by: java.net.ConnectException: t3://localhost:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:203)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
         ... 38 more
    Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
         at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
         at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:225)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteCluster(RJVMFinder.java:303)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:193)
         ... 43 more
    Problem invoking WLST - Traceback (innermost last):
    File "C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py", line 1, in ?
    File "<iostream>", line 22, in connect
    WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at t3://localhost:7101 Use dumpStack() to view the full stacktrace
    Done
    I'm not that familiar with these things but it seems to me that there is an issue with port numbers here. The application seems to expect a app.server service at port 7101, but does'nt find one.
    Any suggestions on how to fix this problem would be appreciated?
    LA$$E

    Jupp,
    It fails in a similar way.
    What I did was; create a simle 'Hello World' html file, saving it with the jsp extension. In Jdev11g i made a new application and an emtpy project, then loaded the jsp file and made it the default run-target. This compiles nicely.
    When running the project it first attempts to start the WebLogicServer (WLS). After a few minutes it is started as seen in the "Running: DefaultServer" pane:
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
    WLS Start Mode=Development
    CLASSPATH=;C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.5/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\jdeveloper\modules\features\adf.share_11.1.1.jar;;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;;
    PATH=C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.5\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\oracle_client\product\11.1.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -DproxySet=false -Djbo.34010=false -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1 -Doracle.home=C:\Oracle\Middleware\jdeveloper -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\oracle\jps-config.xml -Doracle.dms.context=OFF -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
    <30.okt.2008 kl 19.20 CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
    <30.okt.2008 kl 19.20 CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3 Mon Aug 18 22:39:18 EDT 2008 1142987 >
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <30.okt.2008 kl 19.20 CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <30.okt.2008 kl 19.20 CET> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <30.okt.2008 kl 19.20 CET> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <30.okt.2008 kl 19.20 CET> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <30.okt.2008 kl 19.20 CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Server> <BEA-002611> <Hostname "Kromp.lan", maps to multiple IP addresses: 10.0.0.8, 127.0.0.1>
    <30.okt.2008 kl 19.20 CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.0.0.8:7001 for protocols iiop, t3, ldap, snmp, http.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Server> <BEA-002611> <Hostname "127.0.0.1", maps to multiple IP addresses: 10.0.0.8, 127.0.0.1>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Development Mode>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    DefaultServer startup time: 121552 ms.
    DefaultServer started.
    In the "Messages" pane, however, things are not looking so good:
    Context: MakeProjectAndDependenciesCommand application=TestAppJsp.jws project=TestProjJsp.jpr
    [7:20:49 PM] Successful compilation: 0 errors, 0 warnings.
    [Application TestAppJsp is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    But, of course, the server is actually running as I can access it via its Admin Console.
    So, I try to run the project again, and this time the following is shown in the "Messages" pane:
    Compiling...
    Context: MakeProjectAndDependenciesCommand application=TestAppJsp.jws project=TestProjJsp.jpr
    [7:26:39 PM] Successful compilation: 0 errors, 0 warnings.
    [Application TestAppJsp is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    The "Running: DefaultServer" now comes up with:
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    [Server Instance DefaultServer is shutting down.  All applications currently running will be terminated and undeployed.]
    Process exited.
    The WLS is still running though as I can still access its adm console.
    To me it seems that it is attempting to start a separate instance of the WLS for each run attempt, but then I could be wrong.....:(
    Later I'll try to change the default WLS port from 7001 to 7101 as suggested in another port here.
    I must admit that I'm a bit surprised that the JDev11g doesn't work fine at this very simple level when performing a default install.

  • How to connect sybase database in JDeveloper 11g using JConnect

    Hi
    How to connect sybase database in JDeveloper 11g using JConnect? Please help.

    User,
    It would help if you explained Sybase Jconnect instead of leaving us to google.
    At any rate, it appears you need to create a library definition in JDeveloper, add the appropriate JConnect JAR files to the library's classpath, and then add the library to your project.
    John

  • Using flash to display images from sql server or file system

    hello,
    what methods and parameters of the urlloader class we have to use to display images in a flash player if possible..
    also movie should update everytime a new image is added to a database or file
    the images can either be in a file system or in a sql database (if possible)
    does flash comes with an object of this type or we have to create it.
    regards,

    i responded to your duplicate message 4 days ago:
    is it possible to insert and retrieve images from sql server using actionscript.
    you'll need server-side script to query your database and you can use the flash urlloader class to call your script.
    also  is it possible to create a flash scrolling gallery based on images  stored in a database and everytime an image is added it is displayed in  the gallery.
    load the data using the urlloader class and  then load the images.  periodically query the database for new images if  there's no direct way for flash to know a new image was added.

  • Unable to Connect to Oracle 10gR1 database from JDeveloper 11g using OCI

    We are migrating our application from OC4J to Weblogic server. As a part, I am trying to create a database connection in JDeveloper 11g (11.1.1.3.0 - Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) to Oracle 10gR1 database. Previously I had Oracle 10g Client installed in the machine. Created a database connection using OCI driver and when I try to test connect, I got "Test Failed: no ocijdbc11 in java.library.path". I searched through Metalink and forums and one suggestion was to install Oracle 11g Client on the machine where Jdeveloper 11g is installed. I installed 11g R1 client and tried the same test connection using OCI driver. Now I am getting "Test failed: ORA-12705: Cannot access NLS data files or invalid environment specified" error.
    The same database connection works good with Thin driver with both Oracle 10g client and 11gR1 client.
    Previously I had Jdeveloper 10.1.3.2 and Oracle 10g Client and I was able to connect to database without any errors.
    Could you provide me the steps for this or if I missed any steps?
    Steps to Replicate:
    For the error: no ocijdbc11 in java.library.path
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 10g Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    ORA-12705: Cannot access NLS data files or invalid environment specified
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 11gR1 Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    Note: Tried the same scenarios with Oracle 11gR2 client as well. It was not working at all.
    Any ideas and pointers would be great.

    1. will my problem get solved after i install oracle 11g client on my machine.Yes, your problem should get solved. The version of the Oracle 11g Client must match the version of the JDev's JDBC drivers. Alternatively you may install an Oracle 11g Client and replace JDev's Oracle JDBC drivers with these from the installed client. Please, read carefully my 1st posting above in this thread.
    2. can i patch JDeveloper 11g on my machine to work with 10g client, or can i do the same with 10g client.You might succeed if you replace JDev's built-in JDBC drivers (which are 11g versions) with 10g versions, but I do not recommend you to try that because JDeveloper 11g and ADF 11g may be using some 11g features that do not exist in 10g drivers, so you may have problems.
    I also have PLSql developer installed on my machine and it works well.PL/SQL Developer does not use JDBC drivers, so it is not an relevant example in this case.
    My generall recommendation is to use Oracle JDBC Thin drivers. Oracle claimed that OCI drivers had better performance, but this was really true about earlier releases. Current Oracle 11g JDBC Thin drivers offer excellent performance and they offer all the features of the OCI versions (which was not true about earlier releases). In my opinion, the most important disadvantage of Oracle JDBC OCI drivers is that most versions have native memory leaks so all the RAM would get consumed after long application execution. The fact that WebLogic Server does not offer Oracle JDBC OCI drivers by default anymore says that Oracle discourages the usage of the OCI driver in favour of Thin driver.
    Dimitar

  • Unable to Connect to Oracle 10gR1 database from JDeveloper 11g using OCI JD

    We are migrating our application from OC4J to Weblogic server. As a part, I am trying to create a database connection in JDeveloper 11g (11.1.1.3.0 - Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) to Oracle 10gR1 database. Previously I had Oracle 10g Client installed in the machine. Created a database connection using OCI driver and when I try to test connect, I got "Test Failed: no ocijdbc11 in java.library.path". I searched through Metalink and forums and one suggestion was to install Oracle 11g Client on the machine where Jdeveloper 11g is installed. I installed 11g R1 client and tried the same test connection using OCI driver. Now I am getting "Test failed: ORA-12705: Cannot access NLS data files or invalid environment specified" error.
    The same database connection works good with Thin driver with both Oracle 10g client and 11gR1 client.
    Previously I had Jdeveloper 10.1.3.2 and Oracle 10g Client and I was able to connect to database without any errors.
    Could you provide me the steps for this or if I missed any steps?
    Steps to Replicate:
    For the error: no ocijdbc11 in java.library.path
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 10g Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    ORA-12705: Cannot access NLS data files or invalid environment specified
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 11gR1 Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    Note: Tried the same scenarios with Oracle 11gR2 client as well. It was not working at all.
    Any ideas and pointers would be great.

    1. will my problem get solved after i install oracle 11g client on my machine.Yes, your problem should get solved. The version of the Oracle 11g Client must match the version of the JDev's JDBC drivers. Alternatively you may install an Oracle 11g Client and replace JDev's Oracle JDBC drivers with these from the installed client. Please, read carefully my 1st posting above in this thread.
    2. can i patch JDeveloper 11g on my machine to work with 10g client, or can i do the same with 10g client.You might succeed if you replace JDev's built-in JDBC drivers (which are 11g versions) with 10g versions, but I do not recommend you to try that because JDeveloper 11g and ADF 11g may be using some 11g features that do not exist in 10g drivers, so you may have problems.
    I also have PLSql developer installed on my machine and it works well.PL/SQL Developer does not use JDBC drivers, so it is not an relevant example in this case.
    My generall recommendation is to use Oracle JDBC Thin drivers. Oracle claimed that OCI drivers had better performance, but this was really true about earlier releases. Current Oracle 11g JDBC Thin drivers offer excellent performance and they offer all the features of the OCI versions (which was not true about earlier releases). In my opinion, the most important disadvantage of Oracle JDBC OCI drivers is that most versions have native memory leaks so all the RAM would get consumed after long application execution. The fact that WebLogic Server does not offer Oracle JDBC OCI drivers by default anymore says that Oracle discourages the usage of the OCI driver in favour of Thin driver.
    Dimitar

  • Jdeveloper 11g using Junit38ClassRunner from junit-4.5.jar

    For some reason Jdeveloper is using the Junit38ClassRunner when I run Junit tests - so annotations like @Ignore and @Test are being ignored. Does anyone have any idea on how to change it to use the Junit4ClassRunner (which you'd kind of expect to be the default)?
    Any assistance much appreciated.

    The version of Jdeveloper is: J2EE Edition Version 11.1.2.0.0.
    Yeah - I've checked which jar the class runner is being loaded from - it's from junit-4.5.jar. If I ctrl- for the class name then when it displays the Junit38ClassRunner class, Jdeveloper displays where it's getting the source from and it's from junit-4.5-src.jar. I've also searched for the class in all the jars available to Jdeveloper and this jar is the only one in which it occurs. Same jar has Junit4ClassRunner which is obviously the one it should be using. I can't find any obvious (or less than obvious) way to configure how the junit classrunner is invoked.

  • Use JSP to display different web contents with same HTML style?

    I am very new to jsp. what i wanna do is to use jsp to link with the database containing different contents to display in a same xsl style. any advice will be much appreciated.

    You can do anything in jsp that you can with html, javaScript, xhtml, xsl, there is no difference, just write your xsl the same as you would for a static page.

  • JSP not displaying images when using filter .....

    Hi there,
    I have a very strange problem. My Jsp page works fine when I call it directly without using the filter which checks if a user is logged in.
    But when I try to hit some other URL, the filter intercepts the request and redirects to the login page in exactly the same way using response.sendRedirect(). But the page does not load the CSS or the images.
    any idea why?
    Sameet

    First, what mage does not load the CSS or images, login page or the page you were trying to go to.
    How are the images and css loaded in the jsp.
    I use something like this
    <img width="38" height="38" src="<c:out value='${pageContext.request.contextPath}'/>/images/omniManager/sunlogo_box_.5in.jpg" align="middle"/>I've had the same problem you are describing before... it turned out that in my struts config I had my forwards path incorrect. I had path="/standardInput.jsp" instead of path="/jsp/standardInput.jsp" (this is my login page)
    Don't know if this helps.. but it has to be the way you are generating the paths in your jsp. try just outputing the path to the screen and see what it is when it doesn't work.. then figure out how it gets set to that.

  • How to use "imgplot" to display image on a Control in VC++?

    I want to show a image on a static picture control on dialog by vc++, the function I used was a NI-IMAQ "imgPlot" to draw image on the control, beacuse it is easier and faster with capture card.
    imgPlot ((GUIHNDL)hFrameWnd, pImg, 0, 0, src->width, src->height,0, 0, IMGPLOT_MONO_8);
    I get the control's HWND by GetSafeHWnd() to set the first paprameter and set the second parameter with a buffer pointer, since I just want to test, so buffer data is not obtained by capture card, but from a file. No image display on the control, no errors display either, why

    I want to show a image on a static picture control on dialog by vc++, the function I used was a NI-IMAQ "imgPlot" to draw image on the control, beacuse it is easier and faster with capture card.
    imgPlot ((GUIHNDL)hFrameWnd, pImg, 0, 0, src->width, src->height,0, 0, IMGPLOT_MONO_8);
    I get the control's HWND by GetSafeHWnd() to set the first paprameter and set the second parameter with a buffer pointer, since I just want to test, so buffer data is not obtained by capture card, but from a file. No image display on the control, no errors display either, why

  • Configuring web.xml when using JSP as display technology

    Hi,
    I have a very simple HelloWorld style jsp.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
      <html>
        <head>
          <title>
            JSF in Action - Hello, world!
          </title>
        </head>
        <body>
          <h:form id="welcomeForm">
            <h:outputText id="welcomeOutput" value="Welcome to JavaServer Faces!"
                           style="font-family: Arial, sans-serif; font-size: 24; color: green;"/>
            <p>
             <h:message id="errors" for="helloInput" style="color: red"/>
            </p>
            <p>
              <h:outputLabel for="helloInput">
                <h:outputText id="helloInputLabel"
                              value="Enter number of controls to display:"/>
              </h:outputLabel>
              <h:inputText id="helloInput" value="#{helloBean.numControls}"
                           required="true">
                <f:validateLongRange minimum="1" maximum="500"/>
              </h:inputText>
            </p>
            <p>
              <h:panelGrid id="controlPanel" binding="#{helloBean.controlPanel}"
                           columns="20" border="1" cellspacing="0"/>
            </p>
            <h:commandButton id="redisplayCommand" type="submit" value="Redisplay"
                             actionListener="#{helloBean.addControls}"/>
            <h:commandButton id="goodbyeCommand" type="submit" value="Goodbye"
                             action="#{helloBean.goodbye}" immediate="true"/>
          </h:form>
        </body>
      </html>
    </f:view>To get this working I had to use the following web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>JSFHelloWorld3</display-name>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
      <context-param>
        <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
      </context-param>
      <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>resources.application</param-value>
      </context-param>
      <listener>
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
      </listener>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
    </web-app>When I go to:
    http://localhost:8080/MyApp/hello.jsp
    I get:
    org.apache.jasper.JasperException: An exception occurred processing JSP page /hello.jsp at line 23
    20: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    21: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    22:
    23: <f:view>
    24:   <html>
    25:     <head>
    26:       <title>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    root cause
    java.lang.RuntimeException: Cannot find FacesContext
         javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)
         javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
         org.apache.jsp.hello_jsp._jspx_meth_f_005fview_005f0(hello_jsp.java:119)But when I go to:
    http://localhost:8080/MyApp/hello.faces
    Everything is ok?
    I am confused why?
    Any help appreciated.

    I believe this is a url pattern issue. You have one for *.jsf as opposed to *.jsp.
    <url-pattern>*.jsf</url-pattern>
    This likely any pattern containing "faces".
    <url-pattern>/faces/*</url-pattern>
    Add one for *.jsp and you should be OK.

  • Use JSP to display MS Word file

    Hi All,
    I have a JSP web application running on Mac OS X server and have some MS Word files on the server. I want to render the MS Word files to HTML, embed it as part of the web page. Is it possible at all? If so, where to start?
    Any adviced will be highly appreciated. Thanks.

    hi,
    try this in browser..
    tools->internet options->security->custom level
    here you will find Active x controls and plugis..
    enable all of them and try your applications..
    if it is helpful pl give some points buddy:-)
    regards,
    Kranthi.

  • JDeveloper 11g Using EJB, JPA AND ADF DOES NOT WORK IN VERSION 11.1.1.1.0

    Hi all,
    I'm facing serious problems after the migration from jdev 11.1.1.0 version to new release 11.1.1.1.0, as i published with a sample at
    Problems with create new record o in JDev 11 R1
    is this a big bug in the ide? Should i return to previous version?
    Thanks in advance
    Enrique

    Hi,
    my best recommendation is to work with customer supports in this testcase.
    Frank

  • Jsp----microsoft access---image

    Hi everyone,
    I am trying to save an image in a Microsoft Access database, so i can make a query to that image using jsp, and display the image in the .jsp.
    The problem is that I don't know what data type to declare in "access" when i am creating the table.
    I have tried with OLE Object type, and it doesnt work;
    I tried also with Text type, and doesnt work either.
    what data type do i have to declare, and how should I save it in the database, so when i make the query from the .jsp the image will be displayed?
    thanks...

    Hi,
    I did it like this:
    <TD>
    <img src="images/<%= recordset.getString(5)%>">
    </TD>it worked correctly,
    but,
    I am having trouble getting all of the images from one column,
    this is what i'm trying:
        ResultSet result = null;
        ResultSetMetaData rsmd = null;
       int columns=0;
         try {
           rsmd = result.getMetaData();
           columns = rsmd.getColumnCount();
    <table width="60%" height="50%" border="1">
      <tr>
      <%
         try {
           for (int i=1; i<=1; i++) {
                 out.write("<th>" + rsmd.getColumnLabel(i) + "</th>");
      %>
      </tr>
      <%
            while (result.next()) {
               out.write("<tr>");
               for (int i=1; i<=1; i++) {
                 out.write("<td>" + result.getString(i) + "</td>");
               out.write("</tr>");
            }my problem is that I don't know how to insert the:
    <img src="images/what can I do?

  • JDeveloper 11g:Cannot see all the content of a page, because of size screen

    Hello all!
    I am developing an application with JDeveloper 11g, using ADF 11g.
    I created a page (all content is in a PSL), but when I deploy the application, if someone has a small screen, he can not see all
    information on the page.
    I want to know what I can do for him to descend, or turn left to see the entire contents of the page.
    Thank's,
    Nystan

    It kind of depends on the layout component you are using.
    A panel stretch layout should be able to adjust the size - unless you hardcoded values into its size.
    You can use a panel group with layout set to scroll to enable scrolling of the page content.

Maybe you are looking for