BEA-090563 -- Cannot create instance of Hostname Verifier

I am trying to use custom hostname verifier for my osb project and following are the steps.
1. Create java class -- given below as reference...
2. Add the full class name @ Admin server --> ssl --> Advanced --> custom hostname verifier -- also choose custom hostname verifier in the host name verification field above it.
3. Package the class in the jar file using eclipse export java project and place the file in server-lib folder.
4. Restart admin and osb server.
I am facing following error ---
osb_domain.log00932:####<Aug 3, 2012 12:01:41 PM EST> <Error> <Security> <server host name> <osb_server1> <[ACTIVE] ExecuteThread: '
1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <6cf4c9e4b2f5468a:-4668cc77:138ea27406f:-8000-000000000000095d> <134
3959301805> <BEA-090563> <Cannot create instance of Hostname Verifier <package name>:WildcardHostnameVerifier.>
Can somebody let me know if there are any additional settings required for this to work ?
JAVA CLASS
package <package name>;
import java.io.ByteArrayInputStream;
import java.security.cert.Certificate;
import java.security.cert.CertificateEncodingException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.SSLSession;
import weblogic.security.SSL.HostnameVerifier;
* @author Ravi_Shah01
public class WildcardHostnameVerifier implements HostnameVerifier {
     /* (non-Javadoc)
     * @see com.certicom.net.ssl.HostnameVerifier#verify(java.lang.String, javax.net.ssl.SSLSession)
     public WildcardHostnameVerifier() {
          System.out.print("Creating instance of WildcardHostnameVerifier");
     public boolean verify(String hostname, SSLSession session) {
          try {
               Certificate cert = session.getPeerCertificates()[0];
               byte [] encoded = cert.getEncoded();
               CertificateFactory cf = CertificateFactory.getInstance("X.509");
               ByteArrayInputStream bais = new ByteArrayInputStream(encoded);
               X509Certificate xcert = (X509Certificate)cf.generateCertificate(bais);
               String cn = getCanonicalName( xcert.getSubjectDN().getName() );
               if(cn.equals(hostname))
                    return true;
               Pattern validHostPattern = Pattern.compile("\\*\\.[^*]*\\.[^*]*");
               Matcher validHostMatcher = validHostPattern.matcher(cn);
               if(validHostMatcher.matches())
                    String regexCn = cn.replaceAll("\\*.", "(.)*[\\.\\$]");
                    Pattern pattern = Pattern.compile(regexCn);
                    Matcher matcher = pattern.matcher(hostname);
                    if(matcher.matches())
                         if(matcher.group().equals(hostname))
                              return true;
                         else
                              return false;
                    else
                         return false;
               else
                    return false;
          } catch (SSLPeerUnverifiedException e) {
               e.printStackTrace();
               return false;
          } catch (CertificateEncodingException e) {
               e.printStackTrace();
               return false;
          } catch (CertificateException e) {
               e.printStackTrace();
               return false;
     * Return just the canonical name from the distinguishedName
     * on the certificate.
     * @param subjectDN
     * @return
     private String getCanonicalName(String subjectDN) {
          Pattern pattern = Pattern.compile("CN=([-.*aA-zZ0-9]*)");
          Matcher matcher = pattern.matcher(subjectDN);
          if(matcher.find())
               return matcher.group(1);
          return subjectDN;
}

Hi Ravi,
3. Package the class in the jar file using eclipse export java project and place the file in server-lib folder.Instead of placing the jar in server-lib, please modify setDomainEnv.cmd/setDomainEnv.sh as below to add jar in the classpath-
set CLASSPATH=<Your_Jar_PATH>;%CLASSPATH%
Restart WebLogic Server and re-test.
From Weblogic 10.3.4 onwards there is a patch available to enhance the existing default BEA hostname verifier to include wildcard certificates and wildcard host name verifier is available in Weblogic 10.3.6
Regards,
Anuj

Similar Messages

  • Cannot Create Instance Error

    I am using 11gR1, I am trying to run an application created out of a project template. I was able to successfully deploy both the composite and UI, When I login as initiator and click on the process link I am getting "cannot create instance error".
    In EM, the Instance shows that its been faulted and has the following message.
    ORABPEL-10513 Cannot get application roles from application identified by "{0}". An error occured while getting application roles from application identified by "OracleBPMProcessRolesApp". The underlying APIs threw an exception. Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    All the organization roles have been created properly. Can anyone please tell me what could be the cause of this error. Thanks
    Venkat

    Hey Venkat,
    Do you have any sample where you work with BPM template (MDS)...?if yes, could you share....those...?
    I am new to 11g..in learning phase....it would be very nice if you could share some samples.....
    Rgds,
    Biltu...

  • Why cannot create instance to an abstract class?

    Dear Developers....
    abstract class can create be its own constructor but why they didn't create object

    We cann't create an object for abstract class
    because they have abstract methods which depends on
    its subclass for its implementation. if it is
    possible to create the object for abstract class
    means then you can call a method which has no
    implementation(abstract methods) which is a illegal
    one thats what the ruleWhat about classes with no abstract members?
    public abstract class A {}No danger of accessing anything illegal here.
    The rule is far more simple. By declaring a class as abstract, the creator defines that no instances of this class may exist. Period. If you could create instances, the class wouldn't be abstract anymore, per definition. It's like asking why a green light doesn't shine red. If it would, it wouldn't be green anymore.

  • WL-10.3.5 Error Creating Wildcard Hostname Verifier for Facebook OAuth

    Hi,
    I am writing an application that uses OAuth for 3rd party login. However, Weblogic 10.3.5 does not by default accept the way Facebook uses a wildcard in their SSL Certificate.
    Caused By: javax.net.ssl.SSLKeyException: [Security:090504]Certificate chain received from graph.facebook.com - 31.13.70.23 failed hostname verification check.
    Certificate contained *.facebook.com but check expected graph.facebook.comSo I am attempting to use a Custom Hostname Verifier that implements the weblogic.security.SSL.HostnameVerifier interface, to use instead of the standard BEA Hostname Verifier. I have packaged into a jar, my CustomHostnameVerifier class that implements the weblogic.security.SSL.HostnameVerifier interface. Here's where I might be running into trouble. To make this class available on the weblogic classpath, I have tried placing the jar in various weblogic lib directories on my development machine. (%WL_HOME%\wlserver_10.3\server\lib) And then in the weblogic console's advanced settings for SSL on the DefaultServer, I select that I want to use a Custom Hostname verifier, and provide the full class name of my class: my.package.prefix.CustomHostnameVerifier.
    Now when I reboot and try connecting with Facebook, a ClassNotFoundException is thrown:
    Caused By: weblogic.utils.NestedRuntimeException: [Security:090563]Cannot create instance of Hostname Verifier my.package.prefix.CustomHostnameVerifier...
    Caused By: java.lang.ClassNotFoundException: my.package.prefix.CustomHostnameVerifierI have checked that the class is in fact accessible from the jar, and have also used the start-up argument: -Dweblogic.security.SSL.HostnameVerifier=my.package.prefix.CustomHostnameVerifier, instead of and in addition to the SSL tab settings in the console. I've found no luck so far using suggestions from documentation and the web. I was just hoping someone might know what I'm doing wrong here, or be able to point me in the right direction for properly making classes available to weblogic.
    Thanks.
    -Tyler

    I solved this problem. I've extracted all required libraries from weblogic server.
    com.bea.core.descriptor.settable.binding_1.4.0.0.jar
    com.bea.core.descriptor.wl.binding_1.1.0.0.jar
    com.bea.core.descriptor.wl_1.1.0.0.jar
    com.bea.core.descriptor_1.4.0.0.jar
    com.bea.core.xml.beaxmlbeans_1.0.0.0_2-4-0.jar
    com.bea.core.xml.beaxmlbeans_2.2.0.0.jar
    com.bea.core.xml.staxb.buildtime_1.3.0.0.jar
    com.bea.core.xml.staxb.runtime_1.3.0.0.jar
    com.bea.core.xml.stax_1.1.0.0.jar
    com.bea.core.xml.xmlbeans_1.0.0.0_2-4-0.jar
    com.bea.core.xml.xmlbeans_2.2.0.0.jar
    glassfish.jaxb.xjc_2.1.6.jar
    glassfish.jaxws.rt_2.1.3.jar
    glassfish.jaxb_2.1.6.jar
    glassfish.jaxws.tools_1.0.0.0_2-1-3.jar     
    wlfullclient.jar
    weblogic.jar
    webserviceclient+ssl.jar
    webserviceclient.jar
    webservices.jar
    wlfullclient5.jar
    wlclient.jar

  • Cannot create process to handle workflow instance conversation

    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<Process>
    Hi,
    Iam getting following error when iam trying to invoke
    subworkflow.
    can anyone help me in solving this problem.
    regards
    Ananth
    ERROR: Cannot cr
    eate process null.>
    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<B2B-BPM-Plugin> ERROR:
    Cannot create process to handle workflow instance conversation
    com.bea.b2b.protocol.ProcessManager$CreateException: ERROR: Cannot create proces
    s null.

    Hi Ajaz,
    Error description is not detailed enough to provide the solution. You need to post the error message what you got in the server log files. This should contain specific details about the issue.
    Not sure but issue may be related to JVM settings. if it is so, server log file will provide the error description.

  • PowerPivot - SP2013 - Cannot create the service instance because the parent Service does not exist

    Unable to setup PowerPivot using PowerPivot configuration tool.
    I have One server which has SQL 2012 SP1 and SP2013.
    The farm is configured with all service applications.
    SQL has default instance with DB Engine and SSAS Tabular. Reporting Services has been configured using SharePoint mode and has a service application.
    The Power Pivot instance is set up with DB Engine and the SSAS.
    I keep getting this error. Ive tried so many times uninstalling, making sure features removed, rebuilding the farm (thank god for autospinstaller..)
    11/07/13 12:06:17:6858 Verbose: CreateSystemServiceInstance.NeedsExecute
    11/07/13 12:06:17:6858 Verbose: Running function IsFarmConfigured to check whether SharePoint is configured regardless of availability
    11/07/13 12:06:17:6858 Verbose: Farm is configured
    11/07/13 12:06:17:6858 Verbose: Entering function GetService(Guid)
    11/07/13 12:06:17:6868 Verbose: Service is not installed.
    11/07/13 12:06:17:6868 Verbose: Service instance not found in local server.
    11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.NeedsExecute(True)
    11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.CanExecute
    11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.CanExecute(True)
    11/07/13 12:07:41:5662 Verbose: CreateSystemServiceInstance.Execute
    11/07/13 12:07:41:5682 Verbose: Entering function GetService(Guid)
    11/07/13 12:07:41:5702 Verbose: Service is not installed.
    11/07/13 12:07:41:5702 Verbose: CreateSystemServiceInstance.Execute(Skipped)
    11/07/13 12:07:41:5702 High: Cannot create the service instance because the parent Service does not exist.
    11/07/13 12:07:41:5702 High: Prerequisites check for execution failed. Farm is not in a valid state.

    Did you install the PowerPivot add-in for SharePoint? There are 2 parts to this - the SQL Server Power Pivot for SharePoint which is the Analysis Services instance running in Tabular Mode and the PowerPivot Add-in. The last line in your error message seems
    to tell you that you have a missing component in the farm, possibly the PowerPivot Add-in
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • 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?

  • HELP-DIALOG POP UP BOX-JAVA Cannot create XMLHTTP instance.

    After going to a Web site with Opera Browser, I get the following dialog box JAVA "Cannot create xmlhttp instance".
    Now it pops up when ever I use Opera, but not Internt Exployer. Can you tell a Newbie how to fix it?
    I uninstalled Java 1.4.2 & installed ( jre 1.5.0.05 ) and I still get the
    same Dialog Box. The Box stops me from using Opera Browser,
    because it reappears all the time. I NEED HELP. My OS is XP Home.
    PM me at( trader_zzzz, yahoo.com ). Thanks in advance, traderzzzz.

    Java is not involved in the error - Javascript is. Javascript is not Java, and except for the similar name, they have nothing in common. The problem is the way that Opera is interacting with Javascript and the webpage you visited. You probably want to look for the solution at Opera's website. This search listing may help:
    http://www.google.com/search?q=Cannot+create+xmlhttp+instance

  • Cannot create resource instance

    Hi to get a pool connection I use a universal pool connection(ucp.jar). I did this:
    In the server.xml of tomcat i put these:
    <Resource
         name="onconsultas"
         auth="Container"
         description ="Pool for onconsultas"
         type="oracle.jdbc.pool.OracleConnectionPoolDataSource"               
      />In the context.xml of tomcat i put these:
    <Context path="/onconsultas" docBase="onconsultas" debug="0" reloadable="true">
         <ResourceParams name = "onconsultas">
              <parameter>
                   <name>driverClassName</name>
                   <value>oracle.jdbc.driver.OracleDriver</value>
              </parameter>
              <parameter>
                   <name>factory</name>
                   <value>oracle.jdbc.pool.OracleDataSourceFactory</value>
              </parameter>
              <parameter>
                   <name>logAbandoned</name>
                   <value>true</value>
              </parameter>
              <parameter>
                   <name>removeAbandoned</name>
                   <value>true</value>
              </parameter>
              <parameter>
                   <name>removeAbandonedTimeout</name>
                   <value>60</value>
              </parameter>
              <parameter>
                   <name>url</name>
                   <value>jdbc:oracle:thin:@198.198.111.170:1521:asesoras</value>
              </parameter>
              <parameter>
                   <name>user</name>
                   <value>sisope</value>
              </parameter>
              <parameter>
                   <name>password</name>
                   <value>sisope</value>
              </parameter>
         </ResourceParams>  
    </Context>In the web.xml of tomcat( i also tried in the web.xml of mi aplication):
    resource-ref>
            <description>Description pool</description>
            <res-ref-name>onconsultas</res-ref-name>
            <res-type>oracle.jdbc.pool.OracleConnectionPoolDataSource</res-type>
            <res-auth>Container</res-auth>
    </resource-ref>Finally in mi class I code:
    Context ctx = null;
    Context initCtx = new InitialContext();
      ctx = (Context) initCtx.lookup("java:comp/env");
      OracleConnectionPoolDataSource dataSource = ( OracleConnectionPoolDataSource) ctx.lookup("/onconsultas");in the line of the dataSource is the error and said:
    javax.naming.NamingException: Cannot create resource instance
    What is wrong? i don't get it

    I forgot: I 'm using tomcat 6.0.18 that came with the netbeans 6.9 and I `m not using servlets. Almost all the code is in the jsp.

  • Tomcat - MySQL - Cannot create resource instance

    I keep getting an error when trying to lookup my JNDI name. I know that this name is bound to a Context because I can list the bindings
    Context initCtx = new InitialContext();
    NamingEnumeration enum = initCtx.listBindings("java:comp/env/jdbc");
    while (enum.hasMoreElements()) {
    System.out.println(enum.nextElement().toString());
    And sure enough the name of my database I added through the console appears. However, I keep getting this error:
    javax.naming.NamingException: Cannot create resource instance
    on this second line of code
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/ArgonautDB");
    My MySQL Connector jar file is in $CATALINA_HOME/common/lib and I believe my server.xml settings are correct because I added this Data Source to the context through the console and the web.xml file should be simple...nevertheless I still get this error.
    Any suggestions on where I else I can turn. Pulling my precious few last hairs out here....

    Thank you very much. That did the trick. Actually what did the trick was to reinstall tomcat with the standard installation, NOT the LE installation which doesn't include the dbcp jar files needed for connecting to a database - but you were right about missing those.
    I was dissapointed in Tomcat's documentation of this issue. I would have thought that something that has to have caused other developers problems like this would have been documented somewhere more pronounced (if at all) on Tomcat's site.
    For those other newbies out there who don't want to pull out your hair...here is a summary of the steps I took to remedy this problem.
    1) Install the latest version of Tomcat. Do NOT install the LE version, it does not include the neccessary library files to connect to a database (commons-dbcp.jar and commons-pool.jar).
    2) Download the latest mysql connector library from http://www.mysql.com/downloads/mysqlcc.html. Once you have extracted the tar file, there will be some directories, a README file, a couple other text files and a jar file named mysql-connector-java-VERSION-stable-bin.jar. Move the mysql-connector-java-VERSION-stable-bin.jar file to $CATALINA_HOME/common/lib.
    3) Follow the instructions on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    to create a test database, a test jsp file and a test class to access the database.

  • Javax.naming.NamingException: Cannot create resource instance (JOTM )

    Hi all,
    I wanted to create an application with transaction management, first i tired out tyrex but could get a thing out of it now i am trying out JOTM, but i am getting this error "javax.naming.NamingException: Cannot create resource instance ", below is my configuration..
    ===context.xml===
    <Context path="/FYPMS" docBase="FYPMS" debug="1" reloadable="true" crossContext="true" antiResourceLocking="true">
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_crs_log." suffix=".txt"
              timestamp="true"/>
         <Resource name="jdbc/mysql" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="root" password="password" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://127.0.0.1:3306/fypms?autoReconnect=true"/>
    <Resource name="UserTransaction" auth="Container"
    type="javax.transaction.UserTransaction"/>
    <ResourceParams name="UserTransaction">
    <parameter>
    <name>factory</name>
    <value>org.objectweb.jotm.UserTransactionFactory</value>
    </parameter>
    <parameter>
    <name>jotm.timeout</name>
    <value>60</value>
    </parameter>
    </ResourceParams>
    </Context>
    ===web.xml===
    <resource-ref>
    <res-ref-name>jdbc/mysql</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ===insert.java===
    try{
    System.out.println("pass0");
    Context ctx = new InitialContext();
    Context envCtx = (Context)ctx.lookup("java:comp/env");
    DataSource datasource = (javax.sql.DataSource)envCtx.lookup("jdbc/mysql");               
    UserTransaction ut = (UserTransaction)envCtx.lookup("UserTransaction");
    ut.begin();
    the dataSource can be retrieve successfully but when i tired to retrieve the UserTransaction i get a "Cannot create resource instance ". Please help mi out with this.. thx
    fatmond

    we are trying to connect MS Access thru tomcat and it is giving the above exception
    i have changed the server.xml
    <Resource name="jdbc/Mess" auth="Container" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/Mess">
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>4</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>admin</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:odbc:Mess</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>sun.jdbc.odbc.JdbcOdbcDriver</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>admin</value>
    </parameter>
    </ResourceParams>
    web.xml
    <resource-ref>
    <description>Access Datasource example</description>
    <res-ref-name>jdbc/Mess</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    java class
    Context initContext = new InitialContext();
    DataSource ds = (DataSource)initContext.lookup("java:/comp/env/jdbc/Mess");
    con = ds.getConnection();
    Please help.......

  • Installing Clamav: configure: error: C compiler cannot create executables

    I want to install clamav-0.93.3 but i keep getting an error at ./configure
    This server doesn't have access to internet so blastwave isn't an option i think.
    Here is my config.log
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    It was created by clamav configure 0.93.3, which was
    generated by GNU Autoconf 2.61. Invocation command line was
    $ ./configure CC=/usr/bin/gcc
    ## Platform. ##
    hostname = host-fs1
    uname -m = i86pc
    uname -r = 5.10
    uname -s = SunOS
    uname -v = Generic_118855-36
    /usr/bin/uname -p = i386
    /bin/uname -X = System = SunOS
    Node = host-fs1
    Release = 5.10
    KernelID = Generic_118855-36
    Machine = i86pc
    BusType = <unknown>
    Serial = <unknown>
    Users = <unknown>
    OEM# = 0
    Origin# = 1
    NumCPU = 4
    /bin/arch = i86pc
    /usr/bin/arch -k = i86pc
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    PATH: /sbin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /usr/sfw/bin
    PATH: /usr/sfw/sbin
    PATH: /usr/ccs/bin
    PATH: /usr/openwin/bin
    PATH: /usr/dt/bin
    PATH: /opt/sfw/bin
    PATH: /opt/sfw/sbin
    ## Core tests. ##
    configure:2028: checking build system type
    configure:2046: result: i386-pc-solaris2.10
    configure:2068: checking host system type
    configure:2083: result: i386-pc-solaris2.10
    configure:2105: checking target system type
    configure:2120: result: i386-pc-solaris2.10
    configure:2205: result: creating target.h - canonical system defines
    configure:2351: checking for a BSD-compatible install
    configure:2407: result: config/install-sh -c
    configure:2418: checking whether build environment is sane
    configure:2461: result: yes
    configure:2489: checking for a thread-safe mkdir -p
    configure:2528: result: config/install-sh -c -d
    configure:2541: checking for gawk
    configure:2571: result: no
    configure:2541: checking for mawk
    configure:2571: result: no
    configure:2541: checking for nawk
    configure:2557: found /usr/bin/nawk
    configure:2568: result: nawk
    configure:2579: checking whether make sets $(MAKE)
    configure:2604: result: no
    configure:2803: checking for gawk
    configure:2830: result: nawk
    configure:2854: checking for a BSD-compatible install
    configure:2910: result: config/install-sh -c
    configure:2921: checking whether ln -s works
    configure:2925: result: yes
    configure:2932: checking whether make sets $(MAKE)
    configure:2957: result: no
    configure:3048: checking for style of include used by make
    configure:3076: result: none
    configure:3146: checking for gcc
    configure:3173: result: /usr/bin/gcc
    configure:3411: checking for C compiler version
    configure:3418: /usr/bin/gcc --version >&5
    gcc (GCC) 3.4.6
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    configure:3421: $? = 0
    configure:3428: /usr/bin/gcc -v >&5
    Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
    Configured with: ../configure with-as=/usr/ccs/bin/as with-ld=/usr/ccs/bin/ld enable-shared enable-languages=c,c++,f77
    Thread model: posix
    gcc version 3.4.6
    configure:3431: $? = 0
    configure:3438: /usr/bin/gcc -V >&5
    gcc: `-V' option must have argument
    configure:3441: $? = 1
    configure:3464: checking for C compiler default output file name
    configure:3491: /usr/bin/gcc conftest.c >&5
    gcc: installation problem, cannot exec `as': No such file or directory
    configure:3494: $? = 1
    configure:3532: result:
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "clamav"
    | #define PACKAGE_TARNAME "clamav"
    | #define PACKAGE_VERSION "0.93.3"
    | #define PACKAGE_STRING "clamav 0.93.3"
    | #define PACKAGE_BUGREPORT "http://bugs.clamav.net/"
    | #define PACKAGE PACKAGE_NAME
    | #define VERSION "0.93.3"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:3539: error: C compiler cannot create executables
    See `config.log' for more details.
    ## Cache variables. ##
    ac_cv_build=i386-pc-solaris2.10
    ac_cv_env_CC_set=set
    ac_cv_env_CC_value=/usr/bin/gcc
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_host=i386-pc-solaris2.10
    ac_cv_prog_AWK=nawk
    ac_cv_prog_ac_ct_CC=/usr/bin/gcc
    ac_cv_prog_make_make_set=no
    ac_cv_target=i386-pc-solaris2.10
    ## Output variables. ##
    ACLOCAL='${SHELL} /usr/src/clamav-0.93.3src/config/missing --run aclocal-1.10'
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='${SHELL} /usr/src/clamav-0.93.3src/config/missing --run tar'
    AR=''
    AUTOCONF='${SHELL} /usr/src/clamav-0.93.3src/config/missing --run autoconf'
    AUTOHEADER='${SHELL} /usr/src/clamav-0.93.3src/config/missing --run autoheader'
    AUTOMAKE='${SHELL} /usr/src/clamav-0.93.3src/config/missing --run automake-1.10'
    AWK='nawk'
    BUILD_CLAMD_FALSE=''
    BUILD_CLAMD_TRUE=''
    CC='/usr/bin/gcc'
    CCDEPMODE=''
    CFGDIR=''
    CFLAGS=''
    CLAMAVGROUP=''
    CLAMAVUSER=''
    CLAMAV_MILTER_LIBS=''
    CLAMD_LIBS=''
    CPP=''
    CPPFLAGS=''
    CYGPATH_W='echo'
    DBDIR=''
    DEFS=''
    DEPDIR='.deps'
    DSYMUTIL=''
    ECHO='echo'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_UNRAR_FALSE=''
    ENABLE_UNRAR_TRUE=''
    EXEEXT=''
    FRESHCLAM_LIBS=''
    GETENT=''
    GREP=''
    HAVE_LIBGMP=''
    HAVE_MILTER_FALSE=''
    HAVE_MILTER_TRUE=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LDFLAGS=''
    LIBBZ2=''
    LIBBZ2_PREFIX=''
    LIBCLAMAV_LIBS=''
    LIBCLAMAV_VERSION='4:4:0'
    LIBGMP=''
    LIBGMP_PREFIX=''
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LN_S='ln -s'
    LTLIBBZ2=''
    LTLIBGMP=''
    LTLIBOBJS=''
    MAINT=''
    MAINTAINER_MODE_FALSE=''
    MAINTAINER_MODE_TRUE=''
    MAKEINFO='${SHELL} /usr/src/clamav-0.93.3src/config/missing --run makeinfo'
    NMEDIT=''
    OBJEXT=''
    PACKAGE='clamav'
    PACKAGE_BUGREPORT='http://bugs.clamav.net/'
    PACKAGE_NAME='clamav'
    PACKAGE_STRING='clamav 0.93.3'
    PACKAGE_TARNAME='clamav'
    PACKAGE_VERSION='0.93.3'
    PATH_SEPARATOR=':'
    RANLIB=''
    SED=''
    SET_MAKE='MAKE=make'
    SHELL='/bin/bash'
    STRIP=''
    THREAD_LIBS=''
    TH_SAFE=''
    VERSION='0.93.3'
    VERSIONSCRIPTFLAG=''
    VERSIONSCRIPT_FALSE=''
    VERSIONSCRIPT_TRUE=''
    ac_ct_CC='/usr/bin/gcc'
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__include='#'
    am__isrc=''
    am__leading_dot='.'
    am__quote=''
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build='i386-pc-solaris2.10'
    build_alias=''
    build_cpu='i386'
    build_os='solaris2.10'
    build_vendor='pc'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host='i386-pc-solaris2.10'
    host_alias=''
    host_cpu='i386'
    host_os='solaris2.10'
    host_vendor='pc'
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='$(SHELL) /usr/src/clamav-0.93.3src/config/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='$(top_builddir)/config/install-sh -c -d'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='NONE'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sendmailprog=''
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target='i386-pc-solaris2.10'
    target_alias=''
    target_cpu='i386'
    target_os='solaris2.10'
    target_vendor='pc'
    ## confdefs.h. ##
    #define PACKAGE_NAME "clamav"
    #define PACKAGE_TARNAME "clamav"
    #define PACKAGE_VERSION "0.93.3"
    #define PACKAGE_STRING "clamav 0.93.3"
    #define PACKAGE_BUGREPORT "http://bugs.clamav.net/"
    #define PACKAGE PACKAGE_NAME
    #define VERSION "0.93.3"
    configure: exit 77
    Can anyone please help me i am desperate......
    thanxs

    I need to download the dvd image again its about 2 GB.
    I've downloaded the image. scp SUNWPROT to the server.
    this is the install it didn't go well:
    root@host-fs1:/usr/src# pkgadd -d . SUNWsprot
    Processing package instance <SUNWsprot> from </usr/share/src>
    Solaris Bundled tools(i386) 5.10,REV=2004.12.18
    Copyright 2004 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    This appears to be an attempt to install the same architecture and
    version of a package which is already installed. This installation
    will attempt to overwrite this package.
    The installation of this package was previously terminated and
    installation was never successfully completed.
    Do you want to continue with the installation of <SUNWsprot> [y,n,?] y
    Using </> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    16 package pathnames are already properly installed.
    ## Verifying package dependencies.
    ## Verifying disk space requirements.
    ## Checking for conflicts with packages already installed.
    ## Checking for setuid/setgid programs.
    This package contains scripts which will be executed with super-user
    permission during the process of installing this package.
    Do you want to continue with the installation of <SUNWsprot> [y,n,?] y
    Installing Solaris Bundled tools as <SUNWsprot>
    ## Installing part 1 of 1.
    cpio: Can't read input: end of file encountered prior to expected end of archive.
    1 errors
    Unarchiving of /usr/share/src/SUNWsprot/archive/none failed with error 1
    pkgadd: ERROR: class action script did not complete successfully
    Installation of <SUNWsprot> failed.
    Any suggestions?
    Edited by: arragon_jaap on 25-aug-2008 11:37

  • Error creating instances in Business Process Workspace

    i have the following error:
    oracle.bpm.web.exception.WapiOperationException: Error creating instance for target process Serv_M/Proj_V!76.0*/EV.
    Caused by: BPM-70204
    Exception
    exception.70204.type: error
    exception.70204.severity: 2
    exception.70204.name: Error creating process instance.
    exception.70204.description: Error creating instance for target process Serv_M/Proj_V!76.0*/EV.
    exception.70204.fix: Verify server log to find the problem cause.
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl_1036_WLStub.createProcessInstanceTask(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    at $Proxy413.createProcessInstanceTask(Unknown Source)
    at oracle.bpm.papi.ora.util.ApplicationExecution11G.beginExecution(ApplicationExecution11G.java:50)
    ... 101 more
    Caused by: ORABPEL-02023
    Cannot activate block.
    failure to activate the block "EV" for the instance "30037"; exception reported is: .
    This error contained the exceptions thrown by the underlying routing system.
    Contact Oracle Support Services. Provide the error message, the composite source and the exception trace in the log files (with logging level set to debug mode).
    Help me please!
    Regards

    Hi Chris
    If you are trying to create a LOV and use that as a parameter, then you need to create LOV as Dynamic Cascading values. Once created then you can use that LOV in the Crystal Reports.    
    This is the best way to get dynamic cascading prompts in Crystal reports.
    Please refer to Business View Admin guide for more information.
    Hope this helps!!
    Regards
    Sourashree

  • Cannot start instance of another server : correction

    Correction : To the moderator of the newsgroup, please delete my other post with
    the subject 'Cannot start instance of another server'.
    In the console of WLS 6.1 SP3 on HP-UX, I have created another instance of a server
    I called 'another_of_myserver' (in addition to the default myserver). When I
    try to start another_of_myserver, it won't start and gives the following error
    ============================
    <Nov 26, 2002 1:32:04 PM EST> <Error> <NodeManager> <Could not start server 'another_of_myserver'
    via Node Manager - reason: '[SecureCommandInvoker: Could not create a socket to
    the NodeManager running on host 'localhost:5555' to execute command 'another_of_myserver',
    reason: Connection refused. Ensure that the NodeManager on host 'localhost' is
    configured to listen on port '5555' and that it is actively listening]'>
    ===========================
    What does it mean and how do I get it to start ?
    Thanks for any help or suggestion.

    Athooya,
    If you do not specify a weblogic.nodemanager.listenPort or
    weblogic.nodemanager.listenAddress they will be set to the default.
    So the listenAddress will be localhost and so not matching exactly the address
    used by the remote
    start. Please try to set the listen address of the Node Manager when it is
    started. You can specify the address on which the Node Manager will listen for
    requests from the
    Administration Server with the following parameter: -Dweblogic.nodemanager.listenAddress=host
    where host is the DNS name or IP address of the machine where the Node Manager
    is started.
    The default port on which the Node Manager will listen for requests
    from the Administration Server is 5555. You can change this with the following
    startup parameter:
    -Dweblogic.nodemanager.listenPort=port
    Refer to
    http://edocs.bea.com/wls/docs61/adminguide/remotestart.html for additonal information.
    Chuck Nelson
    DRE
    BEA Technical Support

  • "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

Maybe you are looking for

  • IMovie or iPhoto

    A very general question: I need to create a Slideshow of photo's for a friends wedding. What is the best iLife program to use for this (iphoto or imovie)? Basically I envision a couple dozen photos with transitions between each, and music in the back

  • (HR) 연말정산 작업후 소득자료제출집계표의 과세및 비과세 값을 분석할수 있는 SCRIPT

    제품 : HR_PER 작성날짜 : 2006-05-15 (HR) 연말정산 작업후 소득자료제출집계표의 과세및 비과세 값을 분석할수 있는 SCRIPT ================================================== PURPOSE 연말정산 작업후 소득자료제출집계표의 내용을 분석할수 있는 Script Explanation Input값은 "&business_place_id" 입니다. set serveroutput on decla

  • HT5085 i have photo stream window  which i can not closo on main window of my I pad

    i have photo stream window  which i can not closo on main window of my I pad

  • Markers - Can I trigger looped marker sections via MIDI controller?

    This is kind of a multi-part question: I know that I can set up key commands to toggle between various markers, but can I set up a group of MIDI controller buttons so that each one represents the 1st marker, the 2nd marker, the 3rd marker, etc., etc.

  • Outbound EDI Invoice IDOC

    Hi , I have a requirement for Outbound EDI invoice where  I need to validate something at the control record level and if it fails i need to Error out the IDOC say status 51 or any status in RED with my custom status message. I tried raising the exce