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?
Similar Messages
-
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. -
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 itI 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.
-
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
fatmondwe 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....... -
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 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. -
Windows Server 2008
SQL Express 2012
Tried opening a .csv and a .xls file, without success. File is located on the local server and not somewhere else.
I know, I know, the forums are full of this error message. But sometimes when you follow all of the rules, stuff still happens, or in this case Doesn't happen.
I installed the proper ACE drivers (64 bit) and reconfigured SQL Server to allow Ad Hoc Queries. Hell I even rebooted the server after the install.
I have successfully installed these drivers on several machines (work stations and servers), and all have worked just fine. So, I am at a loss as to why it won't work on this system. I might have forgotten some obscure setting, but I don't think so.
TedRegistry fix was also tried?
EXEC sp_MSSet_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1
GO
EXEC sp_MSSet_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1
GO -
Cannot create a proper working JAR file
Hie,
Im facing a problem here to compile the JAR files. I went through the JAR tutorials at the java site but i cant still figure it out. MY problem is actually i need to create a JAR file that consist 3 folders and subfolders.
The main folder is --> classes
sub main1--> emmeeting
submain2-->image
submain3-->jwc
But, in this jwc it contains another two folders and there is another 3 folders inside those subfolders.
jwc ---> contains jwc 1 and jwc 2 as subfolder
jwc1 contains jjwc1. jjwc2 and jjwc 3
those filenames are examples only.
i used the command jar cvf classes.jar classes * class
and
even jar cf classes.jar -C emeeting. -C images . -C jcw
as these command will invoke every file inside it and create a jar but i still fail
When i click the jar that is created it says this error "Fail to load Main-Class Manifest attribute"...i went through the manifest and they say have to set up the main-class : classname .....so, which classname shud i use and plz tell me the best way to solve this .thanksThe main classname should be the path of the class which contains your static "main" method.
/mypackage/MyClassWithMainInIt
Regards,
Tim -
Hi gurus,
the following code:
<b><i>DATA: ref_cl_rsd_odso TYPE REF TO cl_rsd_odso,
ref_if_rsd_dta type ref to if_rsd_dta,
e_s_dta TYPE rsd_s_dta,
wa_e_s_dta TYPE rsd_s_dta.
START-OF-SELECTION.
create object ref_cl_rsd_odso.
CALL METHOD ref_cl_rsd_odso->if_rsd_dta~dta_get_info
IMPORTING
e_s_dta = e_s_dta.</i></b>
return an activation error:
"You cannot create an instance of the class "CL_RSD_ODSO" outside the class"
Could you help me?
Thanks in advance!
Bye!
FerdinandoHi,
Go through the below code,
We need to call the factory method to get the instance of this class.
DATA: ref_cl_rsd_odso TYPE REF TO cl_rsd_odso,
ref_if_rsd_dta type ref to if_rsd_dta ,
e_s_dta TYPE rsd_s_dta,
wa_e_s_dta TYPE rsd_s_dta.
START-OF-SELECTION.
CALL METHOD CL_RSD_ODSO=>FACTORY
EXPORTING
I_ODSOBJECT = SPACE
I_REFNM =
I_TXTLG =
I_TXTSH =
I_INFOAREA =
I_BWAPPL =
RECEIVING
R_R_ODSO = ref_cl_rsd_odso.
EXCEPTIONS
INPUT_INVALID = 1
CANCELLED = 2
others = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD ref_cl_rsd_odso->if_rsd_dta~dta_get_info
IMPORTING
e_s_dta = e_s_dta.
Regards,
Azaz Ali. -
Deserialize works fine. Now I cannot create my class instance
When I deserialize my object a can get the object. Ok.
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(fichero));
aux = ois.readObject();
System.out.println(aux);
And I see :
mypackage.myclass (This class is a Jpanel based and some references to another classes)
Now I have 3 questiosn - problems:
1.- I dont know the class name (or I want that my code works with every kind of object) ,so... Is it neccesary to CAST the object?
2.- In this case.... it can be done by mean of string name ? aux = (the_cast) .... ( when the_cast = "MYclass")
3.- Finally I dont know how to create an instance of my new class
((MY_CAST) aux.getclass()).newinstance(); throws an error of "java.lang.Class cannot be cast ..."
Any help?tonnot wrote:
Now I have 3 questiosn - problems:
1.- I dont know the class name (or I want that my code works with every kind of object) ,so... Is it neccesary to CAST the object? No, it's not necessary usually and when you don't know the type at compile time, then it's not possible either.
2.- In this case.... it can be done by mean of string name ? aux = (the_cast) .... ( when the_cast = "MYclass")No, that's not possible. Since casting doesn't change anything about the object but only about the reference, casting "to a dynamic type" is meaningless, since you couldn't have a reference variable "of a dynamic type" to hold the newly-cast object anyway.
3.- Finally I dont know how to create an instance of my new class
((MY_CAST) aux.getclass()).newinstance(); throws an error of "java.lang.Class cannot be cast ..."The problem is that you're trying to cast the Class object to MY_CAST (which I assume is your class), while it should in fact be a Class<? extends MY_CAST>.
I'm unclear what you want to achieve here and what you know about the object: Why do you want to create a new instance of an object you know nothing about? -
Cannot create DataSource, Exception in Tomcat 4.1
I am running into a major problem with Tomcat4.1 trying to access a Datasource.
I referenced about 7 articles one of which has the subject "Cannot create JDBC driver of class '' for connect URL 'null', cause..."
but he is using Tomcat 5. I even tried to simulate his solution to mine but still no use.
I tried to connect to the database the old fashion way and it worked... I get connected (JDBC connection w/o Datasource).
I changed the XML many times but with no luck. I must be doing something stupid that I can't see.
Any help is greatly appreciated.... I ran out of solutions...
I initially loaded my app through Tomcat manager and created the DataSource through Tomcat admin screen.
my CLASSPATH =
C:\J4Log\logging-log4j-1.2.9\dist\lib\log4j-1.2.9.jar;
C:\JBoss4-0\jboss-4.0.1sp1;C:\CONNX32\CONNXJDBC\JAVA\JAR\connxjdbc.jar;
C:\JBuilderX\lib\mysql-connector-java-3.0.15-ga-bin.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\commons-dbcp-1.2.1.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\commons-pool-1.1.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\commons-collections-3.1.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\mysql-connector-java-3.1.8-bin.jar
my web.xml =
<resource-ref>
<description>DB connection</description>
<res-ref-name>jdbc/MyDBASE</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>-------------------
The sample snipet to connect to the database (which works)
ConnectionHelper contains the following (simplified)...
Class.forName("com.mysql.jdbc.Driver").newInstance();
return DriverManager.getConnection("jdbc:mysql://10.0.3.52/MyDBASE?user=Myadmin&password=AdminPWD");
ConnectionHelper connectionHelper = new ConnectionHelper();
Statement st = null;
try {
Connection conn = connectionHelper.getConnection();
st = conn.createStatement();
System.out.println("\n=========== ssuucceessffullllllll=======\n");
catch (SQLException ex1) {
System.out.println("error connecting=================");
ex1.printStackTrace();
whenever i execute my JSP (which calls my java class .. code follows....
Context envCtx = (Context) init.lookup("java:comp/env");
DataSource ds = (DataSource)envCtx.lookup("jdbc/MyDBASE");it breaks on the DataSource giving..
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '
' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:743)
at org.apache.commons.dbcp.BasicD.........--
Another error (which is from within the IDE) is
java.lang.NoClassDefFoundError: tyrex/jdbc/xa/EnabledDataSource at rg.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexDataSourceFactory.java:166)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:164)
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:194)
at simpleservlet.TestJSPBean.init(TestJSPBean.java:41)
at org.apache.jsp.testJSP$jsp._jspService(testJSP$jsp.java:115)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)--------------------------
and finally, Server.XML...
<?xml version='1.0' encoding='utf-8'?>
<Server className="org.apache.catalina.core.StandardServer" debug="0" port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0" jsr77Names="false"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/>
<GlobalNamingResources>
<Environment name="simpleValue" override="true" type="java.lang.Integer" value="30"/>
<Resource name="jdbc/MyDBASE" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/MyDBASE">
<parameter>
<name>validationQuery</name>
<value>select now()</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://10.0.3.52/MyDBASE?autoReconnect=true</value>
</parameter>
<parameter>
<name>password</name>
<value>AdminPWD</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>Myadmin</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<Service className="org.apache.catalina.core.StandardService" debug="0" name="Tomcat-Standalone">
<Engine className="org.apache.catalina.core.StandardEngine"
debug="0" defaultHost="localhost"
mapperClass="org.apache.catalina.core.StandardEngineMapper"
name="Standalone">
<Host className="org........
<Context className="org.apache.catalina.core.StandardContext" cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true" crossContext="false" debug="0"
displayName="simpleservlet"
docBase="/WebModule1" mapperClass="org.apache.catalina.core.StandardContextMapper"
path="/WebModule1" privileged="false" reloadable="false" swallowOutput="false"
useNaming="true"
workDir="work\Standalone\localhost\WebModule1"
wrapperClass="org.apache.catalina.core.StandardWrapper">
<Resource auth="Container"
description="DB connection"
name="jdbc/MyDBASE" scope="Shareable"
type="javax.sql.DataSource"/>
</Context>
</Engine>
</Service>
</Server>Thanks in advance for ANY help.I am running into a major problem with Tomcat4.1 trying to access a Datasource.
I referenced about 7 articles one of which has the subject "Cannot create JDBC driver of class '' for connect URL 'null', cause..."
but he is using Tomcat 5. I even tried to simulate his solution to mine but still no use.
I tried to connect to the database the old fashion way and it worked... I get connected (JDBC connection w/o Datasource).
I changed the XML many times but with no luck. I must be doing something stupid that I can't see.
Any help is greatly appreciated.... I ran out of solutions...
I initially loaded my app through Tomcat manager and created the DataSource through Tomcat admin screen.
my CLASSPATH =
C:\J4Log\logging-log4j-1.2.9\dist\lib\log4j-1.2.9.jar;
C:\JBoss4-0\jboss-4.0.1sp1;C:\CONNX32\CONNXJDBC\JAVA\JAR\connxjdbc.jar;
C:\JBuilderX\lib\mysql-connector-java-3.0.15-ga-bin.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\commons-dbcp-1.2.1.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\commons-pool-1.1.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\commons-collections-3.1.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\mysql-connector-java-3.1.8-bin.jar
my web.xml =
<resource-ref>
<description>DB connection</description>
<res-ref-name>jdbc/MyDBASE</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>-------------------
The sample snipet to connect to the database (which works)
ConnectionHelper contains the following (simplified)...
Class.forName("com.mysql.jdbc.Driver").newInstance();
return DriverManager.getConnection("jdbc:mysql://10.0.3.52/MyDBASE?user=Myadmin&password=AdminPWD");
ConnectionHelper connectionHelper = new ConnectionHelper();
Statement st = null;
try {
Connection conn = connectionHelper.getConnection();
st = conn.createStatement();
System.out.println("\n=========== ssuucceessffullllllll=======\n");
catch (SQLException ex1) {
System.out.println("error connecting=================");
ex1.printStackTrace();
whenever i execute my JSP (which calls my java class .. code follows....
Context envCtx = (Context) init.lookup("java:comp/env");
DataSource ds = (DataSource)envCtx.lookup("jdbc/MyDBASE");it breaks on the DataSource giving..
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '
' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:743)
at org.apache.commons.dbcp.BasicD.........--
Another error (which is from within the IDE) is
java.lang.NoClassDefFoundError: tyrex/jdbc/xa/EnabledDataSource at rg.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexDataSourceFactory.java:166)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:164)
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:194)
at simpleservlet.TestJSPBean.init(TestJSPBean.java:41)
at org.apache.jsp.testJSP$jsp._jspService(testJSP$jsp.java:115)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)--------------------------
and finally, Server.XML...
<?xml version='1.0' encoding='utf-8'?>
<Server className="org.apache.catalina.core.StandardServer" debug="0" port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0" jsr77Names="false"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/>
<GlobalNamingResources>
<Environment name="simpleValue" override="true" type="java.lang.Integer" value="30"/>
<Resource name="jdbc/MyDBASE" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/MyDBASE">
<parameter>
<name>validationQuery</name>
<value>select now()</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://10.0.3.52/MyDBASE?autoReconnect=true</value>
</parameter>
<parameter>
<name>password</name>
<value>AdminPWD</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>Myadmin</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<Service className="org.apache.catalina.core.StandardService" debug="0" name="Tomcat-Standalone">
<Engine className="org.apache.catalina.core.StandardEngine"
debug="0" defaultHost="localhost"
mapperClass="org.apache.catalina.core.StandardEngineMapper"
name="Standalone">
<Host className="org........
<Context className="org.apache.catalina.core.StandardContext" cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true" crossContext="false" debug="0"
displayName="simpleservlet"
docBase="/WebModule1" mapperClass="org.apache.catalina.core.StandardContextMapper"
path="/WebModule1" privileged="false" reloadable="false" swallowOutput="false"
useNaming="true"
workDir="work\Standalone\localhost\WebModule1"
wrapperClass="org.apache.catalina.core.StandardWrapper">
<Resource auth="Container"
description="DB connection"
name="jdbc/MyDBASE" scope="Shareable"
type="javax.sql.DataSource"/>
</Context>
</Engine>
</Service>
</Server>Thanks in advance for ANY help. -
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? -
Creating a new work item instance in a process using PAPI
I'm seeing that there are a lot of questions on this forum about using Oracle BPM 10g's Java API called PAPI.
I just uploaded a step by step document on how you could do this using JDeveloper 11. Here's the link to this document: http://www.4shared.com/file/126507332/e814a3a8/CallingPapi.html. The Oracle BPM project I used for this step-by-step document is also in this zip file. If you're curious, this also describes how to download, install and start JDeveloper 11.
This is not formal Oracle documentation, but I know from teaching our Oracle BPM Bootcamp class that getting PAPI to work is sometimes a challenge and thought this might help. I tried to write it with the "Java Newbie" in mind so do not panic if you aren't an expert in Java (I'm sure not ?:| ).
This is a simple example that uses most of the logic found in the PAPI documentation on http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html?t=modules/papi/c_Head_PAPI.html in the "Writing Your First Java PAPI Program" section of this document.
The document provides a step-by-step description on how how to use PAPI to:
<li> interface to processes running on an Oracle BPM Enterprise Engine using the same logic that is in the Oracle BPM PAPI documentation
<li> interface to processes running on an Oracle BPM Studio Engine
<li> list processes currently running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
<li> list the work item instances running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
<li> create a new work item instance in a process and pass in input argument variables to the new instance as it is created.
Hope you find this useful,
DanHi
i have gone through your example. It gives good information how to connect to BPM engine through java papi client. I have followed exactly the same steps given in the PDF document. But it throws the exception on both java client side and BPM Suite.
Steps followed :
1. Import sampleproject.exp into Oracle BPM studio and start the BPM engine.
2. Imported the fuegopapi-client.jar and Write the JAVA PIPA client to connect Oracle BPM Engine.
complete example code:_
import fuego.papi.CommunicationException;
import fuego.papi.InstanceInfo;
import fuego.papi.ProcessService;
import fuego.papi.ProcessServiceSession;
import fuego.papi.OperationException;
import java.util.Properties;
public class ProcessAPIClient {
public static void main(String[] args) {
/////////////////// API Initialization ///////////////////
Properties configuration = new Properties();
configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
configuration.setProperty(ProcessService.PROJECT_PATH, "C:\\Oracle\\OracleBPMWorkspace\\SampleProject" );
configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
try {
ProcessService processService = ProcessService.create(configuration);
/////////////////// Establish a session ///////////////////
ProcessServiceSession session = processService.createSession("test", "test", null);
/////////////////// Operate with PAPI ///////////////////
for (String processId : session.processesGetIds()) {
System.out.println("\n Process: " + processId);
for (InstanceInfo instance : session.processGetInstances(processId)) {
System.out.println(" -> " + instance.getId());
/////////////////// Close the session ///////////////////
session.close();
/////////////////// Release API Resources ///////////////////
processService.close();
} catch (CommunicationException e) {
System.out.println("Could not connect to Directory Service");
e.printStackTrace();
} catch (OperationException e) {
System.out.println("Could not perform the requested operation");
e.printStackTrace();
It throws the following exception and output on java client._
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Creating ProcessService with id 'SampleProject'.
Local folder /tmp\system\Schema33871921573571055\catalogs found.
Loading catalogs from local folder: /tmp\system\Schema33871921573571055\catalogs
0 jars found locally.
[CatalogMgrCache] =======================
Registering CatalogMgr [SampleProject] ...CatalogManagerCache 23240993:
Managers:
Counters:
[CatalogMgrCache] =======================
CatalogMgr [SampleProject] REGISTERED!CatalogManagerCache 23240993:
Managers:
{SampleProject=fuego.util.LocalCatalogManager@40b187}
Counters:
ProcessService 'SampleProject' created successfully.
Process: /SampleProcess#Default-1.0
Unreachable Engine Tolerance (seconds):
by default: 0
to be used: 0
This papi client will not cache exceptions which imply that an engine could not be reached.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/MessageEOFException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at $Proxy24.<clinit>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at fuego.papi.impl.AbstractProcessControlHandler.newProxyInstance(AbstractProcessControlHandler.java:52)
at fuego.papi.impl.rmi.RMIProcessControlHandler.createProxy(RMIProcessControlHandler.java:47)
at fuego.papi.impl.rmi.RMIEngineAccessImpl.createProcessControl(RMIEngineAccessImpl.java:111)
at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1082)
at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2698)
at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1675)
at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2703)
at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2365)
at com.eds.comet.bpm.oracle.papi.client.ProcessAPIClient.main(ProcessAPIClient.java:30)
Caused by: java.lang.ClassNotFoundException: javax.jms.MessageEOFException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 16 more
It throws the following exception and output on Oracle BPM Suite._
Client 'Id=test, Name=test, In=1, Session=564242434' was not found in lists ', PARTICIPANTS' while disconnecting it.
Please help me to resolve this. I noticed it is able to connect BPM engine and retrieve process list. But while getting instances, it throws the exceptions on both Java Client and BPM engine side.
Thanks and Regards
Mahesh -
Cannot create a session after the response has been committed (Tomcat 6)
I'm getting a rather annoying error when I try to open a pretty basic JSP page.
I'm rather new to the whole JSP scene, so I'm following the example found on pages 287 and onwards in "JSF in Action - Manning" in case anyone wanted to check my code against the source.
I've searched for about 4 hours now, coming back to this site a couple of times, once reading about writeouts and stuff. But I'm not really sure this is the issue in this case and if it is, where exactly the problem lies.
I've already fixed a number of errors I got (jtsl.jar and standard.jar missing etc...) but this particular problem is driving me (and my co-workers for that matter :-) ) up the wall.
Anyone willing to help me out here?
Error:
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Cannot create a session after the response has been committed
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
root cause
java.lang.IllegalStateException: Cannot create a session after the response has been committed
org.apache.catalina.connector.Request.doGetSession(Request.java:2301)
org.apache.catalina.connector.Request.getSession(Request.java:2075)
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
org.apache.myfaces.context.servlet.SessionMap.setAttribute(SessionMap.java:53)
org.apache.myfaces.util.AbstractAttributeMap.put(AbstractAttributeMap.java:103)
org.apache.myfaces.util.AbstractAttributeMap.put(AbstractAttributeMap.java:35)
org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:523)
org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:358)
javax.faces.application.StateManager.saveView(StateManager.java:47)
org.apache.myfaces.application.jsp.JspViewHandlerImpl$StateMarkerAwareWriter.flushToWriter(JspViewHandlerImpl.java:387)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:322)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
Source Code of login.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
<html>
<head>
<title>
<h:outputText value="ProjectTrack"/>
</title>
</head>
<body>
<table>
<tr>
<td>
<h:graphicImage url="/images/logo Skillteam.jpg"
alt="Welcome to ProjectTrack"
title="Welcome to ProjectTrack"
width="435" height="120"/>
</td>
<td>
<font face="Arial, sans-serif"
size="6">
<h:outputText value="ProjectTrack"/>
</font>
</td>
</tr>
http://forum.java.sun.com/post!default.jspa?forumID=45#
Click for bold </table>
</body>
</html>
</f:view>
web.xml & faces-config
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>ProjectTrack</display-name>
<welcome-file-list>
<welcome-file>faces/login.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
</web-app>
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<navigation-rule>
<from-view-id>/login.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/inbox.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/login.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>Setup:
Eclipse Europe 3.3.0
Tomcat 6.0.13
MyFaces 1.2
JRE 1.6.0_02When searching for this error, this was the first page google gave me. I found the answer and just in case anyone else stumbles in here with the same question I thought I'd share my findings.
Unfortunately, if your problem is the same as mine, you're going to feel pretty silly. I was navigating to the wrong page. If MyFaces(when running tomcat) tries to resolve to a page that doesn't exist, the error given above is what happens.
In my case I accidentally put my .jsp page into the wrong directory and ended up banging my head against the wall for an hour figuring that out. Hope this helps someone. -
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
VenkatHey 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...
Maybe you are looking for
-
My iPad keeps kicking me off my webpage unexpectedly
My iPad repeatedly knocks me off my webpage and goes back to the home page. Everything is up to date.
-
What Cable To i need to connect to Projector?
I have a macbook and was wondering what cable i need in order to be able to hook my macbook up to my projector/computers at my college. at my college, in every class there is a podium with a computer and a few cable. these 2 cables are there, which i
-
Workflow : Mail Step Problem
Hi, I am getting a peculiar problem with Mail step. I am getting the following ERROR : <i><b>Work Item XXX Object YYY method SWW_BI_EXECUTE_S cannot be executed</b></i> What could be the problem? All the containers are properly BINDED are getting pas
-
Issues in Change Request Management?????
HI all, As a process of CHARM Setup, i have been struck at one step.before i ask questionsdat let me explain the landscape 1.I have one ECC5( C11) ,created a logical comp with system role=development in smsy 2.One more ECC5(Q11) , created
-
Since I bought my new MacBook Pro with OS Lion, every time I open my iPhoto software it crashes. Sometimes I opt to rebuild the library, sometimes I do not. Etiher way it sitll crashes regardless of what I try to do (simply moving up and down through