What's this?--Exception creating DataSource: org.hsql.jdbcDriver
How to register the MS-SQL Server2000 DataSource in Tomcat4.04?
Hi friends,
I only have the MS SQL Server 2000 Database,and prog with jsp and Tomcat.
Since the MS issue their JDBC Driver for SQL Server,I always use "DriverManager"
to get the database connection,
eg:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection conn = DriverManager.getConnection
("jdbc:microsoft:sqlserver://server1:1433","username","password");
Now I want to use "DataSource" to get connection in my prog,and I know it is necessary to register the DataSouce with JNDI in Tomcat before I can use it.
But how to register and use the SQL Server DataSource in Tomcat4.04? I had tried some times and all failed,tomcat throws a exception like this:"javax.servlet.ServletException: Exception creating DataSource: org.hsql.jdbcDriver"
what is "org.hsql.jdbcDriver"? may be it is tomcat's build in,but how can make my sql server driver work?
Any Commnet Will Be Appreicate!
----Below is my fail trail when try to config the Tomcat--------------------
Fellow the Tomcat's document,I modify the
"$CATALINA_HOME/conf/server.xml" like this.
<Context path="/MySite" docBase ="MySite" debug = "0" privileged = "true">
<Resource name="jdbc/pubsDb" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/pubsDb">
<parameter>
<name>user</name>
<value>LJS</value>
</parameter>
<parameter>
<name>password</name>
<value>121212</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.microsoft.jdbcx.sqlserver.SQLServerDriver</value>
</parameter>
<parameter>
<name>driverName</name>
<value>jdbc:microsoft:sqlserver://localhost:1433/pubs</value>
</parameter>
</ResourceParams>
</Context>
PS: the MSSQL Sever2000 has installed and had a user named "LJS" which password is 121212
and default database is "pubs".
Then,I modified the $CATALINA_HOME/webapps/MySite/WEB-INF/web.xml like this
<resource-ref>
<description>
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
</description>
<res-ref-name>
jdbc/pubsDB
</res-ref-name>
<res-type>
javax.sql.DataSource
</res-type>
<res-auth>
Container
</res-auth>
</resource-ref>
finally I code a DB.jsp like this
<%@ page content="text/html"%>
<%@ page import="java.sql.*,javax.sql.*,java.naming.*"%>
<%
Context ctx = new InitialContext();
DataSource ds = (DataSource)(new InitialContext().lookup("java:comp/env/jdbc/pubsDB"));
%>
after all done, I launch the Tomcat 4.0 and type "http://localhost:8080/MySite/DS.jsp" in
my browser.
then Tomcat throw exception like this:
javax.servlet.ServletException: Exception creating DataSource: org.hsql.jdbcDriver
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.DS$jsp._jspService(DS$jsp.java:83)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)
root cause
javax.naming.NamingException: Exception creating DataSource: org.hsql.jdbcDriver
at
org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexDataSourceFactory.java:233)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:165)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.jsp.DS$jsp._jspService(DS$jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)
Hi,
don't know if you've already found a solution to this problem. Anyway, I had the same problem and the cause turned out to be a non-valid server.xml file.
Here is my (working) server.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Example Server Configuration File --><!-- Note that component elements are nested corresponding to their
parent-child relationships with each other --><!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
--><Server debug="0" name="TestServer" port="8005" shutdown="SHUTDOWN">
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps:
* Download and install JSSE 1.0.2 or later, and put the JAR files
into "$JAVA_HOME/jre/lib/ext".
* Edit "$JAVA_HOME/jre/lib/security/java.security" and add
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
* Execute: keytool -genkey -alias tomcat -keyalg RSA
with a password value of "changeit".
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector acceptCount="10" className="org.apache.catalina.connector.http.HttpConnector" connectionTimeout="60000" debug="0" enableLookups="true" maxProcessors="75" minProcessors="5" port="8080" redirectPort="8443"/>
<!-- Note : To disable connection timeouts, set connectionTimeout value
to -1 -->
<!-- Define an SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true">
<Factory className="org.apache.catalina.net.SSLServerSocketFactory"
clientAuth="false" protocol="TLS"/>
</Connector>
-->
<!-- Define a Proxied HTTP/1.1 Connector on port 8081 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8081" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" connectionTimeout="60000"
proxyPort="80"/>
-->
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -->
<!--
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8082" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0"/>
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- Define the top level container in our container hierarchy -->
<Engine debug="0" defaultHost="localhost" name="Standalone">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
<!-- Define the default virtual host -->
<Host appBase="webapps" debug="0" name="localhost" unpackWARs="true">
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="common" prefix="localhost_access_log." suffix=".txt"/>
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/>
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->
<Context docBase="D:\Program Files\IBM\WebSphere Studio\workspaces\Test\StudentWEB\Web Content"
path="/StudentWEB"
reloadable="true"
source="com.ibm.etools.webtools.server:StudentWEB">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
<Resource name="jdbc/TestDB"
auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/TestDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
-->
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
<!-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit.
-->
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<!-- Maximum time to wait for a dB connection to become available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded. Set to -1 to wait indefinitely.
-->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<!-- MySQL dB username and password for dB connections -->
<parameter>
<name>username</name>
<value>admin</value>
</parameter>
<parameter>
<name>password</name>
<value>admin</value>
</parameter>
<!-- Class name for mm.mysql JDBC driver -->
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<!-- The JDBC connection url for connecting to your MySQL dB.
The autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
connection. mysqld by default closes idle connections after 8 hours.
-->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
<!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
To configure the Apache side, you must ensure that you have the
"ServerName" and "Port" directives defined in "httpd.conf". Then,
lines like these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppDeploy" directives can be accessed through Apache.
-->
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Connector acceptCount="10" className="org.apache.catalina.connector.warp.WarpConnector" debug="0" enableLookups="true" maxProcessors="75" minProcessors="5" port="8008"/>
<!-- Replace "localhost" with what your Apache "ServerName" is set to -->
<Engine appBase="webapps" className="org.apache.catalina.connector.warp.WarpEngine" debug="0" name="Apache">
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger" prefix="apache_log." suffix=".txt" timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
</Engine>
</Service>
</Server>
My web.xml looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>MySQL Test App</description>
<servlet>
<servlet-name>TestServlet</servlet-name>
<display-name>TestServlet</display-name>
<servlet-class>TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet</url-pattern>
</servlet-mapping>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/TestDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
You can of course leave out the comments if you want...
Please let me know if this works on [email protected].
Kind regards,
Johan
Similar Messages
-
What means this exception?
when i use a client/server apps, the client has this exception:
java.rmi.NotBoundException: serveurChat/ServeurChat
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:349)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:79)
at ClientDistantImpl.main(ClientDistantImpl.java:76)
Can somebody help me?The API says:
"A NotBoundException is thrown if an attempt is made to lookup or unbind in the registry a name that has no associated binding."
And there is an RMI tutorial:
http://java.sun.com/docs/books/tutorial/rmi/index.html -
What's this exception mean???
i tried a simple program to receive characters from xml files, the program has been complied, but when i run it, i got this exceptin:
org.xml.sax.SAXException: System property org.xml.sax.driver not specified
any sugesstion will be appeciated!!!you want something like the line below, but find out the classname for your IBM driver....and replace the second argument below with that name...
System.setProperty("org.xml.sax.parser","org.apache.xerces.parsers.SAXParser"); -
Hi,what cause this Exception?
java.sql.SQLException: ORA-01000: maximum open cursors exceeded
i am using oracle 8.1.5
thanksYou should be closing your Statments / PreparedStatments / CallableStatments and ResultSets when u have finished using them.
-
What this exception would be..?
Hi,
i got this exception often, but i couldn't able to isolate what exactly this exception says.. can any one plz suggest me to solve this issue.
javax.faces.FacesException: org.apache.jasper.JasperException at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:64) at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:224) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Caused by: org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.security.showMessage_jsp._jspService(showMessage_jsp.java:133) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) ... 39 more
Regards,
AHi,
i just open a popup which is of course a jsf page, and change some value in combo box, but this error appear in my parent window.. is it may be of Ajax4JSF. i included the jar file in my project, but didn't used it anywhere..
Regards,
A. -
How to turn off this exception?
Hi all,
I am seeing the following java exceptions from the weblogic server.
java.net.UnknownHostException: unknown
at java.net.InetAddress.getAllByName0(InetAddress.java:571)
at java.net.InetAddress.getAllByName0(InetAddress.java:540)
at java.net.InetAddress.getByName(InetAddress.java:449)
at
weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
<<<<<<<<<<< failed here
at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
at
weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
<<<<<<<<<<< start to log remote address
at
weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
2 questions:
1) What cause this exception?
2) Is there anyway to turn off (ignore) this exception? I have looked
at
the log file settings but to no avail? Any help or pointers are most
appreciated.
Thank you in advance
dritIt is "ReverseDNSAllowed" in the ServerConfig : Returns whether or not the kernel
is allowed to perform reverse DNS lookups.
freelance_code_inspector <[email protected]> wrote:
Hi all,
I am seeing the following java exceptions from the weblogic server.
java.net.UnknownHostException: unknown
at java.net.InetAddress.getAllByName0(InetAddress.java:571)
at java.net.InetAddress.getAllByName0(InetAddress.java:540)
at java.net.InetAddress.getByName(InetAddress.java:449)
at
weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
<<<<<<<<<<< failed here
at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
at
weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
<<<<<<<<<<< start to log remote address
at
weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
2 questions:
1) What cause this exception?
2) Is there anyway to turn off (ignore) this exception? I have looked
at
the log file settings but to no avail? Any help or pointers are most
appreciated.
Thank you in advance
drit--
Dimitri -
I got this exception (org.apache.jasper.JasperException)
hi all
i got this exception (org.apache.jasper.JasperException)
verything works fine if I modify my .jsp and reload that
jsp in the browser (tomcat). The changes are reflected fine.
***BUT*** when I compile a .java (beans) file that is used in the
webapp then the tomcat starts giving following error message
in the browser and the exception stack trace in the tomcat
console. (I am using ant to compile and deploy my webapp.)
Auto load is on in my tomcat server.xml for this context. I am
using the beans in my .jsp.
If I compile all the .java files together again then the
webapp starts working. I have not seen this behavious
with earlier Tomcat/J2SDK versions.
i am using version(jakarta-tomcat-4.1.24)
anybody help me.
my email id [email protected].
The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: mxi_web.Services
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)
root cause
javax.servlet.ServletException: mxi_web.Services
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.createcustomer_jsp._jspService(createcustomer_jsp.java:236)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jaorg.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
i also face this error!! anyone know how to solve this error ???
everything works fine earlier on, but after i created a new folder and put all the jsp, beans into that new folder, then this error comes out!!!
thanks for any help!! -
is there anyway to allow Firefox to allow pop ups from this 1 page of Facebook / well this 1 game https://apps.facebook.com/vampiresdarkside/ and not the entire pan in the Ass Pop up happy site, I cant see any sense in allowing popups from all
apps.facebook.com
and when I try to add it as the exception should be your program edits it to be that crap above instead of the exception I entered specifically,
apps.facebook.com/vampiresdarkside/
I seriously don't know what caused this to start being a problem until today it worked fine, but I added an exception for popups from this one site in Chrome and Firefox decided it wouldn't allow it popups from this part of Facebook and no I am not allowing all the FB apps to have popups I never had to before
apps.facebook.com/vampiresdarkside/
have popups after adding the popup exception in chrome, and no I did nothing to Firefox but it is kinda asking me to switch to Opera or some other crap browser with it acting like this, I modified the exception in chrome and Firefox now wont allow the pop ups it always had up until chrome allowed them WTFStart Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Do a malware check with several malware scanning programs on the Windows computer.
Please scan with all programs because each program detects different malware.
All these programs have free versions.
Make sure that you update each program to get the latest version of their databases before doing a scan.
*Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
*AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
*SuperAntispyware:<br>http://www.superantispyware.com/
*Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
*Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
*Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
*Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
You can also do a check for a rootkit infection with TDSSKiller.
*Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
*https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware -
On what all conditions this exception can occur any body
: Exception com.fca.linx.framework.integration.dao.ResourceConnectException: Connection to the Database failed
This can occur in the following situations
1.The dao uses the default Datasource Name by calling the getConnection() method and the coded Name jdbc/daoDB is not specified in the ejb-jar.xml and <wendor>-rdbms-jar
2.The datasource name is misspelled
3.The number of connections exeeds the max limit
4.The driver is not in the classpath of the appserver
5.The database server is not connected
6.The connection pool and datasource are not created
*******Datasource used is
<MessageManagerEJB> <FINER> :MessageManagerEJB getFileSquenceNumber() : RETURN
com.fca.linx.framework.exceptions.SystemException: Connection to the Database failed
This can occur in the following situations
1.The dao uses the default Datasource Name by calling the getConnection() method and the coded Name jdbc/daoDB is not specified in the ejb-jar.xml and <wendor>-rdbms-jar
2.The datasource name is misspelled
3.The number of connections exeeds the max limit
4.The driver is not in the classpath of the appserver
5.The database server is not connected
6.The connection pool and datasource are not created
*******Datasource used isHave u checked the following??
1.The dao uses the default Datasource Name by calling the getConnection() method and the coded Name jdbc/daoDB is not specified in the ejb-jar.xml and <wendor>-rdbms-jar
2.The datasource name is misspelled
3.The number of connections exeeds the max limit
4.The driver is not in the classpath of the appserver
5.The database server is not connected
6.The connection pool and datasource are not created -
I'm trying to create a new Apple ID but when I was putting on my information, there's a box asking for an ITunes gift code. What's this and how can I get one?
You're not obligated to insert a gift code. But you can purchase gift codes on the Apple online store (gift cards or certificates) or Apple Retail store
Gift codes are pre paid cards so you can use credit on the iTunes Store to purchase content
To create apple ID without payment method:
http://support.apple.com/kb/HT2534?viewlocale=pt_PT -
Confirming, indexing, creating peak file. What's this all about?
Althought I'm new to PrPro (see my very first post, it was the that I just started using this app), premiere already ate me that anywhere I go, when it comes to video editing, I am in its belly. But still I want an explanation regarding (again) about this message that's appearing in the status bar: 'conforming ?????.mpg". I don't really understand what's this all about. A little explanation is a lot to me. But what I am concerning about this thing is, it seems to be endless. PrPro had done already on all of my assets, conforming, creating peak files, indexing, but it still keeps on doing it again and again. Is there a problem with my audio/video files?
During the first time of my use, I didn't mind. I didn't even notice it. But now I started to be concerned with it since I my pc really slows down when PrPro starts this seemingly perpetual activity. If there's a problem somewhere else please help me.Did you notice that you make the same mistake as one of our regulars here, the_wine_snob, otherwise known as Bill Hunt, in leaving out one 'a' in my last name? I'm not offended but wonder if that is a human trait to not overdo it and two 'a'-s may be too much?
I resemble that comment! Harm, you have to realize that I am from Mississippi, and everyone is known as Billy Bob, Joe Bob, or Bubba. We had no Harm Millaards - too many double vowels and consonants for us. At least this helped, when I signed up for a bunch of X-rated sites, as Harm Millard...
OK, where were we? LameTiger (check that spelling, as I think I got it wrong again and apologize profusely), when one has non-standard footage, three thing need to happen: the files need to be indexed, the Audio must be Conformed (CFA files) and the Waveform Display (PEK) files must be created. Depending on the number of files, their Duration and one's computer's speed this can take from moments, to maybe 20 mins.
If you have not just loaded up this Project, then gone for a cup of coffee, or tea, I urge you to do so. There is a tiny progress bar in the very lower-right of the GUI, that traces this. Let it happen, and be patient. I know that this sounds like a scene from the Karate Kid, but it's important. Many systems will crash, if one tried to do anything, before this process completes. I can work (albeit slowly), during the process. Many cannot.
Now, if you HAVE patiently waited this process out, and it has completed, AND the next session yields the exact same thing, then something is not quite right. Could be files getting moved, deleted, or otherwise not available to PrPro, or some setting in one's Scratch Disks, or some other problem.
Hope that a bit of patience, and a cup of Darjelling helps. Please let us know.
Good luck,
Hunt -
Screen Message on P.C. "File "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes.
What is this and how can it be fixed, please?Problem solved by doing the following:
Open PC/Mac and search for iTunes Library.
From the list, select the most recent version of iTunes Library. Save this to a folder.
Delete iTunes from your computer.
Install latest version of iTunes.
When I opened the new version of iTunes, everything was there as before.
I didn't need to import the saved version of iTunes Library. Maybe this happens automatically????? -
Constant what has this got to do with readingHow to create some thing like
Q] IN the statement
SABC_ACT_READ(4) VALUE 'READ',
Taken from
http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3d5c358411d1829f0000e829fbfe/content.htm
SABC_ACT_READ(4) is a of type C , & has a value 4 what has this got to do with reading pls explain.
Q] How to create some thing like this (event) of our own like say read all alphabets that have s in their string?In order to Use the Function Module 'AUTHORITY_CHECK_DATASET' , you need to Pass the Exporting Parameter ACTIVITY with a value like given below.
ACTIVITY
Access type, with the following possible values:
- READ: Read file
- WRITE: Change file
- READ_WITH_FILTER: Read file using filter functions
- WRITE_WITH_FILTER: Change file using filter functions
- DELETE: Delete file
These values are defined as constants and one such constant is SABC_ACT_READ with a type char and length 4 with a Value of 'READ' .
The constant is being used in that Function module to check the READ Authorization of the user for the file specified.
Hope this helps.
Vinodh Balakrishnan -
What query should be created for this case
Here are those classes:
Folder{
String name;
@ManyToOne
Subject owner;
Subject {
String name;
}What query should I create in order to: find out if there is an actual Folder for a Subject with the name X in the database ?
Actually, the question is kinda stupid, but im not experienced with queries....javaUserMuser wrote:
Here are those classes:
Folder{
String name;
@ManyToOne
Subject owner;
Subject {
String name;
}What query should I create in order to: find out if there is an actual Folder for a Subject with the name X in the database ?Can't tell based on the info you posted. These are Java objects, and queries deal with relational tables.
Your naming is confusing. Subject and owner are two very different things.
If I had two tables like this:
CREATE TABLE IF NOT EXISTS owners
owner_id bigint not null auto_increment,
name varchar(80),
primary key(owner_id)
CREATE TABLE IF NOT EXISTS folders
folder_id bigint not null auto_increment,
name varchar(80),
owner_id bigint
primary key(folder_id),
foreign key(owner_id) references(owners)
);I'd write the JOIN query this way:
SELECT f.name, o.name
FROM folders as f, owners as o
WHERE o.owner_id = ?
AND o.owner_id = f.owner_idYou realize, of course, that if you're using EJB3 as the annotations suggest, that you don't write any SQL. EJB3 generates it dynamically for you.
% -
What responsiblity is requirted to create new Org in Oracle 11i
Can someone please help me .. I want to know what responsibility is required to create new Org in Oracle 11i.
Edited by: aali on 20-Apr-2011 02:16Hi;
Check your other thread
Re: I am unable to see some Org's from a responsiblity
Regard
Helios
Maybe you are looking for
-
Hardware accelerated scaling on external display not smooth since 11.0
Hi, When running 1280x800 app in fullscreen mode with hardware accelerated scaling (fullScreenSourceRect) from a laptop on the second screen (extented desktop etc) hardware scaling seems to fail to smooth the image on certain cases. flash version sc
-
How do I send a document converted from pdf to word?
Do I save the converted pdf to word document on an usb so I can send it in an email?
-
HT201335 how to use it in macbook pro please?
I want to connect the airplay mirroring in my macbook pro but its not working i chicked the wifi and everythig but i cant find the airplay mirroring option in the display setting what to do please???
-
How to have Sound Input Read VI read .wav in sections
Hi, I'm trying to read audio data from my laptop's soundcard, and it's really slowing down my VI's processing power. I read on the NI website to read the .wav file in sections instead of as a whole, but I have no idea how to do that. Any suggestions?
-
My Fellow SharePoint 2013 Engineers, For the past two days I have been struggling to setup the SharePoint 2013 Workflow Manager. After following the detailed steps provided by Harbar.net when I reach the final step to register the workflow service fo