PROBLEM connect oracle 9i with JBOSS 3.2.3  application server

i want to connect my web app to oracle9i by jboss3.2.3 .
The database is on server machine in my domain and the application is on my local machine.
Please help me is urgent
Thanks

To configure JBoss with Oracle dataabse.
1. Copy Oracle's JDBC driver .zip file /jdbc/lib/classes12.zip to the server/default/lib directory.
2. Copy /docs/examples/jca/oracle-ds.xml , to /server/default/deploy dir.
3. In the oracle-ds.xml file set the <driver-class/> and <connection-url/> settings
Class: oracle.jdbc.driver.OracleDriver
URL: jdbc:oracle:thin:@<host>:<port>:<database>
In the Connection URL setting, <host> is the HOST value specified in the /network/ADMIN/tnsnames.ora file, and <port> is the PORT value specified in the tnsnames.ora file, and <database> is the database name.
4.
Modify the standardjbosscmp-jdbc.xml configuration file, setting the <datasource> and <datasource-mapping> elements to use Oracle:
<jbosscmp-jdbc>
<defaults>
<datasource>java:/OracleDS</datasource>
<datasource-mapping>Oracle9i</datasource-mapping>
</defaults>
</jbosscmp-jdbc>
5.
Modify login-config.xml to use Oracle. Add the following <application-policy> element to login-config.xml:
<application-policy name = "OracleDbRealm">
<authentication>
<login-module code =
"org.jboss.resource.security.ConfiguredIdentityLoginModule"
flag = "required">
<module-option name = "principal">sa</module-option>
<module-option name = "userName">sa</module-option>
<module-option name = "password"></module-option>
<module-option name ="managedConnectionFactoryName">
jboss.jca:service=LocalTxCM,name=OracleDS
</module-option>
</login-module>
</authentication>
</application-policy>
5.

Similar Messages

  • Problem connecting oracle database to jsp pages using Apache Tomcat server 8.0

    Well...I tried too many things..googled so many times..but still could not find solution to my problem.
    I use windows 8 Enterprise Edition(if this has to do something with the problem)
    Oracle 11.2.0
    Apache Tomcat server 8.0
    JDK 1.7
    My oracle is installed in the D: drive and tomcat in c:. i copied the ojdbc6.jar file from oracle to lib directory of tomcat server.
    Then i set  CLASSPATH in environment variables as "C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib\ojdbc6.jar" in system variables
    My path variable is set as "C:\Program Files\Java\jdk1.7.0_02\bin".
    My program is as follows in notepad:
    <%@ page import="java.sql.*" %>
    <html>
    <body>
    <%
    Connection conn;
    Statement st;
    ResultSet rs;
    try{
    new oracle.jdbc.driver.OracleDriver();
    String dbURL="jdbc:odbc:oracle:thin:@localhost:1521:XE";
    String userId="system";
    String pwd="moon";
    conn=DriverManager.getConnection(dbURL,userId,pwd);
    st=conn.createStatement();
    rs= st.executeQuery("SELECT * FROM login");
    while(rs.next())
    System.out.println(rs.getString(1)+""+rs.getString(2));
    catch(Exception e){}
    %>
    </body>
    </html>
    I get too many errors then
    eroors
    org.apache.jasper.JasperException: An exception occurred processing JSP page /page2.jsp at line 14
    11: String userId="system";
    12: String pwd="moon";
    13:
    14: conn=DriverManager.getConnection(dbURL,userId,pwd);
    15: st=conn.createStatement();
    16:
    17: rs= st.executeQuery("SELECT * FROM login");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
         org.apache.jsp.page2_jsp._jspService(page2_jsp.java:102)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    Nothing solved this problem.

    >> Nothing solved this problem.
    Can't fix a problem 'till an actual problem is identified.
    >> ODBC Driver Manager ... Data source name not found
    That appears to be ODBC drivers looking for a DSN (Data Set Name). If it wants a DSN, the DSN has to be specified in the code, and the DSN has to be configured in the windows host ODBC applet. So that is at least two squirrels to get in the right tree before moving forward. A ...host:...[port:]SID|service name are some of the bits needed in a jdbc connect string, and that is in no way related to DSNs. A Whole Different Animal. If it wants a DSN that might be what needs to go in the URL bit.
    And ODBC setups can be confusing, especially if an x64 OS is in the mix- if that is the case there are two different ODBC configuration applets, one for x64 the other for x86, and if one gets as far as talking to an actual database it might toss an architecture error. Only way to fix that "problem" is *delete* the ODBC DSN and then run the correct (maybe the x86) ODBC config utility, and set up the DSN. Again.

  • How to connect oracle database with JAVA

    how to connect oracle database with JAVA....
    using j2sdk and Jcreator . which connector to use .. what are the code for that ..

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • To connect oracle database with ms access database

    i want to connect oracle database with ms access database
    i have follow the following steps
    1. create ms access database.
    2. create system dsn.
    3. make change in listener.ora.
    4. make change in hs folder.
    5.change the tnsname.ora.
    6. lsnrctl stop and lsnrct start.
    7. create database link in oracle sql*plus.
    8.select the table of ms access
    but i have return the foloowing error.
    ORA-12154: TNS:could not resolve the connect identifier specified
    using window 2000, oracle 10g

    Have a look on ths thread, may it helps ...
    Re: copy access data into oracle with form builder 9i

  • Problems connecting a SE P1i to an OS X IMAP server

    I just got a brand new Sony Ericsson P1i. I got it working no problem with .mac mail, however, I am having problems connecting via SSL with the server refusing to accept user name and password (that's the error message on the phone).
    In the logs, I found the following entry:
    "starttls: TLSv1 with cipher AES256-SHA (256/256 bits new) no authentication."
    When going through the logs, I notice, that the typical SSL is using 128bits.
    I am kind of stuck. Not surprisingly, the nice people at SE couldn't help so far.
    Thanks
    Lane

    Here is how to configure .mac mail on your P1i:
    1.) go to -> Main Menu -> Control Panel -> Messaging -> Email Accounts
    2.) either select your previously set up .mac mail or go to More and choose New Account
    3) Enter the following details under the Basic tab:
    Account Name: "[email protected]"
    Your Name: "Your Name"
    Email address: "[email protected]"
    Connection Type: IMAP
    Click on Inbox tab
    Incoming server address: "mail.mac.com"
    Username: "yourdotmacusernamen"
    Password: "..."
    Receive using group: "Preferred Group" this is where you get your internet connection from
    Outbox tab
    Outgoing server address: "smtp.mac.com"
    tick Use smtp authentication
    tick Use Inbox login details
    Click on More
    click on Advance
    Inbox tab
    Secure connection: "SSL"
    Incoming mail port: "993"
    I hope this helps.
    Let me know.
    Lane

  • Problem with pdf display downloaded from application server

    Hi all,
    I have a problem with displaying pdf downloaded from application server (saved in BINARY MODE).
    I am getting the pdf output of adobe form in FPFORMOUTPUT-PDF as rawstring back to my program and then converting that rawstring into binary form using the function module SCMS_BINARY_TO_STRING.
    Now, when I export the data to presentation server directly using cl_gui_frontend_services=>gui_download, the pdf is downloaded properly.
    However, when I save the data to application server file by looping at the internal table obtained from SCMS_XSTRING_TO_BINARY and using TRANSFER, and subsequently downloading the file in "unconverted format" from AL11 to my desktop, I am getting a "blank" pdf file (with the same number of pages as the one downloaded using gui_download).
    I have tried different encodings during download but in those cases i get corrupted pdf message. only the default option of INTIAL value seems to work.
    I am forced to believe that there is a problem in my code which saves the data to app server but I cant find any solution that is logical. Any solution to this would be greatly appreciated.
    Regards,
    Sasi
    Edited by: Sasi Upadrasta on Sep 29, 2010 7:55 PM

    used a program to read the file from appl server and then downloading it to desktop.

  • JBoss 4 to Sun Application Server...where to start

    Hi there...
    I'm charged with making sure my company's product, which has mostly been running on JBoss, works w/ Sun Application Server.
    I've been trying to use the Migration Tool with poor results...I know some of it is because it's for JBoss 3 and not 4....
    giving it the entire .EAR for our product tells me that it doesn't handle webservices...diving into the EAR's JAR containing our services and removing webservices.xml gives the same result of various permutations of putting in source code / xml leads , namely it runs and then freezes with
    DefaultValidationEventHandler: [FATAL_ERROR]: Premature end of file.
    Location:
    DefaultValidationEventHandler: [ERROR]: Unexpected element {}:ejb-local-ref
    Location:
    back on the console I launched the UI from
    To possibly oversimplify, I copied out some of the most relevant .xml we have,
    ejb-jar.xml
    jboss.xml
    jbosscmp-jdbc.xml
    jboss-web.xml
    web.xml
    and put them in a single directory...now the Migration tool runs, leaves most of the files unchanged, and for our ejb-jar.xml it fails, and says
    Unknown error.
    EjbJar is Null
    Admittedly our ejb-jar.xml is handcrafted and maybe suspect, but still.
    So I guess right now I'm not too optimistic about this tool.
    Some of the problem is my understanding of what all goes in an EAR in terms of DD is weak. I'm trying to smarten up, but haven't found a good description of "these are the typical DD files for Sun Application Server", with examples or precise descriptions of the contents...and the migration tool doesn't get to the point where it's making some of the files i expected based on
    http://java.sun.com/j2ee/tools/migration/doc/JBOSS3.0_S1AS7.html
    (for example sun-cmp-mappings.xml doesn't appear anywhere in the AppServer\docs directory... )
    Any pointers or advice appreciated...

    There is an article, while it is for Application Server 7, it still could be useful:
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/docs/jse7/jse7_jboss_plugin.html

  • Is there any way to upload Tariff Code (with multiple XML files) from application server?

    Hi All,
    Is there any way to upload Tariff Code (with multiple XML files) from application server?. Its urgent.
    Regards,
    Jatin

    Hi Jatin,
    Yes, of course you can upload multiple files for tariff codes.
    This can be done by the below path:-
    SAP GTS Cockpit(tcode-/sapsll/menu_legal)-->Customs Management-->Classification-->Classification Master Data-->Upload Tariff Code Numbers from XML file(tocde- /SAPSLL/LLNS_UPL101).
    In the above area after browsing and choosing the first file, please select multiple check box to choose more files as well. Then you can further select your application server and upload all those files in one go.
    PS:- Although, we have an option to upload multiple such files but actually we should avoid multiple file uploads due to various reasons. Hence, please take utmost care during such procedure.
    Regards,
    Aman

  • I have problem to connect oracle DB with SQL developer

    I try connect to my oracle db with oracle SQL developer and received that message:
    http://ioj.com/v/camkp
    (pictures 1 and 2)
    if i try connect with sql plus, all well.
    command : select userenv('LANGUAGE') from dual; result: Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select userenv('LANGUAGE') from dual;
    *USERENV('LANGUAGE')
    RUSSIAN_RUSSIA.CL8MSWIN1251*
    in SQL DEVELOPER: (picture 3)
    check\uncheck "Skip NLS Settings", nothing changed.
    what the issue is?

    Then apparently it's still not getting the OS settings right; try to add these to \sqldeveloper\bin\sqldeveloper.conf (maybe region is enough):
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US
    AddVMOption -Duser.region=USHope that helps,
    K.

  • Oracle Communicator With Jboss AS

    I´m trying to instal OCMS with JBoss App Server. All installation finish well, but when i try to run the application server it cant start rigth and always show me this Exception:
    2007-08-30 15:00:28,475 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.sdp.locationdbservice.LocationDbServiceBD
    2007-08-30 15:00:28,475 ERROR [STDERR]      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
    2007-08-30 15:00:28,475 ERROR [STDERR]      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
    2007-08-30 15:00:28,475 ERROR [STDERR]      at
    And in the end ........
    Caused by: java.lang.NullPointerException
         at oracle.sdp.registrar.RegistrarServlet.init(Unknown Source)
         at oracle.sdp.registrar.VoipRegistrarServlet.init(Unknown Source)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
         at $Proxy60.init(Unknown Source)
         at oracle.sdp.sipservletengine.impl.SipApplicationImpl.instantiateSipServletsAndCallInit(Unknown Source)
         at oracle.sdp.sipservletengine.impl.SipApplicationImpl.start(Unknown Source)
         at oracle.sdp.sipservletengine.impl.ApplicationManagerImpl.startApplication(Unknown Source)
         ... 69 more
    2007-08-30 15:00:28,616 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@1b0a98d7{ url=file:/C:/programas/jboss-4.0.5.GA/server/default/deploy/proxyregistrarear-4.1.0-723.ear, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
    This should be really easy, but the thing is it isnt working. this sucks!
    Any body has installed it and got it working ??

    Hi Mauricio,
    I installed OCMS in JBOSS AS 4.0.5.GA installation mode.I m facing the same problem on ocms startup, i.e., proxyregistrar war file is not deployed properly. OCMS not working properly with JBOSS AS 4.2.1 GA and JBOSS AS 4.2.2 GA too i.e., OCMS MBeans are not shown in the jmx-console page and the oc is not getting connected to the ocms, traffic.log file shows that application proxyregistrar is not found. Please help me out in solving this issue.
    Regards,
    Harini Dhanasekaran.

  • How to Connect Oracle Forms6i with oracle 10g

    Hi,
    I'm using oracle 10g database in my xp operating system.. I installed forms6i on my system and edit the tnsname.ora file in the forms installation folder (C:\orant\NET80\ADMIN\tnsnames.ora) with local database tnsnamesora details..
    But still I cant connect from forms with local database.. it shows the error ''Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience.''
    pls anyone help me

    Yes. Long time ago I knew that this is not supported. See metalink/support if there is now any patch for this.

  • Problem connecting Oracle 9i Lite to Oracle 9i Database

    Hi,
    I have just started working with Oracle 9i Lite and I am having
    problems connecting to an Oracle 9i (9.0.1) database using the
    packaging wizard. I can connect ok using SQL*Plus but when I connect
    using this wizard the database is located i.e. no errors arise, but
    the database schemas and tables are not found i.e. list is not
    popluated.
    However if I try to connect to an Oracle 8i (8.1.7) database there is
    no problem and the schemas and tables are found with the list being
    popluated.
    Does anyone know what the problem could be?
    Regards
    Andrew.

    I am having a similar problem, where I couldn't connect to Oracle 8i database (817). I am getting a error message when I tried to use Packaging Wizard -> Snapshot -> Import -> Username/password and jdbc:oracle:oci8:@connect string or jdbc:oracle:thin:@host:1521:Sid
    The error message is 'No Suitable Driver. Make Sure the Proper JDBC drive for "jdbc:oracle:oci8i:@<connect string>" is in the classpath"
    I would appricated if someone can send me any help on this.
    My email address is [email protected]
    Thanks
    Joshua

  • Connect ORACLE database with sysdba privileges

    Hi Guru,
    I am connecting to my ORACLE database with my VB application.
    I have problem with connecting to the database with SYSDBA privileges. i.e it is not connecting to the database with SYSDBA privileges.
    If I connect my db from SQLPLUS. Its worked like this..
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> select Name from v$datafile;
    select Name from v$datafile
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> connect as sysdba;
    Enter user-name: user_1
    Enter password: ****
    Connected.
    SQL> select Name from v$datafile;
    NAME
    C:\NEW\ORADATA\ITPL\SYSTEM01.DBF
    C:\NEW\ORADATA\ITPL\UNDOTBS01.DBF
    C:\NEW\ORADATA\ITPL\CWMLITE01.DBF
    C:\NEW\ORADATA\ITPL\DRSYS01.DBF
    C:\NEW\ORADATA\ITPL\EXAMPLE01.DBF
    C:\NEW\ORADATA\ITPL\INDX01.DBF
    C:\NEW\ORADATA\ITPL\ODM01.DBF
    C:\NEW\ORADATA\ITPL\TOOLS01.DBF
    C:\NEW\ORADATA\ITPL\USERS01.DBF
    C:\NEW\ORADATA\ITPL\XDB01.DBF
    10 rows selected.
    SQL>
    Now in my VB application if I am using following string to connect the database.
    m_adoCnn.ConnectionString = Provider=MSDAORA;Password=pass;User ID=user_1;DBA Privilege=SYSDBA;Data Source=ITPL
    It will connect properly to the database but gives error while executing the query select Name from v$datafile;
    as,
    ORA-00942: table or view does not exist
    Can any body help me in this or provide me proper connection string.

    Hello,
    I am getting below error when i kust Clic k on Test Connection in SSMS:
    TITLE: Microsoft SQL Server Management Studio
    The test connection to the linked server failed.
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "test".
    OLE DB provider "OraOLEDB.Oracle" for linked server "test" returned message "ORA-12154: TNS:could not resolve the connect identifier specified". (Microsoft SQL Server, Error: 7303)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
    BUTTONS:
    OK
    Can you please guide is there any other setting i need to do after install Oracle Client ?
    Best Regards,
    Tushar Malvi

  • Unalbe to connect Oracle D2K with oracle 10.2.0 database

    hello,
    i've installed Oracle10.2.0 database and oracle 10.2.0 forms and reports and connected to the databse successfully. But now i also installed Oracle D2K and provide the desired service name in its tnsnames.ora file but still unable to connect it with database.
    Kindly suggest me what I am missing.
    Thank you,
    regards.

    I have been using Forms 6i (with PS 18) against 9.2.0.8 and 10g (R1 and R2) without any problem. Your issue with the connection might be because of the tnsnames.ora incompatibility. When the Forms 6i is installed, it installs 8.0.6.3 under the hood . So, instead of using the tnsnames.ora and sqlnet.ora that comes with the Forms 6i, set the TNS_ADMIN variable, and binary ftp the tnsnames.ora and sqlnet.ora from your database server (10gR2) instead. Then try again.
    Hope this proves useful.

  • Oracle Workflow with Jboss

    hi all,
    Anybody have worked with jOracle workflow and Jboss?
    Any problem?
    Thanks a lot
    Juan

    Sorry, Oracle Workflow and Jboss...

Maybe you are looking for

  • T410 performanc​e issues..

    My t410 laptop is pretty slow from last few days.  Haven't  installed anything specific except Orace db express edition. Moment I start few programs, it takes lot of time to switch from one program to another.. Right now, following programs are runni

  • Employee Master change

    Hi guys, I need to know is it possible that employee master data is entered by one person and confirmation by another person. In FI one person changes vendor master data and anonther person confirm it.  Thanks in advance Anand

  • CS5 contact sheet search?

    Can anyone tell me what happened to the contact sheet in cs5?  Any suggestions for a workaround if its been removed?

  • My podcast is on the itunes store but I haven't recieved the confirmation email yet. What does this mean?

    I submitted a podcast to the itunes store on 10-25-2014. I haven't yet recieved the confirmation email yet my podcast is now on the store, searchable and downloadable. Why haven't I recieved the email yet? What should I do?

  • How do I create random pulse heights for BNC555 pulse generator?

    I am trying to use a BNC555 to create a pulse with a random magnitude. The library given by NI has been great to start, but I cannot seem to take the adjustable pulse height and transform it to a random pulse height. Any ideas? Has anyone seen this d