Creating Connection File by hardcoding it?

When one connects to a database the name for the connection
is the "Data Source Name" which is then recorded to a file that
appears in the grayed Source Code area. For example, connecting to
a database (under database tab) named Herbie creates a file called
Herbie.asp (programming in VB Script). This file is then saved to a
directory off the root called Connections.
How do we take an existing Connections file and tell
dreamweaver to incorporate it into a given page without going
through the Database tab process?
Any input would be appreciated. Thanks!

Danilo,
Thanks for the reply.
For other readers that might have a similar problem, here is
a link to the docs that tells one how to set things up:
http://livedocs.adobe.com/dreamweaver/8/using/wwhelp/wwhimpl/common/html/wwhelp.htm?contex t=LiveDocs_Parts&file=28_con11.htm
I think I need to be a little more specific so as to define
the environment I'm working with. It's Vista with IIS7 installed. I
can and did setup the connection as you mentioned in the reply.
Sure does work. However, when I tried to upload those files it was
one error right after another. I eventually discovered, by trial
and error, what the solution was.
The problem was determining the connection string, not on the
local system, but the hosting company - GoDaddy. To do that, one
needs to figure out where ones account directory is to write the
path info to the database. I modified the herbie.asp connection
string that dreamweaver created to the following:
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
' The lines above were created by dreamweaver
dim oConn
dim db_path
db_path =
"d:/hosting/myaccountdirectory/access_db/TheDatabaseToConnectTo.mdb"
Dim MM_Herbie_STRING
MM_Herbie_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & db_path
Set oConn = Server.CreateObject("ADODB.Connection")
%>
Now perhaps to the casual observer the first question might
be, where and how did he come up with db_path string? Is it the old
"Watch me pull a rabbit out of my hat" thing? Well, if you need to
do this part yourself, copy that info and comment out the
"d:/hosting..." line and then upload the file and test it. You
won't see your page but you'll see the error that's generated. That
error tells you the path that the hosting company is looking for.
Then change that info in your own file to that of the reported
error.
Now after all that work, which took more hours than I care to
think about a problem in one sitting, I wanted to have that file
info available to other pages I need to design.
One simply cannot type the connection string shown above in
the creation process for connecting a recordset. Dreamweaver barks
at you for even trying.
Adding the #include file manually in source? Love to. I
created a blank page for VBScript and then saved the html as an asp
page. Here is the source code that anyone can generate:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
Where in this source would I include the herbie.asp file.
Would it appear under the tab with source code (in design view)?
Here is a code snip that does work and was setup by using
local connections so that dreamweaver could set up herbie.asp.
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/Connections/Herbie.asp" -->
<%
Dim rsRefOnFile
Dim rsRefOnFile_cmd
Dim rsRefOnFile_numRows
Set rsRefOnFile_cmd = Server.CreateObject ("ADODB.Command")
rsRefOnFile_cmd.ActiveConnection = MM_Herbie_STRING
But the problem is, how do I attach say herbie.asp to a blank
page so that dreamweaver knows about the included file? Is there a
way to make dreamweaver understand the connection string that I
need: MM_Herbie_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & db_path?
Right now I have to develop local recordset connections and
let dreamweaver create the herbie.asp. I then have to redo the
contents of herbie.asp and upload the file. Lots of work for a few
pages and if I need to edit something down the road, the odds that
I remember this might be slim to none.
I hope I was not to detailed in this but gave enough info for
others who might come across the same situation.
Thanks again for the input. Any further suggestions?
Wayne

Similar Messages

  • Contact your help desk with this information: cannot create connection file "CitrixID"

    Has anyone overcome an issue with logging in to a Citrix server and getting the following message: Contact your help desk with this information: cannot create connection file “CitrixID”? I can log on, but once logged in, the apps available to me will not launch.  All worked fine before I upgraded to OS X Mavericks. I do a lot of foreign travel and Citrix kept me connected to the office. Unfortunately, our IT team aren't really "Mac Guys" so they are just as perplexed as I am. I have deleted and deleted Citrix Receiver several times as posts on other sites recommended, but to no avail.

    There are some discussions on the citrix forum that may help if you haven't already seen them. Here are two and there are likely more:
    http://discussions.citrix.com/topic/325359-reciever-117-cannot-write-connection- file-usersnamelibraryapplication-supportcitrix-receivermodules/
    http://discussions.citrix.com/topic/302900-reciever-1143-cannot-write-connection -file-userschristinalibraryapplication-supportcitrix-receivermodules-error-numbe r-30/

  • How to create and export a sharepoint list connection file to excel connection file library from power pivot?

    Hi All,
    I'm new to SharePoint and Power BI.
    I've to use  share point 2013 lists to create power view reports. For that, I need to create Power Pivot in Excel 2013.
    I'm fine with the above. We normally take a data feed of a list and create connection to that. We need to create a connection file (.odc) and export it into a excel file connection library of Share point. The connection to be made to share point list. The
    power pivot will be having multiple related lists.
    How can I create a connection file which is referring to share point list
    Please suggest.
    Regards,
    Julie

    Hi All,
    Finally, I could find the answer for this question after a long search.
    First of all, open a new excel file in server.
    Data-->From other connection-->From data connection wizard-->data feed-->Location of the data feed-->
    http://sharepointsite/sitename/_vti_bin/ListData.svc
    -->next-->select the lists which you need-->next-->only create connection-->properties--->export connection file
    -->ok
    The connection file has been created and .odc file exported to the specified location.
    Open power pivot and check the connection in existing connections.
    Exported file has to be uploaded in Excel file connection library of share point 2013. So that you can refer the same in this excel file when you upload it into share point.
    Regards,
    Julie

  • Cannot create a file Loader Connection for Linux

    Im using ODQ 11.1.1.3 with the server installed on Linux and client on Windows.
    I have created a directory on the server for all my data files. The user (oracle) that starts the scheduler has full read write access to these directories.
    In Metabase Manager I try and create a delimiter loader connection specify the linux directory location (/u02/oracle/data/tss). I get no error from the client and no error in the mtb_server.log file.
    I have looked at the documentation http://download.oracle.com/docs/cd/E17904_01/core.1111/e16453/odpinstalling.htm#BCGDJHIH, what seems strange is that it tells you to create a user and this is how it is accessed but it does not tell you how to link the metabase manager to that user, or am I missing something.
    any help greatly appreciated.
    cheers
    James

    Hi Yeswanth
    Then you can try with a "Add Counter". This will create new file each time with the same name but a counter will be added to the file name at the end specifying the number of times it is created.
    You can also the specify the format to create the counter once select this option u can correspondingly fill the Format and step fields.
    Will this be fine.
    Regards
    Ashmi

  • Crystal Server 2013: How to troubleshoot "Can not create temp file---- Error code:-2147215357"

    We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.
    The app is being deployed on many different servers. We sometimes got the error below when generating report:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
    Problem is, this seems to be  a pretty generic exception. It could be caused by many different reasons.
    e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.
    Each time we could only guess what's wrong.
    We are running into it again, and this time everything seems correctly configured so far.
    We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?

    Prithviraj Shekhawat wrote:
    Hi Henry,
    I believe you are using RAS SDKs to export the reports to PDF.
    Apply trace on RAS server and check what you find in RAS logs.
    Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.
    Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.
    Thanks,
    Prithvi
    >>I believe you are using RAS SDKs to export the reports to PDF.
    Yes
    >>Apply trace on RAS server and check what you find in RAS logs.
    >>Check whether you can see timeout error is RAS logs.
    How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?
    >>Also, does the account that runs RAS have permissions to create
    >>a file in RAS's default temp directory?
    Pretty sure yes.
    >> Are you getting any out of memory or out of disk space exceptions
    >>on App server or RAS, tracing RAS server is the way to move forward.
    Not on App server.
    For RAS, that's the problem, I am not sure where to look.......

  • How to create the file on a location where user having rights?

    Hi,
    I have requirement, in my application a lot program thatcreating a report in a file and it is written into a user location. Now it specified directly like ( c:\ or d:\......).
    The problem is that the user doesn't have rights to access that directories. What i suggest or feel i want to create that particular reports on a location where the end user having rights.
    Basically in Windows system %userprofiles% having right to do anyting. Suppose the OS installed in C: the %userprofiles% c:\documents and settings\username or D: then D:\Document and settings\username.
    How to achieve this please help me.
    Good help will be appreciated.
    kanish

    Hello,
    The best practice would be to create the file in My Documents for the current connected user to the windows.
    Unfortunately, you did not mention your forms version. In older version like 6.x there is function in d2kwutil library called Read_Registry in win_api_environment section and in latest versions the same function availble in webutil library with client_ name.
    So, you can read the registery for current connected user by using the above mentioned function from the following path of registry.
    My Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    There is an entry called Personal. Read the path from that entry at runtime while generating/saving file to the client's location and save the file into that path.
    -Ammad

  • Creating A File Resource Using Tomcat JNDI

    Hi guys,
    My problem is that I am creating a web service and I cannot get to a properties file without creating an absolute reference to that file. If I was creating a servlet I would simple use getServletContext() method to get a relative reference to it. However since it is an axis web service i have to deploy my applications in the WEB-INF/services directory, and because it does not interact with the axis servlet I cannot use getServletContext(). So i thought I could create a JNDI file resource reference in the tomcatHome/conf/context.xml file, similar to how I created a JNDI connection pool. The resouce definition looks like this;
    <Resource name="resource/dialogueEngineConfig" auth="Container"
                      type="java.io.File"
                      url="file:/Applications/apache-tomcat-5.5.1/webapps/axis2/META-INF/DialogueEngine.properties">
    </Resource>now I tried to access the resource in my code like this;
    // Obtain our environment naming
    Context envCtx = (Context) new InitialContext().lookup("java:comp/env");
    // Look up our file
    File  f = (File) envCtx.lookup("resource/dialogueEngineConfig");However I get a NamingException; 'Cannot create resource instance'
    I don't understand why I cant create a file resource in JNDI, it seems like a simple enough thing to do. Am I doing something wrong or missing something? Any help would be greatly appreciated.
    Thanks

    Hello xalien,
    I have the same problem. I need to access external xml config file via JNDI from my servlet, running on Tomcat 5.0.28. Have you manage to define an URL resource? If so, please provide an example how to do it. Many thanx.

  • Create Outbound File in a Different System

    Hi All,
    I have developed an ABAP outbound interface which is suppose to download a CSV file to application server. I have a selection screen field for file location .This program will be scheduled in background and variable will be saved with the file location. I am using open data set and close data set statements to create the file.
              We have other outbound ABAP interfaces where we download files to application server but in all those interfaces files are downloaded to our own application server but for this new interface the file location is on our business partner's server.
             Can anybody please tell me if I can download file to a location on our business partner's server using open data set statement and if yes what are the additional things I need to do for the program to download a file in that location?
    Like.
    1. Who should have authorization to that location when the program is scheduled to run in background.
    2. Does the SAP system itself need to get some access to that external system and if yes how do we get it ? I mean do we have to do anything on our side or should the partner do something on their side?
    3. And any other additional setting.
    Please help me by providing your valuable inputs.
    Thanks,
    Jhansi

    Hi
    Open dataset statament can work for Application Server only, so you can't use it for downloading a file in another server.
    One solution can be to send the file from your server to the partner one via ftp: that means you need to create the file in your application (by open dataset) and then to send it via ftp.
    So you need to change your interface program in order to add the abap code to manage ftp (see the program RSFTP00*):
    1. Who should have authorization to that location when the program is scheduled to run in background.
    The authorization should have the same of the other interface
    2. Does the SAP system itself ....
    Your SAP system has to allow to send a file via ftp, but this is a standard function, probably is just active in your system
    Partner Server has to allow to receive a file via ftp: you need to get an agreement with your partner
    3. And any other additional setting.
    Just to active ftp: ask your basis (If i remember one of reports  RSFTP00* generates the RFC connection for ftp, if it's missing)
    Max

  • Is there a way to create pdf files offline?

    Is there a way to create pdf files offline?

    Certainly, that's what Acrobat does. (But not Adobe's PDF Pack).
    Note that you will need an internet connection to install Acrobat and (so far as I know) every month to check your license. So it's no use if you will be off net.

  • How to add a custom Project field in the "OData Projects Data.odc" connection file? Project server 2013

    Hi,
    I created a project Enterprise field named "Countries and Cities" which contains a lookup table with information such as "USA.Seattle". How can I add this field in the oData connection file?
    Thanks 

    Paul,
    How do you write the custom field name
    "Countries and Cities" which contains 2 spaces?
    I always get the error:
    "We couldn't get data from the Data Model, Here'is the error message we got:
    The content of the data feed is not valid for an Atom feed."
    Thanks

  • Error when inserting into dynamically created filename-file

    Howry
    Am am receiving the following error when i am trying to insert into a file that have a dynamic filename (through declared variable, as date etc.).
    I presume it is trying to look for the target file with the same name as the dynamic value passed through by the variable, but cannot find it- can anyone tell me how i can rather create the file as appose to insert into an already created file..?
    Your help in this regard is much appreciated.
    Here is the error:
    ODI-1217: Session SAPO_hlr_suburbs (1577001) fails with return code 7000.
    ODI-1226: Step 6_Ins_final fails after 1 attempt(s).
    ODI-1240: Flow 6_Ins_final fails while performing a Integration operation. This flow loads target table #l_date.unl.
    ODI-1228: Task 6_Ins_final (Integration) fails on the target FILE connection SAPO_HLR_SUBURBS.
    Caused By: java.sql.SQLException: File C:\Files\Gero work\ODI In Files\SAPO_HLR_SUBURBS/2012-01-24 12:06:13.463.unl was not found
         at com.sunopsis.jdbc.driver.file.FileConnection.prepareForWriting(FileConnection.java:339)
         at com.sunopsis.jdbc.driver.file.impl.commands.CommandInsert.execute(CommandInsert.java:50)
         at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)
         at com.sunopsis.jdbc.driver.file.FilePreparedStatement.executeUpdate(FilePreparedStatement.java:138)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java:665)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeUpdate(SnpSessTaskSql.java:3218)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java:1785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2805)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java:68)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:619)

    What operating system are you using?
    The name of your file has the time within it , you cant have a filename with ':' in it on Windows.
    Try using ALPHANUMERIC datatype for the variable and pull the current datetime as a char with something like :
    select to_char( sysdate ,'YYYY-MM_DD HHMISS') from dual

  • 11i RW-50004 while creating control file...

    Dear all,
    Kindly let me know what this log file sys...
    I am trying to install 11i on OEL4.6 with 2GB RAM in VMware for Important test purpose. While creating control file in second stage i am getting this Error:,,
    RW-50004 : Error code received when running external process.
    Check log file for details.
    I have check ORALCEHOME/appsutil/log/SID/04270524.log
    Please let me know this error.
    Regards
    GAZA
    Creating the control file for abc_apps11i database ...+
    SQLPlus: Release 9.2.0.5.0 - Production on Fri Apr 27 06:23:10 2012*+
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    ORA-01012: not logged on+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0641: "EXECUTE" requires connection to server+
    ORA-01031: insufficient privileges+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    exit_code=0+
    Checking for errors ...+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01012: not logged on+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    The database has not been successfully created. Shutting down the instance ...+
    SQLPlus: Release 9.2.0.5.0 - Production on Fri Apr 27 06:23:12 2012*+
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    Cannot create control file for abc+
    RW-50010: Error: - script has returned an error:   9+
    RW-50004: Error code received when running external process.  Check log file for details.+
    Running Database Install Driver for abc instance+

    Please make sure the user accounts for the installation (applmgr/oracle) have full privileges.
    Oracle Applications Installation Guide: Using Rapid Install -- Page 1-9
    http://docs.oracle.com/cd/B25516_18/current/acrobat/r115102ins.pdf
    If you still have the same issue, please upload all the log files to any free hosting website and post the link here so we can review it.
    Thanks,
    Hussein

  • Failed to obtain/create connection from connection pool after redeploy

    I have a web application (.war) that uses a jdbc connection pool. The application works fine, however after I redeploy it using the administration console I get "Failed to obtain/create connection from connection pool [ Datavision_Pool ]. Reason : null" followed by "Error allocating connection : [Error in allocating a connection. Cause: null]" from javax.enterprise.resource.resourceadapter and I am forced to restart the instance. I am running Sun Java System Application Server 9.1 (build b58g-fcs)
    using a connection pool to a Microsoft SQL 2000 database using inet software's JDBC drivers. I need to be able to redeploy applications without having to restart the instance. Any help is appreciated.

    I have turned on some additional diagnostics and found out some answers and a work-around, but I think that there may be a bug in the way JDBC connection pool classes are loaded. The actual error was a null pointer in the JDBC driver class in the perpareStatement method. The only line in this method is "return factory.createPreparedStatement( this , sql );" and the only possible NPE would be if the factory was null, which should be impossible because it is a static variable and it is initialized when the class is loaded. The problem occurs because we deploy the JDBC driver .jar file within our .war file, for use when a client doesn't have or want to use connection pooling. Apparently, the connection pool must have picked up some of these classes and when the .war was redeployed, the reference to the factory was lost for existing connections (not sure how). If I remove the JDBC .jar file from the .war, it works, but that wasn't an ideal solution, the other way to get it to work was to change the sun-web.xml file to have <class-loader delegate="true">. We previously had it set to false in version 8.1 because of interference with a different version of the apache Tiles classes, which has now been addressed in version 9.1.
    I still think there is an issue, because the connection pool should never use the application specific classloaders. Am I wrong to believe this?

  • Rapid install gettin error when create control file

    hai all ,
    i faced problem when im install fresh ebs R12
    my environment :
    sun sparc 64 bit
    solaris 11
    this occur when i try to install fresh R12
    using rapidwiz , the error say ORA-00821: Specified value of sga_target 1024M is too small, needs to be at least 2100M
    and when creating control file failed,
    is any clue with this problem ?
    all prerequisite  reference to doc :
    R12.1.1 : Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Oracle Solaris on SPARC (64-bit) (Doc ID 761568.1)
    the detail log below this
    Log file located at /oracle/PROD/db/tech_st/11.1.0/appsutil/log/PROD_SMJKT-PRFND01/ApplyDatabase_11071358.log
    ^M
      |      0% completed       ^M
      /      0% completed       ^M
      -      0% completed       ^M
      \      0% completed       RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    Cannot execute configure of database using RapidClone
        RW-50010: Error: - script has returned an error:   1
    RW-50004: Error code received when running external process.  Check log file for details.
    Running Database Install Driver for PROD instance
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-00821: Specified value of sga_target 1024M is too small, needs to be at least 2100M
    ORA-01078: failure in processing system parameters
    CREATE CONTROLFILE REUSE SET DATABASE "PROD"
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    alter database open resetlogs
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0

    hai asif,
    solved my problem , with this doc
    Oracle VM Server for SPARC (previously known as LDoms or Logical Domains) :
    To set the number of VCPUs for a given Logical Domain (LDom), use the 'ldm(1M)' with the 'set-vcpu' option:
    # /opt/SUNWldm/bin/ldm set-vcpu <number> <logical_domain>
    For example to configure eight VCPUs for the Logical Domain named "ebs1":
    # /opt/SUNWldm/bin/ldm set-vcpu 8 ebs1
    Please review the Logical Domains Administration guide for detailed information.
    Users can then revert the number of VPUs to the original or desired values as a post EBS install step.
    thanks a lot..
    regards
    Imrons

  • Problem with creating Connection pool and JNDI, driver is not detected

    Hi,
    I have an issue with creating Connection Pool and JNDI.
    I'm using:
    - JDK 1.6
    - OS: Linux(ubuntu 8.10)
    - Netbeans IDE 6.5.1
    - Java EE 5.0
    - Apache Tomcat 6.0.18 Its lib directory contains all necessary jar files for Oracle database driver
    - Oracle 11g Enterprise
    My problem is that the Oracle database driver is not detected when I want to create a pool (it works pretty well and is detected without any problem when I create ordinary connection by DriverManager)
    Therefore after running:
    InitialContext ic = new InitialContext();
    Context context = (Context)ic.lookup("java:comp/env");
    DataSource dataSource = (DataSource)context.lookup("jdbc/oracle11g");
    Connection connection = dataSource.getConnection();and right after dataSource.getConnection() I have the following exception:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at servlets.Servlet1.doPost(Servlet1.java:47)
    at servlets.Servlet1.doGet(Servlet1.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    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.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)
    ... 17 more
    My application context file (context.xml) is:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/WebApplication3">
      <Resource auth="Container"
                      driverClassName="oracle.jdbc.OracleDriver"
                      maxActive="8"
                      maxIdle="4"
                      name="jdbc/oracle11g"
                      username="scott"
                      password="tiger"
                      type="javax.sql.DataSource"
                      url="jdbc:oracle:thin:@localhost:1521:database01" />
    </Context>and my web.xml is:
        <resource-ref>
            <description>Oracle Datasource example</description>
            <res-ref-name>jdbc/oracle11g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
    ...I found similar threads in different forums including sun, such as
    http://forums.sun.com/thread.jspa?threadID=567630&start=0&tstart=0
    http://forums.sun.com/thread.jspa?threadID=639243&tstart=0
    http://forums.sun.com/thread.jspa?threadID=5312178&tstart=0
    , but no solution.
    As many suggest, I also tried to put context directly in the server.xml (instead of my application context) and referencing it by <ResourceLink /> inside my application context but it didn't work and instead it gave me the following message:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '   ' for connect URL 'null'
    Has anyone succeeded in creating a connection pool with JNDI by using Tomcat 6 or higher ? If yes, could kindly explain about the applied method.
    Regards,

    Hello again,
    Finally I managed to run my application also with Tomcat 6.0.18. There was only two lines that had to be modified
    in the context.xml file (the context of my application project and not server's)
    Instead of writing
    <Context antiJARLocking="true" path="/WebApplication2">
        type="javax.sql.DataSource"
        factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    </Context>we had to write:
    <Context antiJARLocking="true" path="/WebApplication2">
        type="oracle.jdbc.pool.OracleDataSource"
        factory="oracle.jdbc.pool.OracleDataSourceFactory"
    </Context>- No modification was needed to be done at server level (niether server.xml nor server context.xml)
    - I just added the ojdbc6.jar in $CATALINA_HOME/lib (I didn't even need to add it in WEB-INF/lib of my project)
    - The servlet used to do the test was the same that I presented in my precedent post.
    For those who have encountered my problem and are interested in the format of the web.xml and context.xml
    with Tomcat 6.0, you can find them below:
    Oracle server: Oracle 11g Enterprise
    Tomcat server version: 6.0.18
    Oracle driver: ojdbc.jar
    IDE: Netbeans 6.5.1
    The context.xml file of the web application
    <?xml version="1.0" encoding="UTF-8"?>
    <Context antiJARLocking="true" path="/WebApplication2">
        <Resource name="jdbc/oracle11g"
                  type="oracle.jdbc.pool.OracleDataSource"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@localhost:1521:database01"
                  driverClassName="oracle.jdbc.OracleDriver"
                  userName="scott"
                  password="tiger"
                  auth="Container"
                  maxActive="100"
                  maxIdle="30"
                  maxWait="10000"
                  logAbandoned="true"
                  removeAbandoned="true"
                  removeAbandonedTimeout="60" />
    </Context>The web.xml of my web application
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <resource-ref>
            <description>Oracle Database 11g DataSource</description>
            <res-type>oracle.jdbc.pool.OracleDataSource</res-type>
            <res-auth>Container</res-auth>
            <res-ref-name>jdbc/oracle11g</res-ref-name>
        </resource-ref>
        <servlet>
            <servlet-name>Servlet1</servlet-name>
            <servlet-class>servlets.Servlet1</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Servlet1</servlet-name>
            <url-pattern>/Servlet1</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
    </web-app>Ok, now I'm happy as the original problem is completely solved
    Regards

Maybe you are looking for

  • How? Flex pass variables or call function in SWF

    Dear All: I am new in Flex. But I stuck with a problem for weeks. I wish to communication between Flex and Flash(swf). I tried to pass variable from Flex to Swf. (Call function in Swf also pass variables) I did some tourital on google by using SWFLoa

  • Do I have to buy remote desktop for all the computers I want to access?

    I am trying to figure out if when I download the Remote Desktop for my laptop how do I then connect to my studio PC. Do I need to pay th 79 dollars again to hav the app running on the other computer?

  • GS60 (970M) Gold Edition

    Hey guys, I've been looking at the Ghost series laptops for as long as I can remember. I was looking to buy the Gold Edition with the 970M and was about to pull the trigger until I came across the issue of it having a terrible refresh rate of 48hz wh

  • My credit card was charged but did not get the application

    Hello, I have tried to contact bellshare but still no answer. I have previously bought bebuzz 4 on mobihand and since i cannot pay an updrade I bought bebuzz 5 from app world. When i clicked purchase i got this error "There is a problem with your cre

  • Cumulative update 5 for SQL Server 2012 SP2 is released

    Cumulative update 5 for SQL Server 2012 SP2 is released https://support.microsoft.com/en-us/kb/3037255 MDS related fix is: FIX: The notification email link is broken when a special character is part of the URL in SQL Server 2012 MDS http://support.mi