Cannot create information center web archive for tomcat 7

I'm upgrading the help of a commercial product from tomcat 5 to tomcat 7 and am not able to get help deployed as a war, which was working previously. I have followed the directions here:
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fua_help_setup_infocenter.htm
There were further changes I needed to make to get things close to working, but I now have a "uses constraint violation". From the log:
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.help.webapp [5]
Bundle was not resolved because of a uses contraint violation.
org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.eclipse.help.webapp [osgi.identity; osgi.identity="org.eclipse.help.webapp"; type="osgi.bundle"; version:Version="3.7.0.v20150425-0643"; singleton:="true"] because it is exposed to package 'javax.servlet.annotation' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.100.v20150529-1857"; singleton:="true"] and javax.servlet [osgi.identity; osgi.identity="javax.servlet"; type="osgi.bundle"; version:Version="3.1.0.v201410161800"] via two dependency chains.
Chain 1:
org.eclipse.help.webapp [osgi.identity; osgi.identity="org.eclipse.help.webapp"; type="osgi.bundle"; version:Version="3.7.0.v20150425-0643"; singleton:="true"]
require: (&(osgi.wiring.bundle=org.eclipse.core.runtime)(&(bundle-version>=3.6.0)(!(bundle-version>=4.0.0))))
|
provide: osgi.wiring.bundle: org.eclipse.core.runtime
org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.100.v20150529-1857"; singleton:="true"]
Chain 2:
org.eclipse.help.webapp [osgi.identity; osgi.identity="org.eclipse.help.webapp"; type="osgi.bundle"; version:Version="3.7.0.v20150425-0643"; singleton:="true"]
import: (&(osgi.wiring.package=javax.servlet)(version>=3.1.0))
|
export: osgi.wiring.package: javax.servlet; uses:=javax.servlet.annotation
export: osgi.wiring.package=javax.servlet.annotation
I have attached to the osgi console and get this from "ss":
osgi> ss
"Framework is launched."
id State Bundle
0 ACTIVE org.eclipse.osgi_3.10.100.v20150529-1857
Fragments=44
1 ACTIVE org.eclipse.equinox.common_3.7.0.v20150402-1709
2 ACTIVE org.eclipse.update.configurator_3.3.300.v20140518-1928
3 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.300.v20130327-1442
4 ACTIVE org.eclipse.equinox.http.registry_1.1.300.v20130402-1529
5 INSTALLED org.eclipse.help.webapp_3.7.0.v20150425-0643
6 STARTING org.eclipse.core.contenttype_3.5.0.v20150421-2214
7 ACTIVE org.eclipse.equinox.console_1.1.100.v20141023-1406
8 STARTING org.eclipse.ant.core_3.4.0.v20150428-1928
9 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
10 RESOLVED org.eclipse.jetty.server_9.2.9.v20150224
11 STARTING org.eclipse.core.jobs_3.7.0.v20150330-2103
12 STARTING org.eclipse.core.net_1.2.300.v20141118-1725
13 RESOLVED org.eclipse.jetty.io_9.2.9.v20150224
14 RESOLVED javax.el_2.2.0.v201303151357
15 STARTING org.eclipse.equinox.app_1.3.300.v20150423-1356
16 RESOLVED org.eclipse.jetty.security_9.2.9.v20150224
17 STARTING org.eclipse.equinox.security_1.2.100.v20150423-1356
18 ACTIVE org.eclipse.equinox.registry_3.6.0.v20150318-1503
19 STARTING org.eclipse.core.runtime_3.11.0.v20150405-1723
20 STARTING org.eclipse.equinox.http.jetty_3.1.0.v20150323-1312
21 STARTING com.ibm.icu_54.1.1.v201501272100
22 RESOLVED org.eclipse.osgi.services_3.5.0.v20150519-2006
23 ACTIVE org.eclipse.equinox.http.servlet_1.2.0.v20150519-1816
24 STARTING org.eclipse.equinox.jsp.jasper.registry_1.0.300.v20130327-1442
25 RESOLVED org.eclipse.jetty.servlet_9.2.9.v20150224
26 RESOLVED kindred.help_1.9.3
27 RESOLVED org.apache.commons.logging_1.1.1.v201101211721
28 STARTING org.eclipse.core.expressions_3.5.0.v20150421-2214
29 RESOLVED org.eclipse.jetty.util_9.2.9.v20150224
30 RESOLVED com.jcraft.jsch_0.1.51.v201410302000
31 RESOLVED javax.servlet.jsp_2.2.0.v201112011158
32 RESOLVED org.eclipse.jetty.http_9.2.9.v20150224
33 RESOLVED org.apache.jasper.glassfish_2.2.2.v201501141630
34 RESOLVED org.apache.lucene.analysis_3.5.0.v20120725-1805
35 STARTING org.eclipse.equinox.jsp.jasper_1.0.500.v20150119-1358
36 RESOLVED org.eclipse.oomph.p2.doc_1.1.0.v20150609-0914
37 STARTING org.eclipse.equinox.preferences_3.5.300.v20150408-1437
38 RESOLVED javax.servlet_3.1.0.v201410161800
39 RESOLVED org.apache.lucene.core_3.5.0.v20120725-1805
40 STARTING org.eclipse.help.base_4.0.300.v20150603-2000
41 STARTING org.eclipse.core.variables_3.2.800.v20130819-1716
42 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
43 STARTING org.eclipse.help_3.6.0.v20130326-1254
44 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.3.0
Master=0
45 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
Putting "diag 5" into the console gives the same information as shown above from the log. I have tried everything I could find to fix this (there was nothing specific to this problem that I could find). The most promising thing I found was to change Require-Bundle to Import-Package, which I have seen as a best practice. I don't understand the output in log and console well enough to figure out what I need to change, though, and my attempts so far have failed.
Here is the list of files from ../Catalina/localhost/help/eclipse/plugins:
com.ibm.icu_54.1.1.v201501272100.jar
com.jcraft.jsch_0.1.51.v201410302000.jar
javax.el_2.2.0.v201303151357.jar
javax.servlet_3.1.0.v201410161800.jar
javax.servlet.jsp_2.2.0.v201112011158.jar
MY-APP-help-1.9.3.jar
org.apache.commons.logging_1.1.1.v201101211721.jar
org.apache.felix.gogo.command_0.10.0.v201209301215.jar
org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar
org.apache.felix.gogo.shell_0.10.0.v201212101605.jar
org.apache.jasper.glassfish_2.2.2.v201501141630.jar
org.apache.lucene.analysis_3.5.0.v20120725-1805.jar
org.apache.lucene.core_3.5.0.v20120725-1805.jar
org.eclipse.ant.core_3.4.0.v20150428-1928.jar
org.eclipse.core.contenttype_3.5.0.v20150421-2214.jar
org.eclipse.core.expressions_3.5.0.v20150421-2214.jar
org.eclipse.core.jobs_3.7.0.v20150330-2103.jar
org.eclipse.core.net_1.2.300.v20141118-1725.jar
org.eclipse.core.runtime_3.11.0.v20150405-1723.jar
org.eclipse.core.variables_3.2.800.v20130819-1716.jar
org.eclipse.equinox.app_1.3.300.v20150423-1356.jar
org.eclipse.equinox.common_3.7.0.v20150402-1709.jar
org.eclipse.equinox.console_1.1.100.v20141023-1406.jar
org.eclipse.equinox.http.jetty_3.1.0.v20150323-1312.jar
org.eclipse.equinox.http.registry_1.1.300.v20130402-1529.jar
org.eclipse.equinox.http.servlet_1.2.0.v20150519-1816.jar
org.eclipse.equinox.http.servletbridge_1.0.300.v20130327-1442.jar
org.eclipse.equinox.jsp.jasper_1.0.500.v20150119-1358.jar
org.eclipse.equinox.jsp.jasper.registry_1.0.300.v20130327-1442.jar
org.eclipse.equinox.preferences_3.5.300.v20150408-1437.jar
org.eclipse.equinox.registry_3.6.0.v20150318-1503.jar
org.eclipse.equinox.security_1.2.100.v20150423-1356.jar
org.eclipse.equinox.servletbridge.extensionbundle_1.3.0.jar
org.eclipse.help_3.6.0.v20130326-1254.jar
org.eclipse.help.base_4.0.300.v20150603-2000.jar
org.eclipse.help.webapp_3.7.0.v20150425-0643.jar
org.eclipse.jetty.http_9.2.9.v20150224.jar
org.eclipse.jetty.io_9.2.9.v20150224.jar
org.eclipse.jetty.security_9.2.9.v20150224.jar
org.eclipse.jetty.server_9.2.9.v20150224.jar
org.eclipse.jetty.servlet_9.2.9.v20150224.jar
org.eclipse.jetty.util_9.2.9.v20150224.jar
org.eclipse.osgi_3.10.100.v20150529-1857.jar
org.eclipse.osgi.services_3.5.0.v20150519-2006.jar
org.eclipse.update.configurator_3.3.300.v20140518-1928.jar
where MY-APP-help-1.9.3.jar is the documentation plug-in for my product.
The directory ../Catalina/localhost/help/WEB-INF/lib contains only this file:
org.eclipse.equinox.servletbridge_1.3.0.v20140430-1556.jar
I thought it would be more helpful to show what was actually showing up in tomcat vs. what I am putting in the plug-in (it's almost the same, except for the ...extensionbundle...jar). I have spent far too much time just getting to this point and am completely frustrated and out of ideas for what else to try. Thanks for any help.
-EDIT-
Running under Java 1.7.

I'm upgrading the help of a commercial product from tomcat 5 to tomcat 7 and am not able to get help deployed as a war, which was working previously. I have followed the directions here:
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fua_help_setup_infocenter.htm
There were further changes I needed to make to get things close to working, but I now have a "uses constraint violation". From the log:
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.help.webapp [5]
Bundle was not resolved because of a uses contraint violation.
org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.eclipse.help.webapp [osgi.identity; osgi.identity="org.eclipse.help.webapp"; type="osgi.bundle"; version:Version="3.7.0.v20150425-0643"; singleton:="true"] because it is exposed to package 'javax.servlet.annotation' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.100.v20150529-1857"; singleton:="true"] and javax.servlet [osgi.identity; osgi.identity="javax.servlet"; type="osgi.bundle"; version:Version="3.1.0.v201410161800"] via two dependency chains.
Chain 1:
org.eclipse.help.webapp [osgi.identity; osgi.identity="org.eclipse.help.webapp"; type="osgi.bundle"; version:Version="3.7.0.v20150425-0643"; singleton:="true"]
require: (&(osgi.wiring.bundle=org.eclipse.core.runtime)(&(bundle-version>=3.6.0)(!(bundle-version>=4.0.0))))
|
provide: osgi.wiring.bundle: org.eclipse.core.runtime
org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.100.v20150529-1857"; singleton:="true"]
Chain 2:
org.eclipse.help.webapp [osgi.identity; osgi.identity="org.eclipse.help.webapp"; type="osgi.bundle"; version:Version="3.7.0.v20150425-0643"; singleton:="true"]
import: (&(osgi.wiring.package=javax.servlet)(version>=3.1.0))
|
export: osgi.wiring.package: javax.servlet; uses:=javax.servlet.annotation
export: osgi.wiring.package=javax.servlet.annotation
I have attached to the osgi console and get this from "ss":
osgi> ss
"Framework is launched."
id State Bundle
0 ACTIVE org.eclipse.osgi_3.10.100.v20150529-1857
Fragments=44
1 ACTIVE org.eclipse.equinox.common_3.7.0.v20150402-1709
2 ACTIVE org.eclipse.update.configurator_3.3.300.v20140518-1928
3 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.300.v20130327-1442
4 ACTIVE org.eclipse.equinox.http.registry_1.1.300.v20130402-1529
5 INSTALLED org.eclipse.help.webapp_3.7.0.v20150425-0643
6 STARTING org.eclipse.core.contenttype_3.5.0.v20150421-2214
7 ACTIVE org.eclipse.equinox.console_1.1.100.v20141023-1406
8 STARTING org.eclipse.ant.core_3.4.0.v20150428-1928
9 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
10 RESOLVED org.eclipse.jetty.server_9.2.9.v20150224
11 STARTING org.eclipse.core.jobs_3.7.0.v20150330-2103
12 STARTING org.eclipse.core.net_1.2.300.v20141118-1725
13 RESOLVED org.eclipse.jetty.io_9.2.9.v20150224
14 RESOLVED javax.el_2.2.0.v201303151357
15 STARTING org.eclipse.equinox.app_1.3.300.v20150423-1356
16 RESOLVED org.eclipse.jetty.security_9.2.9.v20150224
17 STARTING org.eclipse.equinox.security_1.2.100.v20150423-1356
18 ACTIVE org.eclipse.equinox.registry_3.6.0.v20150318-1503
19 STARTING org.eclipse.core.runtime_3.11.0.v20150405-1723
20 STARTING org.eclipse.equinox.http.jetty_3.1.0.v20150323-1312
21 STARTING com.ibm.icu_54.1.1.v201501272100
22 RESOLVED org.eclipse.osgi.services_3.5.0.v20150519-2006
23 ACTIVE org.eclipse.equinox.http.servlet_1.2.0.v20150519-1816
24 STARTING org.eclipse.equinox.jsp.jasper.registry_1.0.300.v20130327-1442
25 RESOLVED org.eclipse.jetty.servlet_9.2.9.v20150224
26 RESOLVED kindred.help_1.9.3
27 RESOLVED org.apache.commons.logging_1.1.1.v201101211721
28 STARTING org.eclipse.core.expressions_3.5.0.v20150421-2214
29 RESOLVED org.eclipse.jetty.util_9.2.9.v20150224
30 RESOLVED com.jcraft.jsch_0.1.51.v201410302000
31 RESOLVED javax.servlet.jsp_2.2.0.v201112011158
32 RESOLVED org.eclipse.jetty.http_9.2.9.v20150224
33 RESOLVED org.apache.jasper.glassfish_2.2.2.v201501141630
34 RESOLVED org.apache.lucene.analysis_3.5.0.v20120725-1805
35 STARTING org.eclipse.equinox.jsp.jasper_1.0.500.v20150119-1358
36 RESOLVED org.eclipse.oomph.p2.doc_1.1.0.v20150609-0914
37 STARTING org.eclipse.equinox.preferences_3.5.300.v20150408-1437
38 RESOLVED javax.servlet_3.1.0.v201410161800
39 RESOLVED org.apache.lucene.core_3.5.0.v20120725-1805
40 STARTING org.eclipse.help.base_4.0.300.v20150603-2000
41 STARTING org.eclipse.core.variables_3.2.800.v20130819-1716
42 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
43 STARTING org.eclipse.help_3.6.0.v20130326-1254
44 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.3.0
Master=0
45 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
Putting "diag 5" into the console gives the same information as shown above from the log. I have tried everything I could find to fix this (there was nothing specific to this problem that I could find). The most promising thing I found was to change Require-Bundle to Import-Package, which I have seen as a best practice. I don't understand the output in log and console well enough to figure out what I need to change, though, and my attempts so far have failed.
Here is the list of files from ../Catalina/localhost/help/eclipse/plugins:
com.ibm.icu_54.1.1.v201501272100.jar
com.jcraft.jsch_0.1.51.v201410302000.jar
javax.el_2.2.0.v201303151357.jar
javax.servlet_3.1.0.v201410161800.jar
javax.servlet.jsp_2.2.0.v201112011158.jar
MY-APP-help-1.9.3.jar
org.apache.commons.logging_1.1.1.v201101211721.jar
org.apache.felix.gogo.command_0.10.0.v201209301215.jar
org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar
org.apache.felix.gogo.shell_0.10.0.v201212101605.jar
org.apache.jasper.glassfish_2.2.2.v201501141630.jar
org.apache.lucene.analysis_3.5.0.v20120725-1805.jar
org.apache.lucene.core_3.5.0.v20120725-1805.jar
org.eclipse.ant.core_3.4.0.v20150428-1928.jar
org.eclipse.core.contenttype_3.5.0.v20150421-2214.jar
org.eclipse.core.expressions_3.5.0.v20150421-2214.jar
org.eclipse.core.jobs_3.7.0.v20150330-2103.jar
org.eclipse.core.net_1.2.300.v20141118-1725.jar
org.eclipse.core.runtime_3.11.0.v20150405-1723.jar
org.eclipse.core.variables_3.2.800.v20130819-1716.jar
org.eclipse.equinox.app_1.3.300.v20150423-1356.jar
org.eclipse.equinox.common_3.7.0.v20150402-1709.jar
org.eclipse.equinox.console_1.1.100.v20141023-1406.jar
org.eclipse.equinox.http.jetty_3.1.0.v20150323-1312.jar
org.eclipse.equinox.http.registry_1.1.300.v20130402-1529.jar
org.eclipse.equinox.http.servlet_1.2.0.v20150519-1816.jar
org.eclipse.equinox.http.servletbridge_1.0.300.v20130327-1442.jar
org.eclipse.equinox.jsp.jasper_1.0.500.v20150119-1358.jar
org.eclipse.equinox.jsp.jasper.registry_1.0.300.v20130327-1442.jar
org.eclipse.equinox.preferences_3.5.300.v20150408-1437.jar
org.eclipse.equinox.registry_3.6.0.v20150318-1503.jar
org.eclipse.equinox.security_1.2.100.v20150423-1356.jar
org.eclipse.equinox.servletbridge.extensionbundle_1.3.0.jar
org.eclipse.help_3.6.0.v20130326-1254.jar
org.eclipse.help.base_4.0.300.v20150603-2000.jar
org.eclipse.help.webapp_3.7.0.v20150425-0643.jar
org.eclipse.jetty.http_9.2.9.v20150224.jar
org.eclipse.jetty.io_9.2.9.v20150224.jar
org.eclipse.jetty.security_9.2.9.v20150224.jar
org.eclipse.jetty.server_9.2.9.v20150224.jar
org.eclipse.jetty.servlet_9.2.9.v20150224.jar
org.eclipse.jetty.util_9.2.9.v20150224.jar
org.eclipse.osgi_3.10.100.v20150529-1857.jar
org.eclipse.osgi.services_3.5.0.v20150519-2006.jar
org.eclipse.update.configurator_3.3.300.v20140518-1928.jar
where MY-APP-help-1.9.3.jar is the documentation plug-in for my product.
The directory ../Catalina/localhost/help/WEB-INF/lib contains only this file:
org.eclipse.equinox.servletbridge_1.3.0.v20140430-1556.jar
I thought it would be more helpful to show what was actually showing up in tomcat vs. what I am putting in the plug-in (it's almost the same, except for the ...extensionbundle...jar). I have spent far too much time just getting to this point and am completely frustrated and out of ideas for what else to try. Thanks for any help.
-EDIT-
Running under Java 1.7.

Similar Messages

  • "cannot create jbcd driver of class " for connect URL 'null'" error

    I am trying to get an application that is currently working fine on a Windows platform to work in a Linux environment.
    One thing that is different from my setup in Windows, and also one that I have no experience with, is the Linux-Ubuntu default install of Apache uses Virtual Hosts and Tomcat's equivalent multiple sessions.
    I'm running the app out of the usr/share/tomcat6/webapps/msgboard instance of Tomcat vs var/lib/tomcat6.
    I am calling the application from Apache Virtual Host port 80 using mod_jk. The application cannot run under native Tomcat because of the extensive use of PHP. Everything else in the application is working correctly including a DWR (Ajax) servlet. However I also tried a simple test app from native Tomcat and got the same results.
    I also tried connecting with jdbc:mysql://localhost:3306/msgboard?autoreconnect=true&user=root&password=password at the terminal prompt and got
    bash: jdbc:mysql://localhost/msgboard?autoreconnect=true: No such file or directory
    [1]7074
    [2] 7048
    [1] Exit 127 jdbc:mysql://localhost/msgboard?autoreconnect=true
    [2]+ Donesyslog error is
    Feb 23, 2009 3:01:51 PM org.directwebremoting.util.CommonsLoggingOutput info INFO: Exec: Online.getPosts()
    Feb 23 15:01:51 ubuntu jsvc.exec[6779]: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Feb 23 15:01:51 ubuntu jsvc.exec[6779]: Caused by: java.sql.SQLException: No suitable driverFollowing is all the pertinent setup info for reference and critique. Any suggestions would be greatly appreciated.
    Apache2.2
    Tomcat6
    JDBC
    mod_jk
    Java (not sure what ver, it's the default Ubuntu install ver.)
    PHP
    Currently I am pointing to mysql-connector-java.jar in my CLASSPATH at /usr/share/java/mysql-connector-java.jar added symlinks commons-dbcp.jar, commons-logging.jar to usr/share/tomcat6/lib
    Application is deployed from usr/share/tomcat6/webapps/msgboard
    The basic code snippet in class calling the jdbc
    WEB-INF/classes/dbLink.class
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/msgboardDB");
    WEB-INF/web.xml
    <?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 id="msgboard">
    <display-name>Message Board</display-name>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/msgboardDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    META-INF/context.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Context path="/msgboard" docBase="msgboard"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/msgboardDB"
    auth="Container"
    type="javax.sql.DataSource"
    maxActive="100"
    maxIdle="30"
    maxWait="10000"
    username="root"
    password="thePassword"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/msgboard?autoReconnect=true"/>
    </Context>
    I also included a symlink to this in var/lib/tomcat6/config named msgboard.xml
    per instruction at http://ubuntuforums.org/showthread.php?t=430133 and have since removed it.
    my.cnf
    [client]
    port = 3306
    bind-address = 127.0.0.1
    permissions set in /etc/tomcat6/policy.d/04webapps.policy
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    per instruction at http://ubuntuforums.org/showthread.php?t=430133
    other permiissions set /etc/tomcat6/policy.d/50local.policy
    grant codeBase "file:/usr/share/tomcat6/webapps/msgboard/-" {
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    grant codeBase "file:/usr/share/tomcat6/webapps/msgboard/WEB-INF/classes/-" {
    permission java.io.FilePermission "/usr/share/tomcat6/webapps/msgboard/WEB-INF/classes/logging.properties", "read";
    grant codeBase "jar:file:/usr/share/tomcat6/webapps/msgboard/WEB-INF/lib/mysql-connector-java-5.1.6.jar!/-" {
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    I even tried setting Tomcat Security to "no" per instruction at
    http://webui.sourcelabs.com/ubuntu/mail/user/threads/Tomcat_connecting_to_MySQL_-Ubuntu8.10_Server.meta
    http://ubuntuforums.org/showthread.php?t=1034957&highlight=apache+tomcat+jdbc
    http://ubuntuforums.org/showthread.php?t=66615
    http://ubuntuforums.org/showthread.php?t=33601&highlight=java+mysql
    http://ubuntuforums.org/showthread.php?t=430133
    http://programminglinuxblog.blogspot.com/2008/03/connection-pooling-with-java-all.html
    http://webui.sourcelabs.com/ubuntu/mail/user/threads/Tomcat_connecting_to_MySQL_-Ubuntu8.10_Server.meta

    SOLUTION
    I had to add
    <Resource name="jdbc/webappDB"
         auth="Container"
         type="javax.sql.DataSource"
            maxActive="100"
         maxIdle="30"
         maxWait="10000"
            username="root"
         password="password"
         driverClassName="com.mysql.jdbc.Driver"
            url="jdbc:mysql://localhost:3306/webapp?autoReconnect=true"/>into /var/lib/tomcat6/conf/Catalina/localhost/ webapp.xml
    Note: the above context file was created automatically after deploying the webapp. I had to add the <resource> to it.
    The context I created in usr/share/tomcat_home/webapp/META_INF/context.xml is still there and has the same <resource>.defined in it. I did not verify whether or not it still needs to be there.
    After that I had to add two policies
    /var/lib/tomcat6/conf/policy.d/03catalina.policy
    grant {
    permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.dbcp.*";
    and 04webapps.policy
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    That did the trick!
    Other things that were done but have not been verified as to have any bearing on this issue.
    I changed the active java from openjdk to java-sun
    I added $tomcat_home/lib:$tomcat_home/lib/mysql-connector.jar:$tomcat_home/lib/commons-dbcp.jar to PATH
    Changed CLASSPATH=usr/share/classpath:usr/share/java/commons-dbcp.jar:usr/share/java/mysql-connector.jar
    Edited by: wlbragg on Feb 25, 2009 12:58 AM
    Edited by: wlbragg on Feb 25, 2009 12:59 AM
    Edited by: wlbragg on Feb 25, 2009 1:11 AM

  • Cannot create JDBC driver of class '' for connect URL 'null'

    HI,
    Can any one help why i am getting the below error:
    Cannot create JDBC driver of class '' for connect URL 'null'
    The Error Stack Trace is:
    Cannot create JDBC driver of class '' for connect URL 'null'
    java.lang.NullPointerException
        at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source)
        at java.sql.DriverManager.getDriver(Unknown Source)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
        at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
        at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
        at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1786)
        at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:505)
        at com.crystaldecisions.reports.queryengine.Connection.t4(SourceFile:3020)
        at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:697)
        at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.a(SourceFile:309)
        at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.long(SourceFile:264)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1150)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
        at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
        at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
        at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
        at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
        at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:878)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPromptDatabaseLogOnInfos(SourceFile:815)
        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPromptDatabaseLogOnInfos(SourceFile:338)
        at com.businessobjects.report.web.a.e.a(SourceFile:174)
        at com.businessobjects.report.web.a.e.a(SourceFile:97)
        at com.businessobjects.report.web.a.e.a(SourceFile:343)
        at com.businessobjects.report.web.a.t.a(SourceFile:1726)
        at com.businessobjects.report.web.event.bw.broadcast(SourceFile:97)
        at com.businessobjects.report.web.event.am.a(SourceFile:53)
        at com.businessobjects.report.web.a.t.if(SourceFile:2104)
        at com.businessobjects.report.web.e.a(SourceFile:300)
        at com.businessobjects.report.web.e.a(SourceFile:202)
        at com.businessobjects.report.web.e.a(SourceFile:135)
        at com.crystaldecisions.report.web.ServerControl.a(SourceFile:607)
        at com.crystaldecisions.report.web.ServerControl.processHttpRequest(SourceFile:342)
        at org.apache.jsp.CrystalReport_jsp._jspService(CrystalReport_jsp.java:205)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    Cannot create JDBC driver of class '' for connect URL 'null'
    java.lang.NullPointerException
        at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source)
        at java.sql.DriverManager.getDriver(Unknown Source)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
        at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
        at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
        at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1786)
        at com.crystaldecisions.reports.queryengine.Connection.
    Thanks
    Penchal

    HI Shailendra,
    I think your expecting code. The Code is as follows. and also for few reports i am getting Unexpected Database Error help me in this also
    if(reportName != null && !"".equals(reportName) && reportSource==null){
            //Initializing report
            ReportClientDocument boReportClientDocument = new ReportClientDocument();
            boReportClientDocument.open(reportName, 0);
              Fields<IParameterField> parameterFields = boReportClientDocument.getDataDefController().getDataDefinition().getParameterFields();
              System.out.println("Param Fields Size:"+parameterFields.size());
         if (parameterFields.size() > 0) {
            ParameterFieldController paramController = boReportClientDocument.getDataDefController().getParameterFieldController();
            for (int i = 0; i < parameterFields.size(); i++) {
                String paramName = parameterFields.getField(i).getName().trim();
                System.out.println("                    -          "+paramName);
                if(request.getParameter(paramName) != null) {
                    paramController.setCurrentValue("", paramName, request.getParameter(paramName));
                    System.out.println(paramName+":"+request.getParameter(paramName));
                }else {
                    System.out.println("Param is Null:"+paramName+":"+request.getParameter(paramName));
                    paramController.setCurrentValue("", paramName, "");
        reportSource = boReportClientDocument.getReportSource();
        //session.setAttribute("ReportSource", reportSource);
        boReportClientDocument.close();
        CrystalReportViewer crystalReportViewer = new CrystalReportViewer();
        crystalReportViewer.setName(reportName);
        crystalReportViewer.setOwnPage(true);
        crystalReportViewer.setBestFitPage(true);
        crystalReportViewer.setToolPanelWidth(0);
        crystalReportViewer.setHasToggleParameterPanelButton(false);
        crystalReportViewer.setHasToggleGroupTreeButton(false);
        crystalReportViewer.setReportSource(reportSource);
        crystalReportViewer.setEnableDrillDown(false);
                crystalReportViewer.processHttpRequest(request, response,getServletConfig().getServletContext(),null);
    Thanks
    Penchal

  • How can I create a magazine web app for all devices?

    How can I create a magazine web app for all devices?

    magazine web app is not supported in DPS as of now. You can share the contents to preview it on web content viewer.

  • Is it possible to create a custom web app for online quotes?

    is it possible to create a custom web app for online quotes?
    Any advise greatly appreciated.

    Hi there,
    You really need to expand a lot more on what you want to achieve. That really is nothing to go on there .

  • Can I create a muse web site for someone else and allow them to make edits to site. Example to update gigs for a musician web site.

    Can I create a muse web site for someone else and allow them to make edits to site. Example to update gigs for a musician web site.

    Yes, you can. Sites published with BusinessCatalyst or to an FTP host can be edited by clients. Here is a short tutorial about the new In-Browser Editing feature: In-browser Editing | Adobe Muse CC tutorials

  • Tomcat 6.0.18, Cannot create JDBC driver of class '' for connect URL 'null'

    hi,
    I have searched through the web, none of the solution works for me. Hope I could get some suggestion from you.
    I am running tomcat 6.0.18 + eclipse 3.4.1 + jre 1.6 + jsp + jsf + mysql 5.0 on Ubuntu 8.10.
    The <GlobalNamingResources> configuration of TOMCAT_HOME/conf/server.xml
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/db" auth="Container"
    type="javax.sql.DataSource"
    factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/db?autoReconnect=true"
    username="xxx"
    password="xxx"
    maxActive="20"
    maxIdle="10"
    poolPreparedStatements="true" />
      </GlobalNamingResources>TOMCAT_HOME/conf/context.xml
    <Context>
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <!-- Uncomment this to disable session persistence across Tomcat restarts -->
        <!--
        <Manager pathname="" />
        -->
        <!-- Uncomment this to enable Comet connection tacking (provides events
             on session expiration as well as webapp lifecycle) -->
        <!--
        <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
        -->
    <ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>                
    </Context>An additional context.xml at eclipse'sworkspace/MyApplication/WebContent/META-INF
    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>                  
    </Context>web.xml of my application
      <resource-ref>
          <description>DB Connection</description>
          <res-ref-name>jdbc/db</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
      </resource-ref>This is the current configuration of the application, before this, I have followed the guidance of:
    [Apache Tomcat 6.0 JNDI Datasource HOW-TO|http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations]
    and all the solutions from
    [Cannot create JDBC driver of class..|http://www.theserverside.com/discussions/thread.tss?thread_id=25459]
    Please advice, what's going wrong?

    hi,
    I have searched through the web, none of the solution works for me. Hope I could get some suggestion from you.
    I am running tomcat 6.0.18 + eclipse 3.4.1 + jre 1.6 + jsp + jsf + mysql 5.0 on Ubuntu 8.10.
    The <GlobalNamingResources> configuration of TOMCAT_HOME/conf/server.xml
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/db" auth="Container"
    type="javax.sql.DataSource"
    factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/db?autoReconnect=true"
    username="xxx"
    password="xxx"
    maxActive="20"
    maxIdle="10"
    poolPreparedStatements="true" />
      </GlobalNamingResources>TOMCAT_HOME/conf/context.xml
    <Context>
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <!-- Uncomment this to disable session persistence across Tomcat restarts -->
        <!--
        <Manager pathname="" />
        -->
        <!-- Uncomment this to enable Comet connection tacking (provides events
             on session expiration as well as webapp lifecycle) -->
        <!--
        <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
        -->
    <ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>                
    </Context>An additional context.xml at eclipse'sworkspace/MyApplication/WebContent/META-INF
    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>                  
    </Context>web.xml of my application
      <resource-ref>
          <description>DB Connection</description>
          <res-ref-name>jdbc/db</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
      </resource-ref>This is the current configuration of the application, before this, I have followed the guidance of:
    [Apache Tomcat 6.0 JNDI Datasource HOW-TO|http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations]
    and all the solutions from
    [Cannot create JDBC driver of class..|http://www.theserverside.com/discussions/thread.tss?thread_id=25459]
    Please advice, what's going wrong?

  • Cannot create resource instance (Works on NetBeans/Tomcat)

    I have a project that works just fine in NetBeans w/ Tomcat but when I deploy it to Sun One Web Server 6.1 SP5 I get the following error:
    StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
    javax.servlet.ServletException: Cannot create resource instance
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
         at jsps.index_jsp._jspService(_index_jsp.java:91)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:687)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:459)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:375)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
    ----- Root Cause -----
    javax.naming.NamingException: Cannot create resource instance
         at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:167)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
         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:181)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
         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.naming.SelectorContext.lookup(SelectorContext.java:183)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at jsps.index_jsp._jspService(_index_jsp.java:79)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:687)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:459)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:375)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
    I have the following in my in context.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/BOEnterpriseTest1">
    <Resource name="jdbc/dev10g" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev" username="userid" password="pwd" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>
    I have the following in my web.xml:
    <resource-ref>
    <description>jdbc:oracle:thin:@10..10.10.10:1521:dev</description>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    What�s missing on the Sun One server?

    I am trying to do a refresh of a Crystal Reports report in a JSP.
    Using the web.xml looking like:
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.
    10.10:1521:dev10g</description>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    and code in my JSP:
    <%
    InitialContext initContext = new InitialContext();
    DataSource source = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    try{
    DataSource ds = (DataSource)initCtx.lookup("Data");
    catch ( NamingException e ){
    DataSource ds = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    initCtx.bind("Data", ds);     
    I get the following error:
    WEB2720: Error initializing naming context for context /BOEnterpriseTest1
         javax.naming.NameNotFoundException: WEB3885: Name Data is not bound in this Context
              at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
              at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
              at com.iplanet.ias.web.WebModule.verifyResType(WebModule.java:510)
              at com.iplanet.ias.web.WebModule.bindResources(WebModule.java:410)
              at com.iplanet.ias.web.WebModule.bindGlobalResourceRefs(WebModule.java:352)
              at com.iplanet.ias.web.WebModule.createNamingContext(WebModule.java:323)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3718)
              at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
              at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
              at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
              at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
              at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
              at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    What steps do I need to do on the Server side or in my code?

  • Cannot Create ShrePoint Search Service Application for SP2013

    Hi All,
    Thanks in advance for any help you may provide.
    While Creating a new search service application i have received the following error:
    Errors were encountered during the configuration of the Search Service Application.
    System.ArgumentException: The SDDL string contains an invalid sid or a sid that cannot be translated. Parameter name: sddlForm at System.Security.AccessControl.RawSecurityDescriptor.BinaryFormFromSddlForm(String sddlForm) at System.Security.AccessControl.RawSecurityDescriptor..ctor(String
    sddlForm) at Microsoft.SharePoint.Win32.SPNetApi32.CreateShareSecurityDescriptor(String[] readNames, String[] changeNames, String[] fullControlNames, String& sddl) at Microsoft.SharePoint.Win32.SPNetApi32.CreateFileShare(String name, String description,
    String path) at Microsoft.Office.Server.Search.Administration.AnalyticsAdministration.CreateAnalyticsUNCShare(String dirParentLocation, String shareName) at Microsoft.Office.Server.Search.Administration.AnalyticsAdministration.ProvisionAnalyticsShare(SearchServiceApplication
    serviceApplication) at Microsoft.Office.Server.Search.Administration.AnalyticsAdministration.CreateDefaultStoreLocation(SearchServiceApplication serviceApplication) at Microsoft.Office.Server.Search.Administration.AnalyticsAdministration.ProvisionRawEventStore(SearchServiceApplication
    serviceApplication) at 
    The Fix with Sharing the Analitics_GUID Folder doesn't work, because it creates every Time a new one.
    I really appreciate if you could give me a help.
    Regards!
    Martin

    Hi all,
    Thank you very much for your Response.
    I have resolve this Issue yesterday, but didn't have time to answer.
    I have tried everything (Create over Powershell and GUI) and as I say the fix with Analitics_GUID dont work. I have give everyone Full Controll on the hole Office Folder and Sub-folders.
    I have look with the Reflector in the Code that causes the Exception and find that the SDDL string need some format in
    that has an Domain Account and not Local Account. I mean some SID Domain ids.
    So there is no way to create an "Complete" Installation ( not Standalone)  without having a Domain. It is possible but you cannot create Search Service App and some
    other Components didn't work as expected.
    My Software was:
    Windows Server 2012 Datacenter
    SQL Server 2012 Enterprise with SP1
    SharePoint 2013 Enterprise
    So I created a "local" domain an it works. 
    Thank you very much
    Regards
    Martin

  • JNDI-Tomcat 5.5.17, Cannot create JDBC driver of class '' for connect URL '

    I wrote a jsp program using JNDI to get connected to MySql DB, but i got the error " Cannot load JDBC driver class 'com.mysql.jdbc.Driver' " while running the program.
    I'm using NetBean5.5 which has bundled TomCat5.5.17.
    I've refered to many tutorials and websites, but i still can't solve it, here's my configuration and codes:
    Imported mysql-connector-java-5.0.5-bin into lib directory.
    context.xml:
    <Context path="/WebApplication1">
    <Resource name="jdbc/jsp" auth="Container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/jsp">
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/jsp</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>root</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>malaysia</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>20</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>10</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>-1</value>
    </parameter>
    </ResourceParams>
    </Context>
    i included the following in Web.xml:
    <resource-ref>
    <res-ref-name>jdbc/jsp</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    My JSP Code:
    Context initContext = new InitialContext();
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)envContext.lookup("jdbc/jsp");
    Connection conn = ds.getConnection();
    Thanks~~~~

    I think mysql jdbc library should add to the class library path of your project.
    Hope this helps.

  • How to create a simple web.xml for using servlets

    Hello i wanna configure the web.xml that i can use sevlets and beans, but how can i do that?
    This is de directorie i have installed my webapp
    C:\Tomcat 4.1\webapps\testapp
    C:\Tomcat 4.1\webapps\test\WEB-INF\classes (in this dir, I wanna put my beans and servlets, I got one servlet and the name is LogIn.class).
    And i wanna request my servlets with the url http://localhost:8080/testapp/servlet/LogIn
    How can i create a very basic web.xml with working beans, servlets and session? It is for testing-use only, so the security is not important for me at this moment.
    Tnx

    under your web-inf
    in your web.xml file you must map
    the servlets
    under the <web-app> tag type
    <servlet>
         <servlet-name>LogIn</servlet-name>
         <servlet-class>com.LogIn</servlet-class>
    </servlet>
    <servlet-mapping>
          <servlet-name>LogIn</servlet-name>
          <url-pattern>/LogIn</url-pattern>
    </servlet-mapping>ps: start using some IDE such as NetBeans or Ecclipse
    since they will take care of mapping all servlets and Beans
    and generate all the necessary files for your web-app

  • Cannot create/open files in CS5 for Mac, no windows pop up

    Hi there, I am extremely frustrated and in need of some help. I have CS5 for my Mac (running on OSX 10.7.5) and I cannot get any windows to open. If I open the program, go to File > New and try to create something when I hit OK there is no new blank window popping up. Over on the right hand side there is a layer for background but no window. If I try to drag a file into Photoshop, it will show the layers on the dashboard along the side but the file doesn't actually pop up. Has anyone else had this issue? Could someone please help me out?
    Thanks!
    Rachel

    Hi, I moved your discussion to the Photoshop General forum. You might some more help here than you would in the Photoshop for beginners forum.

  • Cannot create title tag, meta tags for iWeb site, per Google requirements.

    I created simple website in iWeb to meet art show deadline
    www.barbaraturnertigrett.com
    but when I tried to submit to search engines (via GoDaddy "Traffic Blazer" product), several issues or errors noted...no title tag, meta tags, keywords, too little text, etc. Was told by Apple, there is no fix at this time...no way to access to actual HTML code, to add title tag or meta tags, etc...since iWeb is merely a consumer, not professional enterprise, product. Researching further, I even tried to submit to Google directly, not via GoDaddy "Traffic Blazer", but could not "verify" my url site (because meta tag missing and/or could not upload entire html file, as required. I'd produced client websites in past on Adobe GoLive and was learning Dreamweaver, when someone alerted me to simplicity of iWeb. It is clean and simple, but wish I'd anticipated these other issues. Is there a solution to this with iWeb or should I finish learning Dreamweaver and start over? Thanks for any advice you can share.

    Both these last postings were helpful. THANKS. I could not open home.html file with "text edit", but when using Taco HTML Edit, it would open...so I dusted off (novice) HTML skills and entered the appropriate title tag and meta tag, per Google's requirements. Then, went to my GoDaddy hosting control center and (I think) I uploaded new file with new tags. Seems to be major lag time with any changes, so not sure my site is now successfully "verified", on Google. Hope I did not mess anything up, in the process. There seems to be various lag times before any changes take effect (right??).
    So now...I'm very glad to find out about iMap and will buy it and watch the tutorial video, as instructed...since I am unsure if last 'fix'...fixed the problem, etc...and always eager to learn more. This is my first Apple discussion post, and certainly impressed/grateful for expert help. THX again.

  • How to get Connector information and WebAS Info for System

    HI,
    How can we get the info for the Connector and WebAs to create the system?
    Thanks,

    Hi
    Check the following threads for input
    1.[Using SAP Java Connector to Generate ABAP Documentation|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/47b6cd90-0201-0010-5aba-b6b7474d4aff]
    2.[Overview of SAP Application Servers|http://help.sap.com/saphelp_nw04s/helpdata/en/69/c24e034ba111d189750000e8322d00/frameset.htm]
    3.[Business Connector|Re: Business Connector end of life;
    4.[SAP Business Connector on Windows XP|Re: SAP Business Connector on Windows XP;
    Best Regards
    Satish Kumar

  • About setting the web.xml for Tomcat

    for a project, I use more than one servlet. So i set the
    <servlet>
    <servlet-name>servlet1</servlet-name>
    <servlet-class>servlet1</servlet-class>
    <servlet-name>servlet2</servlet-name>
    <servlet-class>servlet2</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>servlet1</servlet-name>
    <url-pattern>/servlet1</url-pattern>
    <servlet-name>servlet2</servlet-name>
    <url-pattern>/servlet2</url-pattern>
    <servlet-mapping>
    but only the last servlet is there for the web server to find and call. I don't know what's the problem. Maybe I don't set other parameters in some files of Tomcat?
    Thanks for your reply.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    This is the web-app configurations that allow w3prj to work under
    Apache Tomcat.
    -->
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name>JDBC</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>login</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>worker</servlet-name>
    <servlet-class>workerServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>JDBC</servlet-name>
    <url-pattern>/TestServlet</url-pattern>
    <servlet-name>login</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    <servlet-name>worker</servlet-name>
    <url-pattern>/worker</url-pattern>
    </servlet-mapping>
    </web-app>

Maybe you are looking for

  • NET8의 LOGGING과 TRACE 관련 PARAMETER에 대한 Q & A

    제품 : SQL*NET 작성날짜 : 2002-05-07 NET8의 LOGGING과 TRACE 관련 PARAMETER에 대한 Q & A ================================================= PURPOSE Net8을 이용하면서 발생하는 문제를 추적 하기위해 oracle의 configuration file에 들어갈 수 있는 parameter와 logging과 tracing을 하는 방법에 대해 질의/응답을 통해 알아

  • Optimizing iPhone battery life: Between charges and before replacement

    FYI. An excellent iPhone battery care article by iPhoneAtlas.com: Optimizing iPhone battery life: Between charges and before replacement http://www.iphoneatlas.com/2007/07/09/optimizing-iphone-battery-life-between-cha rges-and-before-replacement/

  • Can my wife and I share the same Apple ID on each of our iPhones?

    I'm trying to set hers up and now it's showing each of our contacts in the other's contacts list (in addition to our own).  Now I'm worried that we'd have the same apps and end up with each other's email if I proceed.  Can we have separate settings w

  • Scheduling Agreement-View Changes Made with a T-code

    Dear All, I have a requirement wherein our client wants to view the changes or updation that has happened over a period of time in the scheduling agreement, ie changes in quantity and changes in dates. For example; we have MM04 wherein we can see the

  • Can't install Windows 8.1 - Driver Violation

    I'm trying to install Windows 8.1 on my Asus U43JC notebook. Windows 8 will install fine without a problem, but I can't get 8.1 installed. When installing from the marketplace, 8.1 will download and install, but after first booting, I get a blue scre