Connecting Tomcat to MSsql

I am new to this and am having trouble connecting to a MSSQL database. I am getting the following error message...
org.apache.jasper.JasperException: /pizza.jsp(11,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
etc..
Has anybody seen this before?
I have downloaded j2sdk1.4.2_03, Tomcat 5.0 and the JSTL and have run a few simple examples like passing data from one page to another which are fine so I know the server is running ok - I think.
I have also downloaded the SQL Server 2000 Driver for JDBC and put the 3 .jar files into the lib directory of my application.
I have a test database called Orders on the same machine that I have Tomcat etc and the username and password are correct.
The top of the jsp page is as follows:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
<sql:setDataSource var="mdb" scope="application"
                                        driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"                         url="jdbc:microsoft:sqlserver://localhost/Orders:1433"
     user="username"                                   password="password" />
<sql:query var="ordersx" dataSource="${mdb}">
     select * from Orders
</sql:query>
I am not sure what I have done wrong but I am hoping it is something very obvious.
Thanks
Sarah

I guess the first question is what version of JSTL did you get, and how did you install it?
It looks to me to be version 1.0 (compatible with JSP1.2) because of the taglib URIs.
Seeing as you jave Tomcat 5.0, which is JSP2.0 compliant you should consider using the JSTL 1.1
If you HAVE got JSTL 1.1 you should use these URIs for the taglibs:
ie http://java.sun.com/jsp/jstl/core (note the addition of jsp into the URI)
Now about this error.
The error message refers to TLD files.
It is complaining the the dataSource tag of the sql:query tag is not defined to accept expressions.
That is confusing to me, because it should. (It works on my machine)
Do you have entries in your web.xml for these taglibs? Where do they point?
Do you have a tld file for these taglibs in your web-inf directory?
If you answered yes to either of these, questions, then delete those files or remove those entries. They are unneccesary. Everything you need for JSTL should be in the jstl.jar and standard.jar files which are in your web-inf/lib directory. Entries in web.xml and tld files lying around will probably just confuse the web server, and create this error.
Hope this helps,
evnafets

Similar Messages

  • Error while creating JDBC connection pool for MSSQL database

    Hi,
    From my windows m/c, I am trying to configure a connection pool to connect to
    an MSSQL database on another m/c. While setting the targets, i get the error :-
    <Mar 11, 2004 6:17:52 PM GMT+08:00> <Error> <JDBC> <Cannot startup connection
    pool "gcdb_connpool" Cannot load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
    I have added the path of the jars for the driver in the classpath.
    Any help would be appreciated.
    Thanks.

    Hi. Read the weblogic startup script, and follow how it creates
    a classpath argument for the server. You must get the driver jars
    into that classpath.
    Joe
    Neha wrote:
    Hi,
    From my windows m/c, I am trying to configure a connection pool to connect to
    an MSSQL database on another m/c. While setting the targets, i get the error :-
    <Mar 11, 2004 6:17:52 PM GMT+08:00> <Error> <JDBC> <Cannot startup connection
    pool "gcdb_connpool" Cannot load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
    I have added the path of the jars for the driver in the classpath.
    Any help would be appreciated.
    Thanks.

  • Login timeout expired-2EETW169 no connect possible:"DBMS = MSSQL" DBNAME=""

    Hi, SDN fellows.
    I finished applying SPs for Solman Manager 7.0 (updated to Solman 7.1 EHP1 - just the Java Stack with JSPM). Then, I decided to start install SAP ECC 6.0 IDES in D drive (solman currently installed in C drive). When I ran the SAP ECC installer till the screen where it require Solution Key, I stopped the process due to invalid solution key provided. 
    After that, my Solman system became not able to connect to MS SQL server anymore. Here is the trans messages I got from "R3Trans -d".
    Not sure what isthe root cause, but I found couple messages maybe the leads to root cause.
    I wonder why the DBNAME become empty on this line: 2EETW169 no connect possible: "DBMS = MSSQL                            ---  SERVER = 'MYSERVER101' DBNAME = ''".
    These message also shown that this maybe login related issue:
    4 ETW000  [     dev trc,00000]  CopyLocalParameters: dbuser is 'dbo'                                      19  0.004714
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: line 24466. hr: 0x8000ffff Login timeout expired
    4 ETW000                                                                               
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    4 ETW000
    LOG BY0=>Login timeout expired [dblink#4 @ 433]  
    Thanks for advices,
    KC

    4 ETW000                                                                                45  30.272192
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  30.272209
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    4 ETW000                                                                                63  30.272272
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 20  30.272292
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    4 ETW000                                                                                42  30.272334
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  30.272351
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    4 ETW000                                                                                38  30.272389
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  30.272406
    4 ETW000  [     dev trc,00000]  Using Provider SQLNCLI                                                 10214  30.282620
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: MARS property was set successfully.                  75  30.282695
    4 ETW000  [     dev trc,00000]  Sun Jul 24 07:23:58 2011                                             15172939  45.455634
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: line 24466. hr: 0x8000ffff Login timeout expired
    4 ETW000                                                                                41  45.455675
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Login timeout expired
    4 ETW000                                                                                43  45.455718
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  45.455735
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    4 ETW000                                                                                75  45.455810
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 27  45.455837
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    4 ETW000                                                                                43  45.455880
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 16  45.455896
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    4 ETW000                                                                                38  45.455934
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  45.455951
    4 ETW000  [     dev trc,00000]  failed to establish conn to np:(local).                                 6519  45.462470
    4 ETW000  [     dev trc,00000]  Retrying without protocol specifier: (local)                              30  45.462500
    4 ETW000  [     dev trc,00000]  Using Provider SQLNCLI                                                    60  45.462560
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: MARS property was set successfully.                  57  45.462617
    4 ETW000  [     dev trc,00000]  Sun Jul 24 07:24:14 2011                                             15636603  61.099220
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: line 24466. hr: 0x8000ffff Login timeout expired
    4 ETW000                                                                                51  61.099271
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Login timeout expired
    4 ETW000                                                                                45  61.099316
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  61.099333
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    4 ETW000                                                                                60  61.099393
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  61.099410
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    4 ETW000                                                                                41  61.099451
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  61.099468
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    4 ETW000                                                                                37  61.099505
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  61.099522
    4 ETW000  [     dev trc,00000]  Using Provider SQLNCLI                                                  5453  61.104975
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: MARS property was set successfully.                  59  61.105034
    4 ETW000  [     dev trc,00000]  Sun Jul 24 07:24:29 2011                                             15620154  76.725188
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: line 24466. hr: 0x8000ffff Login timeout expired
    4 ETW000                                                                                43  76.725231
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Login timeout expired
    4 ETW000                                                                                45  76.725276
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 18  76.725294
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    4 ETW000                                                                                79  76.725373
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  76.725390
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    4 ETW000                                                                                42  76.725432
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  76.725449
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    4 ETW000                                                                                103  76.725552
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 25  76.725577
    4 ETW000  [     dev trc,00000]  Using Provider SQLNCLI                                                  5413  76.730990
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: MARS property was set successfully.                  78  76.731068
    4 ETW000  [     dev trc,00000]  Sun Jul 24 07:24:45 2011                                             15600542  92.331610
    4 ETW000  [     dev trc,00000]  OpenOledbConnection: line 24466. hr: 0x8000ffff Login timeout expired
    4 ETW000                                                                                42  92.331652
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Login timeout expired
    4 ETW000                                                                                45  92.331697
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  92.331714
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    4 ETW000                                                                                60  92.331774
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 16  92.331790
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    4 ETW000                                                                                42  92.331832
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 16  92.331848
    4 ETW000  [     dev trc,00000]  sloledb.cpp [OpenOledbConnection,line 24466]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    4 ETW000                                                                                38  92.331886
    4 ETW000  [     dev trc,00000]  Procname: [OpenOledbConnection - no proc]                                 17  92.331903
    4 ETW000  [     dev trc,00000]  failed to establish conn. 0                                             5491  92.337394
    4 ETW000  [    dblink  ,00433]  ***LOG BY2=>sql error -1     performing CON [dblink#4 @ 433]             119  92.337513
    4 ETW000  [    dblink  ,00433]  ***LOG BY0=>Login timeout expired [dblink#4 @ 433]                        27  92.337540
    2EETW169 no connect possible: "DBMS = MSSQL                            ---  SERVER = 'MYSERVER101' DBNAME = ''"

  • Connecting webstart with MSSql server

    Can somebody help me about how to connect webstart with MSSQL on net .
    Thanks
    sushil singh

    Thanks for your reply,
    Where can i get Inzoom driver.I presume it is downloadable from the net.
    My application is using J2EE arthitecture(jsp/java/Struts and Frameworks/EJB/Sevelets with database as sql server).The application is deployed and running successfully on J2EE Sun Server.I want to shift this whole application to WSAD 5.0 as the Studio helps a lot in reducing the development time.
    I read on the site that one can use "WebSphere Connect JDBC Driver" for connection.The WebSphere Connect JDBC Driver is the WebSphere branded DataDirect Connect JDBC Driver that is shipped with WebSphere Application Server.
    But the driver "com.ibm.websphere.jdbc.sqlserver.SQLServerDriver" is not present in the licsensed wsad that we have here in the company.
    Mostly it is downloadable from the ibm site.
    Please suggest that which driver will suit my application and how to go about it.Atleast I want to run a sample application from WSAD which will connect to the SQL Server.
    Thanks in advance.
    Rahul

  • XA connection pools on MSSQL 6.5

    Hi,
    is it possible to use Weblogic XA connection pools on MSSQL 6.5 database? If not, what could be alternative solution?

    lol predicted that answer ^^ LOL @ MTU (BTW DOsent WORK)
    listen bro i have the exact same problem , execept with 1 v8
    i run a counter-strike server and i got 10mbps down and 1mbps up and the game lags about every 3-4 min on the dot...not hardware neither tis tha router cuz we got exact same problem .. "Little Hiccups" Any other suggestions?
    Message Edited by KnewbZ on 11-06-2007 06:37 AM
    (Edited post for guideline compliance. Thanks!)
    Message Edited by JOHNDOE_06 on 11-06-2007 06:42 AM

  • No connect possible DBMS = MSSQL

    we are getting the following error while performing tp check.
    4 ETW000  [dev trc     ,00000]  i'm dbo but there exists 1 users <> dbo with tables SVERS ==> connect terminated
    4 ETW000                                                                            4598  0.306362
    2EETW169 no connect possible: "DBMS = MSSQL                            --- 
    tpparam entries(thru STMS) maintained properly and we have refered notes 351586,98678,128126 and problem still persists.

    please reply.........

  • Connection to a MSSQL-Server fails

    Hello,
    (Version: 1.1.2.25)
    when I try to establish a connection to a MSSQL-Server
    I get this Error Message:
    "Status: Failure -net.sourceforge.jtds.jdbc.Driver"
    Does anyone have any idea?
    Andre

    If you are getting connection refused, either the server isn't listening on the port you have specified or there is a firewall intervening.
    Can you connect to the database using any other MSSQL client tools (query analyzer for instance?) If so, make sure the setting you have there are the same in sqldeveloper.

  • Help: Connecting Tomcat to CA-IDMS Using JDBC Type 4 Drivers (JNDI)

    Hi there,
    I have a rather interesting / complex problem......creating a connection to CA-IDMS from Tomcat using JDBC type 4 drivers (CA provide the type 4 driver).
    We have a zSeries 9 IBM mainframe running CA-IDMS r16.1, and I need to connect to the IDMS from Tomcat (running on Linux) using the JDBC Type 4 drivers provided by CA.
    At this stage I am struggling with the actual setup and configuration of Tomcat’s server.xml and web.xml files. These are the files where the JDBC configuration is set (I think). I have to setup the CA-IDMS part of the configuration, but that is a different problem. Basically there is a TCP/IP listener on the IDMS, waiting for incoming connections from the JDBC type 4 driver.
    I set up a Tomcat to MySQL connection using MySQL Connector / J, which is a similar kind of process to what I am trying to achieve with IDMS. MySQL connector / J came with a jar file which is placed in Tomcat’s lib folder, and then the JDBC setup for the web application is created in Tomcat's server.xml and web.xml files. You can then connect to the MySQL database using JSP and the configured JDBC driver / connection. The CA-IDMS Server comes with an idmsjdbc.jar file, which I think is the JDBC typr 4 driver. I think it needs to be placed in the Tomcat /lib folder, but I don’t know how to set up the configuration.
    There is a JDBC DriverManager which allows JDBC drivers to connect to CA-IDMS. The DriverManager recognises the following syntax:
    jdbc:idms://hostname:port/database
    This allows the JDBC driver running within Tomcat to connect to the IDMS which is running on the IDM mainframe. CA IDMS r16 supports direct connections from the Type 4 JDBC driver to the Central Version on IDMS. "hostname" is the DNS name or IP address of the machine where the CV is running, and "port" is the IP port that was specified for the listener PTERM (setup on the IDMS side).
    There is a caidms.properties file for the JDBC driver, which is used to specify user ID, password, and optional accounting information. It can also be used to specify physical connection information, allowing an application to connect to a CA-IDMS database without requiring the definition of an ODBC style data source. However, I don’t know where to place this file within the Tomcat setup.
    There is also an IdmsDataSource class. I don’t know where to configure this or how to set it up; the CA-IDMS Server manual states the following:
    This class implements the JDBC DataSource interface. It is used with an application server (Tomcat) providing Java Naming and Directory Interface (JNDI) naming service to establish a connection to a CA IDMS database. IdmsDataSource properties conform to the Java Beans naming conventions and are implicitly defined by public “setter” and “getter” methods. For example, the “description” property, which is required for all DataSource implementations, is set using the setDescription(String) method. The application server may use the java.lang.reflection methods to discover DataSource properties and provide an interface to set them, or may simply require that they are defined in some configuration file. IdmsDataSource properties are used to specify the connection parameters. These properties are the equivalent of the DriverPropertyInfo attributes described in the previous section and can be used to completely define the parameters needed to connect to a database. Like a URL, an IdmsDataSource object can also reference an “ODBC” style data source name, where the connection parameters are defined in the configuration file on Linux.
    Is there anyone that can try to point me in the right direction to setting up the JDBC connection? I am totally new to Java and so the instructions are not making much sense at the moment. Any help, hints, tips…..anything will be greatly appreciated as I have just hit a brick wall here. I can't find much to do with setting up the CA-IDMS Server JDBC type 4 driver online either....if anyone can point me to some resources that would also be extremely useful.
    Kind regards
    Jp

    You say you've managed to get the JDBC driver working
    in an application but not in a JSP. You also say that
    the error you get is
    "com.microsoft.jdbc.sqlserver.SQLServerDriver".
    I'd be willing to bet that the exception that you have
    got is a ClassNotFoundException. I.E. your application
    server hasn't found the JDBC driver classes. The
    application server probably doesn't use your current
    CLASSPATH to look for classes. It will be setup within
    the application server in some way and you'll need to
    check your app server documentation to see how it is
    done.
    Try replacing
    e.printStackTrace();with
    e.printStackTrace(out);to get a full stack trace of your error.
    ColTried it. Got this error when I tried to run the JSP.
    Incompatible type for method. Can't convert javax.servlet.jsp.JspWriter to java.io.PrintWriter.
              e.printStackTrace(out);
    I'm currently using Apache Tomcat 4.0.3 as my JSP/Servlet Container.
    I'm also using Type 4 MS SQL Server 2000 JDBC driver version 2.0 on my NT4.0 Server.
    Do I need to set my JDBC driver in my container? if so, how do I do that?

  • Connecting tomcat and apache

    hi,
    i am having problem connecting Apache and Tomcat with mod_jk connector. i am not getting any exceptions. the problem is when i am trying to access .jsp pages from apache ... its showing me code ....
    i have used this just below the <server port=8080> in server.xml :
    <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk="/usr/local/apache2/modules/mod_jk.so" />
    in the same server.xml file i have used this line in the host tag :
    <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" forwardAll="false" modJk="/usr/local/apache2/modules/mod_jk.so" />
    and i have used the "Include <path>/mod_jk.conf " in httpd.conf
    is there nething i am missing ...
    thanx in advance ...
    psr

    Here are my particular settings that work. There's only this file you need to alter. Usually it's called httpd.conf
    <IfModule mod_jk.c>
        JkWorkersFile conf/workers.properties
        JkLogFile logs/mod_jk.log
        JkLogLevel error
        JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
        JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
        JkRequestLogFormat "%w %V %T"   
      JkMount /Market/* example  
      JkMount /Market example 
        JkMount /Market/*.do example
         JkMount /Market/*.jsp example
          JkMount /se/* example  
      JkMount /se example 
        JkMount /se/*.do example
         JkMount /se/*.jsp example
    </IfModule>

  • Connecting tomcat to apache.

    Hello, I seek help in connecting apache to tomcat.
    I followed this guide
    http://johnturner.com/howto/winxp-howto.html
    I have
    WinXP SP2 fully updated
    Apache 2.0.55
    jakarta-tomcat-4.1.31
    j2sdk-1_4_2_11-windows-i586-p
    mod_jk-2.0.55.so
    everything I think is installed correctly, my Problem is, tomcat will not auto generate a mod_jk.conf as it is supose to.
    Anyone have any advice?
    thank you.

    harsh884 wrote:
    but the service block called by the servlet container to allow the servlet to respond to a request.And this method is only called after the servlet's init() method has completed successfully and this is what the documentation says.....
    so any idea why it was causing the problem... Already answered. service() is supposed to invoke doGet() or doPost() or doPut() etc etc depending on the request. You overrode that to not do that anymore, so you had broken it completely.
    Normally the only times anyone overrides service() is if they put ALL of the logic that would have otherwise been in doGet()/doPost()/doPut() etc etc inside service() instead. Even then, I would generally consider it bad practice to ever override this method.

  • Error ORA-28528 connecting to a MSSQL 2000 DB using 11g

    Hello all,
    we have managed to build a database link from 11g (verison 11.1.0.6.0 plus bugfix 7389110 and "linux.x64_11gR1_gateways) to to a MSSQL 2000 database (Characterset is ISO 8859 Latin1 they told me).
    When we try to select columns we get sometimes the error ORA-28528. If the error occurs or not seems to depend on the type of data and if we select one cell (column) or more. I try to explain this. Please forgive me because of my English.
    *Configuration*
    We use freetds and uinixodb (unixODBC-2.2.11) to connect t to the MSSQL-DB. All software is installed on Centos 5.1 (Linux 64bit).
    _TDS: /etc/freetds.conf_
    # SQL-Server
    [combandb]
         host = 212.xxx.xxx.5
    #     port = 1521
         port = 1433
         tds version = 8.0
         client charset = ISO-8859-1
    _ODBC: /etc/odbcinst:_
    FreeTDS]
    Description = v0.64-1
    Driver = /usr/lib64/libtdsodbc.so.0
    Setup = /usr/lib64/libtdsodbc.so.0
    FileUsage = 1
    Trace = Yes
    TraceFile = /tmp/sql.log
    _ODBC: /etc/odbcini:_
    [ODBC Data Sources]
    combandb = SQL-Connect
    [combandb]
    Driver = FreeTDS
    Description = DB-Link (MSSQL)
    Trace = Yes
    Database = netzdb
    TraceFile = /tmp/sql.log
    Servername = combandb
    Port = 1433
    We checked the TDS, ODBC config with isql and it works.
    _ORACLE Gateway: ORACLE_HOME/hs/admin/initcombandb.ora_
    HS init parameters
    HS_FDS_CONNECT_INFO=combandb
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
    HS_FDS_TRACE_LEVEL=16
    HS_FDS_TRACE_FILE=/tmp/dg4odbc.trc
    HS_FDS_SUPPORT_STATISTICS=FALSE
    # without HS_FDS_SUPPORT_STATISTICS=FALSE we get the erro "Invalid cursor state" from freetds
    HS_LANGUAGE=GERMAN_GERMANY.WE8ISO8859P1
    #HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
    #HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
    #HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
    #HS_LANGUAGE=GERMAN_GERMANY.WE8MSWIN1252
    #HS_NLS_NCHAR=utf8
    #HS_NLS_NCHAR=WE8ISO8859P1
    HS_OPEN_CURSORS=1
    #HS_RPC_FETCH_REBLOCKING=OFF
    #HS_DESCRIBE_CACHE_HWM=4000
    #HS_FDS_REPORT_REAL_AS_DOUBLE=TRUE
    #DRDA_CACHE_TABLE_DESC=FALSE
    # ODBC specific environment variables
    #set ODBCINI=<full path name of the odbc initilization file>
    set ODBCINI=/etc/odbc.ini
    _LISTENER: ORACLE_HOME/network/admin/listener.ora_
    # listener.ora Network Configuration File: /opt/app/oracle/product/11.1.0/slm_hot2/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)     (PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.xxx.xxx.xx)     (PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 84.xxx.1xxx.xxx)(PORT = 1521))
    # MSSQL Server 2000
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=combandb)
    (ORACLE_HOME=/opt/app/oracle/product/11.1.0/slm_hot2)
    (PROGRAM=dg4odbc)
         (ENVS=LD_LIBRARY_PATH=/usr/lib64:/opt/app/oracle/product/11.1.0/slm_hot2/lib)
    _TNSNAMES: ORACLE_HOME/network/admin//tnsnames.ora_
    # tnsnames.ora Network Configuration File: /opt/app/oracle/product/11.1.0/slm_hot2/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    combandb =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA = (SID=combandb))
    (HS = OK)
    _DB-Link_
    SQL> create public database link combandb connect to "user" identified by "PW" using 'combandb';
    Database link created.
    _NLS-Settings_
    $NLS_LANG--> GERMAN_GERMANY.WE8ISO8859P1
    SQL> select userenv ('language') from dual; --> GERMAN_GERMANY.WE8ISO8859P1
    SQL> SELECT * from NLS_SESSION_PARAMETERS;
    NLS_LANGUAGE: GERMAN
    NLS_TERRITORY:GERMANY
    NLS_CURRENCY: ¿
    NLS_ISO_CURRENCY: GERMANY
    NLS_NUMERIC_CHARACTERS ,.
    NLS_CALENDAR : GREGORIAN
    NLS_DATE_FORMAT: DD.MM.RR
    NLS_DATE_LANGUAGE: GERMAN
    NLS_SORT: GERMAN
    NLS_TIME_FORMAT: HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT: DD.MM.RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT: HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT: DD.MM.RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY: ¿
    NLS_COMP: BINARY
    NLS_LENGTH_SEMANTICS : BYTE
    NLS_NCHAR_CONV_EXCP : FALSE
    *Error-Description*
    We want to read from the table X_LT. The datatypes are (form HS-log)
    DTY -- NULL-OK -- LEN -- MAXBUFLEN -- PR/SC -- CST -- IND -- MOD -- NAME
    4 INTEGER -- N-- 4-- 4 -- 0/ 0 -- 0 -- 0 -- 0 -- ID
    12 VARCHAR-- Y-- 15 -- 15-- 0/ 0 -- 0 -- 0 -- 0 -- State
    8 DOUBLE - Y -- 8-- 8-- 53/ 0 -- 0 -- 0 -- 0-- costs
    91-- DATE-- Y-- 16-- 16 -- 0/ 0 -- 0 -- 0 -- 0 target_date
    Tests with isql (unix-based) worked all well. There are no conversion problems or problems with NULL-values.
    Now we test with sqplplus:
    _1. Test with integer-only_
    SQL> select ID from x_lt@combandb where id = 12315; --> 12315 --> OK
    SQL> select ID from x_lt@combandb where id = 12315 or id = 12316;
    ERROR:
    ORA-28528: Fehler bei Konvertierung von Heterogeneous Services-Datentyp
    ORA-02063: vorherige line von COMBANDB
    _2. Test with varchar only_
    SQL> select "State" from x_ltg_pecos@combandb where id = 12315 --> Kldger
    SQL> select "State" from x_ltg_pecos@combandb --> result is a list (2490 columns)
    The lists ends the ORA-Errors (above). The valus in the lists are not all correct. Some names are cut others do have additional letters ... strange . For example in stead of "Frankfurt" is see "Frankf" or in another row the value should be "Frankfurt" but I see "Frankfurt I"
    _Test with double and dates are OK_
    I got a sql.log, a listerner log and a hs-trace but no idea how to proceed.
    Please, can anybody help me?
    Thanks Michael

    Please check file permissions on $ORACLE_HOME/bin/oracle executable and read carefully Configure Oracle binary permissions.

  • Setting up connection pool in MSSQL SERVER 2000

    hi,
    i m having too much trouble in setting up connection pool in TOMCAT 5.0.25 for MS SQL SERVER 2000...
    ......so plz guide me how to do that...
    TIA
    bhups

    i m having too much trouble in setting up connection
    pool in TOMCAT 5.0.25 for MS SQL SERVER 2000...Never done it for SQL Server, but setting up a connection pool in tomcat is basically the same no matter what DB you're using:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
    The two files you're interested in are server.xml and web.xml. You just need to look at the MYSQL and Oracle examples and "tweak" it ...

  • How to use JDBC to connect Tomcat with database server?(Urgent!)

    I try to deploy the tomcat and make it connect with databaser server.
    I am using mysql connector J 3.0. I added the CLASSPATH of mysql-connector-java-3.0.7-stable-bin.jar in the tomcat.sh .
    I also add the web application in server.xml.
    When I start tomcat, I can see using Classpath including mysql-connector-java-3.0.7-stable-bin.jar .
    But when i browse my jsp including the jdbc, wait for a while, I get a message as following: Timeout on server localhost. My web server and database server is same computer.
    Could you tell me what's wrong?

    Did you check to see that the MySQL database was indeed up and running, and accepting connections when you started Tomcat? Did you make sure that your firewall permits connections to the database?
    Timeout errors generally occur when you send a request to a server and the server does nothing with it - i.e., it doesn't respond to it in any way. Most firewalls are configured this way. If I telnet to your machine and I get "connection refused", I know your machine exists and I can try hacking into it. If I telnet and get nothing at all, then I will either assume either there's no actual machine at that address or it's unresponsive.

  • DB Connect, BW on MSSQL, Oracle as external system(NON SAP)

    Hi,
    Requirement:
    I want to connect and Extract data from Oracle database (non-sap).
    BI System Details:
    1. BI 7.0 (EHP 1) server is running on MSSQL 2005.
    2. I have WEB AS as ABAP only.
    3. Operating system Win 2003 server.
    Oracle Database (NON SAP) Details:
    1. OS : Win 2003
    2. Oracle 10g Release 2
    Activity:
    1. I have downloaded, unpacked and copied the Database Shared Library (DBSL) as mentioned on sap help link http://help.sap.com/saphelp_nw04s/helpdata/en/42/fdccb72aa95277e10000000a1553f7/frameset.htm
    2. I have installed the oracle 8i client on BW server and configured the tnsnames.ora file. I am able to ping(tnsping sap.world) the oracle database through command prompt(cmd).
    3. RSA1 -> Source system -> DB Connect.
    4. Right Click on DB Connect -> Create.
    5. Entered following entries in screen: Create Source System
    Logical System Name : Oracon
    Source System Name  : Oracle Connection
    6. Click on Enter icon.
    7. I make the following entries in the screen "Description Of Database Connections"
    DB Connection  : Oracon
    DBMS : ORA
    User Name : username of oracle database with admin right
    DB password : database password
    Conn. info : sap.world
    Permanent : unticked
    Connection Limit: empty
    Optimum Conns : empty
    8. Click on SAVE Button
    9. Click on Back Button and again click on Back Button
    10. Now i got the Dialog box "Cannot Access Source System ORACON" with three button.
    System Log
    Correct
    Cancel
    11. I clicked on System Log and checked the log.
    12. I am getting the following error
    No shared library found for the database with ID ORACON
    Documentation for system log message BY G :
    As well as the standard connection, an attempt was made to set up
    another database connection, under the specified ID. The Shared Library
    for this second database could not be found.
    The Shared Library is usually found in the  Executable
    directory (profile parameter DIR_LIBRARY) under the name dbs
    <dbs>slib<os_ext>. <dbs> stands for the database type and <os_ext>
    stands for the operating system-specific extension of the Shared
    Libraries.
    The database type is determined from the entry that corresponds to the
    specified DB ID in the table DBDCON. Check whether the data in this
    entry is correct.
    Please Help me to rectify the error.
    Regards,
    Aslam Khan

    Hi,
    and thanks for the answers.
    Now I have the oracle client installed on the BW server, and the dbsoraslib library has been copied to the BW run directory. But any attempt to connect to the system just gives me the error "No shared library found for the database with ID AGRESSO"
    (I get ths error no matter what I input when trying to set up the connection, also if I intentionally gives wrong ID and/or IP)
    I'm wondering if my input is the problem, and then, what would be correct.
    My tnsnames.ora looks like this
    AGRESSO =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = xxx.xxx.xxx.xxx)(Port = 1521))
          (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = xxx.xxx.xxx.xxx))(Port = 1521))
        (CONNECT_DATA =
          (SID = db06)
    (edited out ip adress)
    When creating the connection I give
    Logical system name "AGRESSO",
    source system name I assume I can give whatever here.
    Type and release I leave blank.
    Next screen I give:
    DB Connection: AGRESSO (Can not be edited)
    DBMS: ORA
    Username/passord as given by the server admin
    Conn. info I have tried many different inputs. AGRESSO, the IP adress, the SID (db06), but no luck.
    Anyone have any knowledge about what to give as input? (if the tnsnames.ora is lacking information etc)
    Thanks for any input.
    Regards,
    Øystein

  • Connecting XI to MSSQL Server

    Hi,
      I want to connect to Mssql Server from XI, I have downloaded and JDBC driver of MSSql server. Is this enough to connect to XI server or else i have to do any other configuration in XI server. How to know that JDBC Adapter is enabled in XI Server. I was directed that i have to configure aii_af_jmsproviderlib.sda with jar file JDBC driver,is that necessary, if so where to find that jar file and what are the configuration steps.

    make sure you have the following jar files ready with you.
    msbase.jar
    mssqlserver.jar
    msutil.jar
    Best way to get the exact JDBC drivers is to check Vendor website for details.
    For deploying these drivers to your XI server so that your adapter can connect to MSSQL you can use the tool "drivertool". Check details on service marketplace
    https://websmp204.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202
    PDF : How to Install and Configure External Drivers

Maybe you are looking for

  • How to Create a Texture in Muse

    Is there a way to create or get a texture for a solid color in muse?  My goal is to fill a box with a texture similar to the ones below. Thanks in advance.

  • How to use ADFContext.setMDSLogin(String)?

    As per the javadoc of ADFContext, it has a method setMDSLogin(String) and getMDSLogin(String). I am doing some user customization using MDS but the javadoc doesn't cover how and when those methods should be used. Currently, I am saving the user custo

  • Menubar icons missing (OSX Mavericks)

    I just recently upgraded to Mavericks, and since then i've been seeing problems arise from my menu bar, such as my spotlight not appearing, but now I have an even bigger problem. I've only got 4 menu bar icons left, everything else is blank. Please h

  • Filter or Restrict on? Which is the best way to put it?

    Hello Experts, If there is a Characteristic/Key figure on a report in BEx, and I right click on it and find another data element say, 0FISPER it I EDIT. On right click on 0FISPER I a variable. My question is this, do we way that the key figure is RES

  • How can I change the sites homepage 365 and then make the changes public?

    Hi is there any way I can change the look of the sites homepage and make it public so anyone who logs in see's the additoinal webparts etc. it seems I can only create a personal view of the sites page which is slightly annoying as I would like to add