PHP4 + Oracle 9i Apache Server

Hy
i got a problem compiling php4 with the apxs under
$ORACLE_HOME/product/Ora9i/Apache/Apache/bin/apxs
the error message is :
checking for Apache module support via DSO through APXS...
Can't locate strict.pm in @INC (@INC contains: /project4/iAS1021/src/pdc_perl/bin/Linux/Opt/lib/5.00503/i686-linux /project4/iAS1021
/src/pdc_perl/bin/Linux/Opt/lib/5.00503 /project4/iAS1021/src/pdc_perl/bin/Linux/Opt/lib/site_perl/5.005/i686-linux /project4/iAS102
1/src/pdc_perl/bin/Linux/Opt/lib/site_perl/5.005 .) at /app/oracle/product/Ora9i/Apache/Apache/bin/apxs line 64.
BEGIN failed--compilation aborted at /app/oracle/product/Ora9i/Apache/Apache/bin/apxs line 64.
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path.
anybody knows about this strict.pm script ?
thanks

It should be relatively straight forward.
If you have WAR files which you've deployed to Tomcat, then you should pretty much be able to deploy them as is to OracleAS using the application server control management console.
The mgt console has support for WAR file deployment.
In the documentation, the User's Guide is a good book to read to get up to speed.
http://download-west.oracle.com/docs/cd/B10464_02/web.htm
If you have just a collection of JSPs as your application, then I'd recommend you put them into a WAR file archive, and then deploy that.
cheers
-steve-

Similar Messages

  • Oracle 8i, Apache server and Intel P4

    Is somebodey out there that managed to install Oracle 8i DB and
    Apache HTTP server on computer with Intel P4 (Windows 2000 Pro,
    1GB RAM, 20GB HDD)? Do examples (JSPs, Java beans, JDBC
    connections...) on Apcahe work?
    In our case we already spent too much time with workaround's
    (from metalink) and we have no success!
    Thank you for helping us.
    Neja

    Im not sure I understand your question. Can you give me mroe
    details please?
    Thanks,
    Jay Tomlinson

  • Getting Error 2140 while starting Oracle Apache Server in 11.5.6 Apps

    We are on Oracle Apps R11.5.6 on Win NT 4.0.
    When I tried to stop and start the Oracle Apache Server service, the service stopped normally but did not start at all. The error is as given below:
    When I try to start Apache Server through the services, I get the following error:
    "Could not start the OracleApacheServerTEST service on \\son1052.
    Error 2140: An internal Windows NT error occured."
    When I try to start Apache Server through the command prompt, I get the error:
    The OracleApacheServerTEST service is starting.
    The OracleApacheServerTEST service could not be started.
    The service did not report an error.
    More help is available by typing NET HELPMSG 3534.
    D:\oracle\testcomn\admin\scripts>goto end
    D:\oracle\testcomn\admin\scripts>echo "adapcctl.cmd exiting with status 2"
    "adapcctl.cmd exiting with status 2"
    D:\oracle\testcomn\admin\scripts>net helpmsg 3534
    The service did not report an error.
    EXPLANATION
    The service did not report an error.
    ACTION
    Try the task later. If the problem persists, contact your network administrator.
    What might be the problem?
    Any help would be greatly appreciated.
    Thanks in Advance.
    Praveen
    [email protected]

    Login from svrmgrl and shutdown the db and then restart the db now start the service and it must start. This problem comes when you restart the server. I hope this will solve your problem.
    [email protected]

  • Apache server in oracle

    Hi
    I have installed oracle version 9.2 under linux 7.3. Also we are trying to install another apache. Now my problem is that even though i have stopped the oracle apache and try running the apache under root i get an error 'You need to supply a username and a password to access this site. SITE XDB at superO'. I was informed by one of my colleagues that the problem is because of oracle apache. In this case if i have to uninstall oracle apache server, how do i do it and will there be any effect on the oracle installed, or i have to deinstall oracle and reinstall again.
    Thanks

    as far as de-installing Apache server installed along with Oracle is concerned, you need to run the
    Oracle installer again (runInstaller script), and select de-install products from the main screen.
    from there select the apache server entries and remove them.
    But havaing Oracle Apache should not hava any effect since the configuration files for the two installations
    should be at different locations.
    You need to check the httpd.conf script for the apache web server and make sure that you have anonymous
    access to the web server enabled.

  • IFS 1.1.5/Oracle Apache Server/Linux

    I have just installed iFS 1.1 for Linux on a new installation of Oracle 8.1.7 on Linux. My apologies in advance if my problem has been addressed in another post on this forum, but I have looked through most of the messages without finding someone with the same problem.
    After doing all of the installs and then running "ifsapachesetup" to configure the Oracle HTTP server to access iFS, I encountered all sorts of problems trying to run any servlet or JSP using the Apache server, including the iFS servlet (every servlet access said "Internal Server Error".)
    To make a long story short, my configuration seems to work now if I remove "servlet.startup=files" from zone.properties in the Apache JServ configuration directory. In other words, the automatic startup seemed to hose the entire JServ instance. (I got many errors saying "cannot connect to localhost:8007 ..." in jserv.log) I tried many different configurations while manually editing the JServ configuration files, and this one seemed to be the only one in which all of the servlets, including iFS, worked correctly. Does this make any sense?
    Also, if I tried to run the iFS servlet/JSPs using the newer Apache Tomcat servlet engine, will there be any problems with that? I'm not talking of whether its supported or not, but is it feasible?
    null

    I messed around with it as well. First apache complained the jserv parameters could not be set twice (JServ option was already included in httpd.conf, so had to remove the duplicate).
    Then I had to remove the / /root Ap directive from the jserv configuration file (known bug with the ifsapachesetup script).
    Then I found out the link had to be http://myhost/ifs/files.
    Next ajp12 came up saying it could not contact port 8001. I installed JDK 1.1.8 at first, which seems to be a nasty wrapper-sort-of version without the tools.jar (??) which are in the wrapper.classpath.
    So I installed JDK 1.3, changed the symbolic link in $ORACLE_HOME/Apache/jdk and now everything seems to work.
    Latest problem in fact WAS related to jdk 1.1.8 (both v1 and v3 didn't work), and although it might not be supported, it works like a dream, just chokes on my memory resources :)

  • Configuring HTTP Apache Server with Oracle Apex

    Hi All,
    I have trawled through various threads on here to see if it would help my resolve the problem i seem to be having, but to no avail :(
    I have an oracle RAC db with apex installed. the RAC uses a service: apextest.com
    I have an HTTP Server installed on a seperate server, I have copied the Images over so it knows what to use. Made sure the httpd.conf file is pointing to the correct images path.
    As its a RAC db, i have put in the dads.conf file a 'TNSFormat' setting for the 'PlsqlDatabaseConnectString', using the TNSnames.ora entry named DEXTER which uses the apextest.com service name.
    My dads.conf file:
    Alias /i/ "/apex/Apache/Apache/images/"
    AddType text/xml       xbl
    AddType text/x-component       htc
    <Location /pls/apex>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure         wwv_flow_file_mgr.process_download
    PlsqlDatabaseConnectString     DEXTER TNSFormat
    PlsqlNLSLanguage               AMERICAN_AMERICA.AL32UTF8
    PlsqlAuthenticationMode        Basic
    SetHandler                     pls_handler
    PlsqlDocumentTablename         wwv_flow_file_objects$
    PlsqlDatabaseUsername          APEX_PUBLIC_USER
    PlsqlDefaultPage               apex
    PlsqlDatabasePassword          apex_pword
    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    Allow from all
    </Location>My TNSnames Entry:
    DEXTER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = servername.com)(PORT = 1521))
        (ADDRESS = (PROTOCOL = TCP)(HOST = servername2.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = apextest.com)
      )i can tnsping using the apex_public_user account and correct password and also sqlplus using the same account and password:
    tnsping DEXTER
    sqlplus apex_public_user/apex_pword@DEXTERim getting the error of:
    Service Temporarily Unavailable
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
    The error log is spitting out -
    mod_plsql: /pls/apex/apex HTTP-503 ORA-12514Does anyone have any ideas? Anything i've missed out / not done ?
    Note: I have used the same HTTP Apache Server to host a version of apex4 on a standalone database which is installed on the same server. So just wondered if that has anything to do with it?
    thanks in advance :)

    Hello,
    According to the error ORA-12514, there is a problem for the mod_plsql to connect to the database :
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Is the "alias" DEXTER defined in the file tnsnames.ora used by mod_plsql ?
    Regards

  • Is it possible to upgrade only apache in oracle 10g application server.

    Hi All,
    I have to upgrade only apache in oracle 10g application server with out upgrading oracle 10g as.
    Is it possibel to upgrade only apache version in oracle 10g application server. if yes.could you suggest the steps that i need to follow.
    This is very urgent.
    Thanks in advance.
    Regards,
    Sathya

    If your trying to upgrade just apache in that oracle home, then no. If your trying to upgrade to a real apache version, from apache.org, mod_oc4j won't work. You need to use Oracle's version of Apache or HTTP Server.
    Is there a reason you only want to upgrade Apache and not the whole oracle home?
    There are ways to do it, but it wouldn't be supported by Oracle and I wouldn't recommend that either.
    Edited by: user11993398 on Apr 13, 2011 3:04 PM

  • How can i create datasource on apache server for ADF application?

    Hi All,
    i my use case i have created simple adf application using ADF BC and want to deploy on Apache server 6.x.
    So my question is that  how can i create Data Source i have goggling and find  two different way to do this.
    1. write following line of code on apache server conf/Context.xml file.
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource"
                   driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"/>
    but when i have used this way i got following exception.
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
    check link-
    https://forums.oracle.com/thread/2564233
    2. write following line of code apache conf/Server.xml file
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/TestDB" auth="Container"
                  type="oracle.jdbc.pool.OracleDataSource"
                  description="User database that can be updated and saved"
                  driverClassName="oracle.jdbc.driver.OracleDriver"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@//172.31.43.207:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"   />
      </GlobalNamingResources>
    and add this line in context.xml file inside <context> tag
    <ResourceLink global="jdbc/TestDB" name="jdbc/TestDB" type="oracle.jdbc.pool.OracleDataSource"/>
    but when i have run application i have got following error
    log-
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    Aug 2, 2013 5:17:21 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    so what is the solution how to create datasource on apche server which suitable for adf application?
    when i test data source using  following code used 1. way as i mentioned above  its running fine bt not for second.
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <sql:query var="rs" dataSource="jdbc/TestDB">
    select empname from pay_emphdr where empcd='JK1306'
    </sql:query>
    <html>
      <head>
        <title>DB Test</title>
      </head>
      <body>
      <h2>Results</h2>
    <c:forEach var="row" items="${rs.rows}">
        Foo ${row.empname}<br/>
    </c:forEach>
      </body>
    </html>
    please help me. it is very urgent.
    thanks in Advance
    Manish

    Hi Lindalnci
    i have already tried  this tutorial and in my post i have defined first way to do using this procedure.
    in that case i have got following exception as i have mentioned above
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection

  • Oracle 9i Application Server+Oracle 8i EE+ Forms on the web Very urgent

    Hi,
    I have correctly install Oracle 9i Application Server and Oracle 8i Entreprise Edition on Windows 2000. What are the following steps to follow in order to run a form on the web. example: test.fmx?
    Thanks in advance.
    null

    If your web server is working and the forms server is running type:
    http://ip addr:port/dev60html/runform.htm
    You need to put the ip address or name of your server in and the port number apache is running on (leave blank if this is 80).
    This gives you the Oracle Forms start screen.
    cheers
    tony

  • After running ridc to checkin file into Oracle Content Center Server there is error: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line

    Hi,
       I use ridc to check in file into Oracle Center Content server. There is no problem at the beginning. But after running for several days, there is following error.
    I must restart my program to solve this issue.
       Can anyone help me solve this problem?
    Thanks,
    Tony
    2013-07-11 12:24:31,189 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
    ception: java.io.IOException: Input terminated before being able to read line
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
            at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
            at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
            at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
            ... 17 more
    Caused by: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
            ... 19 more
    2013-07-11 12:24:33,005 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
    ception: java.io.IOException: Input terminated before being able to read line
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
            at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
            at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
            at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
            ... 17 more
    Caused by: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
            ... 19 more
    2013-07-11 12:24:37,870 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
    ception: java.io.IOException: Input terminated before being able to read line
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
            at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
            at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
            at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
            ... 17 more
    Caused by: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
            ... 19 more
    2013-07-11 12:24:39,722 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
    ception: java.io.IOException: Input terminated before being able to read line
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
            at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
            at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
            at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
            ... 17 more
    Caused by: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
            ... 19 more

    The following is my testing code.
    package ebilling;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.security.SecureRandom;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.List;
    import java.util.Properties;
    import java.util.concurrent.LinkedBlockingQueue;
    import java.util.concurrent.ThreadPoolExecutor;
    import java.util.concurrent.TimeUnit;
    import oracle.stellent.ridc.IdcClient;
    import oracle.stellent.ridc.IdcClientManager;
    import oracle.stellent.ridc.IdcContext;
    import oracle.stellent.ridc.model.DataBinder;
    import oracle.stellent.ridc.model.DataObject;
    import oracle.stellent.ridc.model.DataResultSet;
    import oracle.stellent.ridc.model.TransferFile;
    import oracle.stellent.ridc.protocol.ServiceResponse;
    import org.apache.commons.lang.StringUtils;
    public class UCMContentManager {
         * Check in a file into a Oracle WebCenter Content Server and return content id of uploaded content item in Oracle WebCenter Content Server.    
         * @param properties        The Oracle WebCenter Content Server connection properties.
         * @param contentFile       This file will be checked in a Oracle WebCenter Content Server.
         * @param path              The location path of checked in file in Oracle WebCenter Content Server. This path includes the file name.<br>
         *                             For example, "/folder1/folder2/file1.txt". The "file1.txt" is the file name part. <br>
         *                             The file name will be used as dDocName in Oracle WebCenter Server. It must be unique.<br>
         * @throws ContentException The exception when uploading file into Oracle WebCenter Content Server.
         * @return                  The content id of uploaded content item in Oracle WebCenter Content Server.
        public String saveContent(Properties properties, File contentFile, String path) throws ContentException{
            if(path.endsWith(SLASH)) {
                throw new ContentException("Require file name in Content Management Server");
            if(!path.startsWith(SLASH)) {
                throw new ContentException("The file store path in Content Management Server should be absolute.");
            if (path.indexOf("//") != -1) {
                path = path.replace("//", SLASH);
            String[] paths = path.split(SLASH);       
            String[] parents = new String[paths.length - 1];
            String itemName = paths[paths.length-1];
            System.arraycopy(paths, 0, parents, 0, paths.length-1);
            ServiceResponse response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                //create the parent folders if they don't exist
                String folderGUID = makeFolders(properties, parents);
                //check in the file
                DataBinder requestData = client.createBinder();
                requestData.putLocal("IdcService", "CHECKIN_UNIVERSAL");
                requestData.putLocal("IsJava", "1");
                requestData.putLocal("dDocName", itemName);           
                requestData.putLocal("dDocTitle", itemName);           
                requestData.putLocal("dDocType", "Binary");
                requestData.putLocal("dSecurityGroup", "Public");
                requestData.addFile("primaryFile", new TransferFile(contentFile));
                response = client.sendRequest(connectionContext, requestData);           
                DataBinder responseData = response.getResponseAsBinder();
                //String did = responseData.getLocal("dID");           
                String dDocname = responseData.getLocal("dDocName");
                closeResponse(response);
                //link the file in a folder
                requestData = client.createBinder();
                requestData.putLocal("IdcService", "FLD_CREATE_FILE");
                requestData.putLocal("fParentGUID", folderGUID);
                String fileType = "owner";
                requestData.putLocal("fFileType", fileType);           
                requestData.putLocal("dDocName", dDocname);           
                response = client.sendRequest(connectionContext, requestData);
                return dDocname;
            } catch (Throwable e) {
                throw new ContentException(e);
            } finally{
                closeResponse(response);
        public void deleteContent(Properties properties, String contentId) throws ContentException{
            List<String> didList = getDIds(properties, contentId);
            contentId = contentId.toUpperCase();
            ServiceResponse    response = null;
            try {           
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                DataBinder requestData = null;
                for(int i=0; i<didList.size(); i++) {
                    String did = didList.get(i);
                    requestData = client.createBinder();
                    requestData.putLocal("IdcService", "DELETE_DOC");
                    requestData.putLocal("dDocName", contentId);               
                    requestData.putLocal("dID", did);   
                    response = client.sendRequest(connectionContext, requestData);
                    closeResponse(response);
                    //delete parent folder
    //                try {
    //                    requestData = client.createBinder();           
    //                    requestData.putLocal("IdcService", "FLD_DELETE");       
    //                    requestData.putLocal("item1", "path:" + parentPath);
    //                    requestData.putLocal("constructDialog", "1");
    //                    response = client.sendRequest(connectionContext, requestData);
    //                } catch (Exception e) {
    //                    // TODO: handle exception
            } catch (Exception e) {
                throw new ContentException(e);
            } finally {
                closeResponse(response);
        public int getFileCountInFolder(Properties properties, String path) throws ContentException{
            ServiceResponse    response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                DataBinder binder = client.createBinder();
                binder.putLocal("IdcService", "FLD_BROWSE");
                binder.putLocal("path", path);
                response = client.sendRequest(connectionContext, binder);
                DataBinder result = response.getResponseAsBinder();
                String num = result.getLocal("numFiles");
                return Integer.parseInt(num);
            catch (Exception e) {
                throw new ContentException(e);
            } finally {
                closeResponse(response);
        private String getFolderGUID(Properties properties, String path) throws ContentException {
            ServiceResponse    response = null;       
            String tmpFolderGUID = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;   
                DataBinder requestData = client.createBinder();
                requestData.putLocal("IdcService", "FLD_INFO");
                requestData.putLocal("path", path);       
                response = client.sendRequest(connectionContext,
                        requestData);
                DataResultSet result = response.getResponseAsBinder().getResultSet("FolderInfo");
                tmpFolderGUID = result.getRows().get(0).get("fFolderGUID")
                    .toString();
                if(StringUtils.isBlank(tmpFolderGUID))
                    tmpFolderGUID = null;           
            } catch (Exception e) {               
            } finally {
                closeResponse(response);
            return tmpFolderGUID;
        public boolean deleteFolder(Properties properties, String path) throws ContentException {
            if(getFolderGUID(properties, path)==null)       
                return false;
            int fileCount = getFileCountInFolder(properties, path);
            ServiceResponse    response = null;
            if(fileCount==0) {
                try {
                    IdcClientManager manager = new IdcClientManager();
                    IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                    client.getConfig().setProperty ("http.library", "apache4");
                    String user = properties.getProperty(USERNAME_PROPERTY);
                    String pwd = properties.getProperty(PASSWORD_PROPERTY);
                    IdcContext connectionContext = new IdcContext(user, pwd);
                    pwd = null;               
                    DataBinder binder = client.createBinder();   
                    binder.putLocal("IdcService", "FLD_DELETE");       
                    binder.putLocal("item1", "path:" + path);
                    binder.putLocal("constructDialog", "1");
                    response = client.sendRequest(connectionContext, binder);
                    return true;
                catch (Exception e) {
                    throw new ContentException(e);
                } finally {
                    closeResponse(response);
            } else {
                return false;
        private String buildPath(String[] arr, int i) {
            StringBuilder buf = new StringBuilder();
            for(int j=0; j<=i; j++) {
                buf.append(arr[j]);
                buf.append(SLASH);
            return buf.toString();
        private String makeFolders(Properties properties, String[] paths) throws ContentException{
            String folderGUID = "";
            ServiceResponse response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                String parentFolderGUID = null;
                for(int i=0; i<paths.length; i++) {
                    String fullPath = buildPath(paths, i);
                    DataBinder requestData = null;                   
                    parentFolderGUID = folderGUID;
                    folderGUID = getFolderGUID(properties, fullPath);
                    boolean exists = folderGUID!=null;
                    DataResultSet result = null;               
                    if(!exists) {
                        //create new folder
                        try {
                            requestData = client.createBinder();                   
                            requestData.putLocal("IdcService", "FLD_CREATE_FOLDER");
                            requestData.putLocal("fParentGUID", parentFolderGUID);
                            requestData.putLocal("fFolderName", paths[i]);
                            response = client.sendRequest(connectionContext, requestData);
                        } finally {
                            closeResponse(response);
                        //retrieve folderGUID of new folder
                        folderGUID = getFolderGUID(properties, fullPath);                   
            } catch (Throwable e) {
                throw new ContentException(e);
            } finally{
                closeResponse(response);
            return folderGUID;
        public List<String> getDIds(Properties properties, String contentId) throws ContentException{
            contentId = contentId.toUpperCase();
            List<String> didList = new ArrayList<String>();
            ServiceResponse    response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                DataBinder requestData = null;
                requestData = client.createBinder();
                requestData.putLocal("IdcService", "GET_SEARCH_RESULTS");
                requestData.putLocal("SortField", "dInDate");
                requestData.putLocal("SortType", "DESC");
                requestData.putLocal("QueryText", "dDocName <matches> `" + contentId +"`");
                response = client.sendRequest(connectionContext, requestData);
                DataBinder result = response.getResponseAsBinder();
                DataResultSet resultSet = result.getResultSet("SearchResults");
                for (DataObject dataObject : resultSet.getRows()) {
    //                System.out.println("ID : " + dataObject.get("dID")+" dDocName : "
    //                        + dataObject.get("dDocName") + " Title : " + dataObject.get("dDocTitle")
    //                        + " Author : " + dataObject.get("dDocAuthor") + " Security Group : "
    //                        + dataObject.get("dSecurityGroup"));
                    String did = dataObject.get("dID");
                    didList.add(did);
                    //break;
            } catch (Exception e) {
                throw new ContentException(e);
            } finally{
                closeResponse(response);
            return didList;
         * Get the file content represented by contentId from a Oracle WebCenter Content Server.
         * The return value is the input stream of retrieved file content.
         * @param properties        The Oracle WebCenter Content Server connection properties.
         * @param contentId         The Content ID for the content item in Oracle WebCenter Content Server.
         * @throws ContentException The exception when retrieving content from Oracle WebCenter Content Server.
         * @return                  The input stream of retrieved file content.
        public InputStream retrieveContent(Properties properties, String contentId) throws ContentException{
            try {
                return new FileInputStream(retrieveContentFile(properties, contentId));
            } catch (Throwable e) {
                throw new ContentException(e);
        public File retrieveContentFile(Properties properties, String contentId) throws ContentException {
            contentId = contentId.toUpperCase();
            ServiceResponse response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                DataBinder binder = client.createBinder();
                binder.putLocal("IdcService", "GET_FILE");
                //binder.putLocal("dID", dID);
                binder.putLocal("dDocName", contentId);
                binder.putLocal("RevisionSelectionMethod", "Latest");
                response = client.sendRequest(connectionContext, binder);
                InputStream in = null;
                OutputStream out = null;
                String edxhome = System.getProperty("edx.home");
                File tmpParent = new File(edxhome);
                tmpParent = new File(tmpParent, "Output");
                tmpParent = new File(tmpParent, "tmp");
                tmpParent.mkdirs();
                File tmpFile = File.createTempFile("down_", "_ucm", tmpParent);
                tmpFile.deleteOnExit();
                try {
                    in = response.getResponseStream();
                    out = new FileOutputStream(tmpFile);
                    byte[] buf = new byte[1024];
                    int read = -1;
                    while((read = in.read(buf))!=-1) {
                        out.write(buf, 0, read);
                } finally{
                    try {
                        if(in!=null)
                            in.close();
                    } catch (Exception e2) {
                    try {
                        if(out!=null)
                            out.close();
                    } catch (Exception e2) {
                return tmpFile;
            } catch (Throwable e) {
                throw new ContentException(e);
            } finally{
                closeResponse(response);
        private void closeResponse(ServiceResponse response) {
            if(response!=null) {
                try {
                    response.close();
                } catch (Exception e) {
        private static final String SLASH = "/";   
        private static final String URL_PROPERTY = "contentServerURL";
        private static final String USERNAME_PROPERTY = "contentServerUser";
        private static final String PASSWORD_PROPERTY = "contentServerPassword";
        static volatile boolean flag = false;
        static class UploadTask implements Runnable{
            public void run() {           
                try {
                    while(!flag) {
                        UCMContentManager manager = new UCMContentManager();
                        Properties properties = new Properties();
                        properties.put(URL_PROPERTY, "https://slc402124:16201/cs/idcplg");
                        properties.put(USERNAME_PROPERTY, "weblogic");
                        properties.put(PASSWORD_PROPERTY, "weblogic1");
                        File contentFile = new File("C:/toding/mypro/UCM/test.txt");
                        String parentPath = "/new/test/multiThreadUpload/";
                        String location = makePath(parentPath);
                        manager.saveContent(properties, contentFile, location);
                        System.out.println(location);
                        Thread.sleep(5000);
                } catch (Exception e) {
                    e.printStackTrace();
                    flag = true;
        public static void main(String[] args) throws Exception{
            ThreadPoolExecutor executor = new ThreadPoolExecutor(10, 10, 60, TimeUnit.SECONDS,
                     new LinkedBlockingQueue<Runnable>());
            for(int i=0; i<10; i++) {
                 UploadTask uploadTask = new UploadTask();
                 executor.execute(uploadTask);
            while(!flag) {
                Thread.sleep(5000);
            executor.shutdown();
        public static String makePath(String parentPath) {
            StringBuilder buf = new StringBuilder();
            buf.append(parentPath);
            if(!parentPath.endsWith("/")) {
                buf.append("/");
            Calendar rightNow = Calendar.getInstance();
            String pattern = "yyyyMMdd";
            SimpleDateFormat simDateForm = new SimpleDateFormat(pattern);
            String dateStr = simDateForm.format((rightNow).getTime());       
            pattern = "HHmmssSSS";
            simDateForm = new SimpleDateFormat(pattern);
            String timeStr = simDateForm.format((rightNow).getTime());
            buf.append(dateStr);
            buf.append("/");
            buf.append(timeStr);
            buf.append("_");
            buf.append(random.nextInt(10000));
            String finalLocation = buf.toString();
            return finalLocation;
        private static SecureRandom random = new SecureRandom();

  • Accessing many databases with HTML DB from a single Apache Server

    Hello;
    I am planning the install of 10g and HTML DB on a HPUX server with many databases running out of many Oracle Homes 9.2.0, 9.0.1 and 8.1.7. I will be upgrading a number of the existing databases to 10g and want to access them with HTML DB.
    My question is how can I install HTML DB on many databases and use a single Apache Server to access them?

    Where would I find the DADs? a default installation of htmldb puts the modplsql DAD, "pls/htmldb", in a marvel.conf file located in $OHS_HOME/Apache/modplsql/conf/marvel.conf
    What would the URLs look like? not sure what you're asking. if you're asking about how the change in DAD's would affect the URLs you're calling, though, you should consider looking over the OHS (oracle http server) doc some more before making these types of customizations.
    And how would I install the HTML DB in the different databases?
    Would I use the installer or scripts?the only supported way to install htmldb is via the 10g Companion CD. just use that installer to point to your different db's.
    regards,
    raj

  • Font mapping in Oracle 6i Report Server

    Dear All,
    I am creating a report which is required to display the Palatino Linotype font in the PDF format by using the Report Builder in MS Windows XP.
    After deploy to Oracle 6i report server which is running in Solaris, I was facing a problem to generate a PDF report in Palatino font. After a few tries to configure the uifont.ali I'm still failed to get the PDF report to display the font correctly.
    Below is the setting that I had been done, that is under the PDF section I had added in the mapping.
    [ PDF ]
    "Palatino Linotype" = palatino
    #"Times New Roman" = Times
    #"Courier New" = Courier
    #"Times Roman" = Times
    Could anyone help on this. Thanks in Advanced.

    The servlet runs on the server and only call the Reports 6i CGI. It isn't a true servlet in Reports 6i. I configured my servers to run reports 6i as a servlet and it was terrible. It crashed several times. After opening a tar with Oracle, I found that running Reports 6i as a servlet is a waste of time because it still uses the CGI to run the Report.
    Do a search on for a topic of "Configuring Apache Web Server".
    "The recommended way to use a web client in Reports 6i is cgi since 6i Report servlet essentially calls the c-code only inside and does not offer a true servlet based architectural benefit. 9iAS Rel-2 offers a true Servlet based architecture and offers much more performance and scalability gains for the user plus with all the new Reports 9i features."

  • Oracle Web App Server performance problems

    I am evaluating Oracle Web Application Server 3.0 and while
    everything seems to work ok, the performance is noticeably
    slower than Oracle Web Server 1.0 or 2.0. I have narrowed the
    problem down to the access/execution time to a database
    package. In other words, the PL/SQL code I have built does not
    contain any Oracle SQL statements. The package simply builds a
    small web page. If I had to guess, I would say it appears to be
    related to either a log-in to Oracle (which does not take that
    long in a ProC program) or excessive child process creation
    overhead (other programs like Apache handle this just fine). I
    created the package in the www_user account, set a virtual path
    of /test/owa/ to access it and while the page displays
    correctly, it takes about 12 to 13 seconds to do so.
    I'm running Linux on a Dell 400 MHz Pentium II with 1 Gb of
    ram. I have tried changing the cartridge configuration so that
    it starts with 2 processes instead of the default 0. This
    helped some after the first execution of the package (response
    time went from 12 seconds down to about 7). I am running it
    without security on the virtual path (I thought maybe that was
    slowing things down). I tried setting the user sessions to true
    (default was false) and setting a timeout of 1200. None of
    these things helped (nor did they make it any worse).
    On an old HP system (much slower SQLPlus response time than this
    Dell system), web pages fly at a pretty good speed using PL/SQL
    and version 2 of the web server. Except for the actual database
    query time to perform SQL queries, pages display in subsecond
    time frames; not 12 seconds.
    Please give me some idea how to improve the performance.
    Obviously, something is different with 3.0 than the older wrb
    and server.
    Thanks,
    Bob
    [email protected]
    null

    I am evaluating Oracle Web Application Server 3.0 and while
    everything seems to work ok, the performance is noticeably
    slower than Oracle Web Server 1.0 or 2.0. I have narrowed the
    problem down to the access/execution time to a database
    package. In other words, the PL/SQL code I have built does not
    contain any Oracle SQL statements. The package simply builds a
    small web page. If I had to guess, I would say it appears to be
    related to either a log-in to Oracle (which does not take that
    long in a ProC program) or excessive child process creation
    overhead (other programs like Apache handle this just fine). I
    created the package in the www_user account, set a virtual path
    of /test/owa/ to access it and while the page displays
    correctly, it takes about 12 to 13 seconds to do so.
    I'm running Linux on a Dell 400 MHz Pentium II with 1 Gb of
    ram. I have tried changing the cartridge configuration so that
    it starts with 2 processes instead of the default 0. This
    helped some after the first execution of the package (response
    time went from 12 seconds down to about 7). I am running it
    without security on the virtual path (I thought maybe that was
    slowing things down). I tried setting the user sessions to true
    (default was false) and setting a timeout of 1200. None of
    these things helped (nor did they make it any worse).
    On an old HP system (much slower SQLPlus response time than this
    Dell system), web pages fly at a pretty good speed using PL/SQL
    and version 2 of the web server. Except for the actual database
    query time to perform SQL queries, pages display in subsecond
    time frames; not 12 seconds.
    Please give me some idea how to improve the performance.
    Obviously, something is different with 3.0 than the older wrb
    and server.
    Thanks,
    Bob
    [email protected]
    null

  • Error_log in apache server keep on growing

    I found the error_log in apache server keep on growing in every second! Anyone can tell me why it's growing like this?
    I have Oracle 9i Database on Windows XP Professional on Core 2 Duo/ 2 GB RAM machine.
    I have a peculiar problem. The error_log file in C:\oracle\Apache\Apache\logs\error_log keeps increasing in size rapidly, until my whole hard disc of 250 GB gets used up. The first time I had this problem, I thought it was some virus, then I traced it to this file.
    I tried deleted this file, but again its cones & stars growing until I STOP HTTP server.
    I also tried to make error_log file 'READ ONLY' but issue is not resolved.
    Can anyone tell me what the cause and solution of this problem is.
    Help appreciated!

    Please See below:
    [Sun Jul 18 15:07:03 2010] [notice] FastCGI: process manager initialized
    [Sun Jul 18 15:07:03 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" started (pid 2720)
    [Sun Jul 18 15:07:04 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 2720) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:08 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 2792)
    [Sun Jul 18 15:07:08 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 2792) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:13 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 3336)
    [Sun Jul 18 15:07:13 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 3336) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:18 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 3044)
    [Sun Jul 18 15:07:18 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 3044) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:23 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 3124)
    [Sun Jul 18 15:07:24 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 3124) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:28 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 628)
    [Sun Jul 18 15:07:28 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 628) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:33 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 3168)
    [Sun Jul 18 15:07:33 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 3168) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:38 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 2320)
    [Sun Jul 18 15:07:38 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 2320) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:43 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 2108)
    [Sun Jul 18 15:07:43 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 2108) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:48 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 488)
    [Sun Jul 18 15:07:48 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 488) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:53 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 524)
    [Sun Jul 18 15:07:53 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" (pid 524) terminated with exit with status '3504464'
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" restarted (pid 560)
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    [Sun Jul 18 15:07:58 2010] [warn] FastCGI: server "c:/oracle/bin/isqlplus" can't be restarted:exceeded max restarts
    and so on........

  • Forms 6i and Apache server

    HI all,
    I have an assignment to replicate production installation to another environment on another server. Currently what is installed on those servers is:
    - Main server (production): Windows server 2000 SP4, Forms 6i service, Reports 6i service , iSuites HTTP listener. In some documents I found that 9i Rel1 Applications Server was actually installed creating Forms60service, Reports60service and HTTP listener. Unfortunately, I don't have access to 9i Rel1 disks (only 9i Rel2 and Forms6i Rel2) and since it is desupported, I can't download them online.
    - Other server: Windows Server 2003 ( with installed Forms 10g and services disabled).
    What I did was install Forms6i server and Apache web server. Apache server works, and I made aliases so it can access files on the server. Aliases were taken from documentation of production installation. However, I don't know how to make Apache listen for forms server requests. I assume in 9i it is handled automatically, like in 10g?
    Questions:
    -Does 9i Rel1 create those services? I'm new to 9i and 6i AS, and don't have disks to test it. Is there a way to download 9i Rel1?
    -How can Apache be configured to handle requests to Forms server? Its now listening on port 81, and when called gives a blank page. JInitiator isn't started.
    Any help would be greatly appreciated.

    If you are using a standalone Apache install and not the one included with iAS 1.0.2, you must run the Forms Server. If you are using the iAS installation, you can use either the Forms Server or the Forms Servlet. The Forms Servlet takes advantage of JServ, which allows requests from Forms to route on the same port by which the HTTP listener is using. On the other hand, if you don't use the Servlet and instead use the Forms Server, requests from the client are routed from the client directly to the Forms Server on a different port. In this case the HTTP Server is only used for the initial request which then pass future requests to the server. The down side to this is that you must run 2 servers and have 2 available ports - one for the http listener and one for Forms. This is why using the Servlet is preferred.
    I believe you must be using Forms 6i Release 2 (6.0.8.11) plus patch 10 or 11 or newer in order to successfully deploy using Servlet. This translates into being iAS 1.0.2.2.2 if I recall correctly.
    Here are some doc references which may be of help:
    http://www.oracle.com/technetwork/developer-tools/forms/documentation/techlisting-084882.html
    http://www.oracle.com/technetwork/documentation/6i-forms-084462.html
    http://www.oracle.com/technetwork/documentation/forms-094534.html
    http://www.oracle.com/technetwork/documentation/dev-arch-093406.html

Maybe you are looking for

  • Error MessageDuring Creation of Blu-ray Disc in FCP and Compressor 3.5

    Yesterday I spent more than 7 hours trying to create and burn a Blu-ray disc (actually an AVCHD disc on DVD-5 media) in both FCP 7 and Compressor 3.5. In every case, disc creation would go to completion of the encoding of the video and audio files, b

  • Whats the best way to place an image in DW CS5.5

    Hello all, what is the best way to place an image exactly where I would like it to go in Dreamweaver CS5.5? I have my images sliced in Fireworks already. Also since my images are sliced already in Fireworks is there a way to place the images exaclty

  • Standard Transaction Code for CRMD_ORDER

    HI, Can anyone tell me what is the standard transaction code for CRMD_ORDER Regards VINI

  • Seeking a longer power cord???  (G4-flatscreen IMAC)

    Are longer power cords available rather than the standard 6-footers? If not, does anyone have a solution that would get me to at least 8 feet? Thanks.

  • Oracle user ID Role

    Hi, I need to know what are the minimum access role i should assign in Oracle RDBMS for user ids' for (planning, essbase, shared services, financial reporting etc). Ex.: Connect, create/modify, delete tables etc... Regards N Kumar