I cannot create a EntityManagerFactory with tomcat
Hello everyone.
I hope you could help me with some problem I'm having using persistence (with hibernate annotations) in my web applicacion.
I have a method that receives some pojos to persist. The problem is that I cannot find a way to generate de entitymanagerFactory. whenever I try to do it, the method just finishes without giving any exception. This confuses me.
My persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
<persistence-unit name="FlatFilePU" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<non-jta-data-source>java:comp/env/l2bdomi</non-jta-data-source>
<properties>
<property name = "hibernate.connection.driver_class" value = "oracle.jdbc.driver.OracleDriver"/>
<property name = "hibernate.connection.url" value = "jdbc:oracle:thin:@xx.xx.xx.xx:1521:xxxx"/>
<property name = "hibernate.connection.username" value = "xxxx"/>
<property name = "hibernate.connection.password" value = "xxxx"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect"/>
</properties>
</persistence-unit>
</persistence>and the method that is failing:
public void guardaLote(LoteDomiciliacion lote){
try{
System.out.println("1");
//The following line is the last one that gets executed.
EntityManagerFactory emf = Persistence.createEntityManagerFactory("FlatFilePU");
EntityManager ent= emf.createEntityManager();
System.out.println("2");
ent.getTransaction().begin();
System.out.println("3");
loteDao.save(lote);
System.out.println("4");
ArrayList<LineaDomiciliacion> lineas=(ArrayList<LineaDomiciliacion>) lote.getLineas();
Iterator<LineaDomiciliacion> i = lineas.iterator();
while(i.hasNext()){
registroDao.save(i.next());
System.out.println("5");
ent.getTransaction().commit();
ent.close();
}catch(Exception e){
System.out.println("erro2");
e.printStackTrace();
}extract from tomcat's server.xml:
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- 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="masterPool" auth="Container" type="java.util.ArrayList" factory="uk.org.primrose.pool.datasource.MasterPoolDataSourceFactory" configFile="C:/Tomcat 5.5/conf/poolConfig.properties" description="Holds all the pools" />
<Resource name="l2bdomi" auth="Container" type="uk.org.primrose.pool.datasource.PoolDataSource" description="The l2bdomi database pool" factory="uk.org.primrose.pool.datasource.PoolDataSourceFactory" poolName="l2bdomi" />
</GlobalNamingResources>after EntityManagerFactory emf = Persistence.createEntityManagerFactory("FlatFilePU"); this method an the method that called it (in a servlet) finishes. The only thing that gets executed after that is a finally. I tried to catch Exception but I didnt get any.
My guess is that the problem comes from the datasource configuration but Im not sure since I am new working with datasources.
thank you for any help you can provide me.
Edited by: santiagozky on Apr 13, 2009 2:48 PM
Ok, I got some errors using a Junit test. I don´t know if these are valid since Im not under tomcat when using Junit.
Anyway, here they are:
java.lang.ExceptionInInitializerError
at com.mit.persistencia.GuardaLote.guardaLote(GuardaLote.java:40)
at com.mit.persistencia.GuardaLoteTest.testSave(GuardaLoteTest.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not find datasource
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
at com.mit.persistencia.EntityManagerHelper.<clinit>(EntityManagerHelper.java:20)
... 22 more
Caused by: org.hibernate.HibernateException: Could not find datasource
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
... 26 more
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
... 33 more
Similar Messages
-
ORA-02348: cannot create VARRAY column with embedded LOB
Hi
This error message I get when I try to create a table from my schema file which has a (sub-) element of type CLOB.
In my XML document I have an element which needs to become declared a CLOB (because it's > 4000 bytes), in my Schema I define it's element node like:
<xs:element name="MocovuState" xdb:SQLType="CLOB">
I can register this Schema file but when I create the table, I get the error:
ORA-02348: cannot create VARRAY column with embedded LOB
Does anybody know how to handle this ?
MarcelYou need to use the xdb:storeVarrayAsTable="true" schema annotation so that unbounded elements are created at schema registration time as nested tables. Varrays can not contain CLOBs/BLOBS. Use the schema annotation xdb:SQLType="CLOB" to tell Oracle XMLDB to use CLOB storage for the element. See your schema below:
P.S. XMLSPY is invaluable as it supports Oracle XML Schema annotations.
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" targetNamespace="http://www.yourregisteredschemanamespace.com" elementFormDefault="qualified" attributeFormDefault="unqualified" xdb:storeVarrayAsTable="true">
<xs:element name="nRootNode">
<xs:complexType>
<xs:all>
<xs:element name="nID" type="xs:long"/>
<xs:element name="nStringGroup" type="nStringGroup" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:complexType name="nStringGroup">
<xs:sequence>
<xs:element name="nString" type="nString" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="nString" xdb:SQLType="CLOB">
<xs:sequence>
<xs:element name="nValue" type="nValue" minOccurs="0" xdb:SQLType="CLOB"/>
</xs:sequence>
<xs:attribute name="id" type="xs:long" use="required"/>
</xs:complexType>
<xs:simpleType name="nValue">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:schema> -
You cannot create a customer with grouping ZLES
hi friends,
I am encountered with the below message during BP creation "You cannot create a customer with grouping ZLES"
ZLES being the account group..
I ve come across the following..
I made config for BP to Customer ( auto creation)
and also BP to Vendor ( auto creation)
at a time only one of the thing is working either BP to customer or BP to vendor..
when i check the config under Number Range>Define Groupings and Assign Number ranges> in this there is a radio button Int.Std.Grping if this is marked for the grouping of Mast tenant with Cust acc then there is no error for this but error persists while creating BP to Vendor.. and if the radio button is ticked for Landlord with vendor Account then the issue comes for BP to Customer i.e the error "You cannot create a customer with grouping ZLES"
how can i tick both of them together ( if there is possiblity)
kindly helpsorry for late reply.
if ur issue isn;t solved?----
in Define Groupings and Assign Number Ranges dont select the raido button for your grouping . and next thing is while creating business partner. follow these steps...
1 bp
2 click on person, group or org as desired
3 select the role and click create. AND
4 at right hand side corner there is Grouping select the Grouping ( i was missing this step due to which i used to get the error)
hope this will solve ... also check the account groups of both BP and Customer or else there will be synchronisation error..
regards -
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. -
Cannot create Proxy service with JCA transport
Hello everyone.
I have some issues while trying to create ftp service with jca transport. I follow the instruction in this tutorial:
http://blogs.oracle.com/MarkSmith/entry/osb_and_ftp_adapter_in_11g
I stuck in Step 4, cannot create proxy service to use JCA file that I created by JDeveloper 11g (11.1.1.5). When I specify jca file for proxy service, a error message returned:
<ALSB Console> <BEA-494002> <Internal error occured in OSBConsole : Transport exception occurred with the following message:
Invalid JCA file for JCA proxy service. If you are creating a Proxy from a Business Service, please select a different transport type (for example, http). If not, JCA file must contain JCA activation spec properties.And these are my jca file content that created by JDeveloper:
<adapter-config name="myJCA_FTP_service" adapter="FTP Adapter" wsdlLocation="myJCA_FTP_service.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/ftp/MyFtpAdapter"/>
<endpoint-interaction portType="Put_ptt" operation="Put">
<interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPInteractionSpec">
<property name="PhysicalDirectory" value="/home/FTP-shared/upload"/>
<property name="FileType" value="ascii"/>
<property name="Append" value="false"/>
<property name="FileNamingConvention" value="osb_%SEQ%"/>
<property name="NumberMessages" value="1"/>
</interaction-spec>
</endpoint-interaction>
</adapter-config>Is there anyone who had tried to use JCA transport with Ftp adapter already? Please give me a suggestion.
Any response is appreciated
Regards, Cuong PhamTo get to the basics.
You use GET to read files from an FTP location - This can be done by an OSB proxy service only.
You use PUT to write files to an FTP location - This can be done by an OSB business service only.
So forget that you need a proxy service for PUT. -
Cannot Create Data Repository with VM Server (3.1.1) Cluster
Dear All,
I have 3 Servers (one for VM Manager, two for VM Servers) and 1 Storage (Sun Storage 6180 (Fiber Chanel) and map volume as Default Storage Domain ).
I try to create my 2 VM Servers as Cluster on VM Manager but it has problem as below:
Case1. I can create a Server Pool with cluster by select Clustered Server Pool by select physical disk, add 2 servers then create data repository but it got problem: in page Create a Data Repository: Select Physical Disk is shown blank not see a physical disk.
Case 2. when I create server pool by uncheck Clustered Server Pool box (None Cluster) and add 2 vm servers then create data repository, the physical disk is shown but got error message:
"OVMRU_002030E Cannot create OCFS2 file system with local file server: Local FS vmserver1. Its server is not in a cluster
Wed Dec 26 01:27:12 ICT 2012"
Please kindly give advice for this.
Thanks and regards,
Vandy1. So you're trying to create a server pool and a storage repository on a single LUN that is direct attached? Don't your software on the 6180 allow you present multiple LUNS from disk group? Think about it. You create a clustered server pool on a single LUN and then try to use that same LUN for repository.....
2. How are both hosts attached? Are there multiple HBA cards in your 6180? Is so, how many? If you have redundant cards you should be using multipathing for redundancy. -
Cannot create client error with sample SAP JCO code
Hi,
I am encountering the following error when trying to connect to a R/3 system using the WAS 6.40 on my laptop. I have cut and pasted the Example1 code from the SAPJCO into my NetWeaver developer studio IDE.
java.lang.UnsatisfiedLinkError: no CpicNative in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.sap.mw.rfc.api.RfcApi.initializeDLL(RfcApi.java:1285)
at com.sap.mw.rfc.api.RfcApi.<clinit>(RfcApi.java:1299)
at com.sap.mw.jco.MiddlewareJRfc.<clinit>(MiddlewareJRfc.java:228)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sap.mw.jco.JCO.<clinit>(JCO.java:630)
at com.sap.mw.jco.support.JRfcTest.correctProperties(JRfcTest.java:1043)
at com.sap.mw.jco.support.JRfcTest.initCall(JRfcTest.java:1072)
at com.sap.mw.jco.support.JRfcTest.runConnectionTest(JRfcTest.java:735)
at com.sap.mw.jco.support.JRfcTest.main(JRfcTest.java:202)
Cannot create client, error message:
java.lang.NoClassDefFoundError occured:
Message:null
I have a system user defined in R/3 but still this isn't working. I am new to Java so any light you could shed would be greatly appreciated.
Cheers and TIA,
RichThe unsatisfied link error should be because sapjco.jar cannot link to the sapjco.dll.
I tried to simulate the problem by
1) Opening a java perspective.
2) Create a new 'java' project.
3) Add libraries sapjco.jar from the path <Drive>:\Program Files\SAP\JDT\eclipse\plugins\com.sap.mw.jco\lib
You will see sapjcorfc.dll in this path
4)Add a new class file ,Wrote a sample jco code and executed and it worked..
The key is to have the sapjcorfc.dll in the same directory as sapjco.jar
I hope this helps -
Cannot create a DataSource with MySql...
Hi all,
I'm trying to create a DataSource with WLS 9.1.
The DataBase I'm using is MySql 4.1.
I have copied the mysql-connector.jar in the "lib" folder of my domain, but when I try to target the DataSource to the Server I get an error that Mysql Driver class is not found.
Should I insert the driver somewhere else ? or should I add manually the file to the server classpath ?
Thanks
FrancescoFrancesco Marchioni wrote:
Hi all,
I'm trying to create a DataSource with WLS 9.1.
The DataBase I'm using is MySql 4.1.
I have copied the mysql-connector.jar in the "lib" folder of my domain, but when I try to target the DataSource to the Server I get an error that Mysql Driver class is not found.
Should I insert the driver somewhere else ? or should I add manually the file to the server classpath ?
Thanks
Francescoedit the script that starts WebLogic. You will see a CLASSPATH definition
is constructed and applied to the WebLogic call. Add your jar to that
CLASSPATH.
Joe -
Cannot create a group with no members through DAS
I'm using OID 10.1.2.0.2.
It seems that the DAS Self Service Console cannot work with groups with no members:
- When creating a group, it always assigns orcladmin as a member.
- When deleting the last member from a group, an error is shown ("Require at least one user or group member").
- If you create an empty group via other means (e.g. the oidadmin tool), the group will not be visible in the "role assignment" section when creating a new user (even though we enabled that group for role assignment in the "user entry" configuration). After adding one member through the "edit group" page, the role shows up in the role assignment section.
I have a couple of questions regarding this:
1) Is this limitation (group must have at least one member) an ldap or OID limitation, or is it only a DAS or even "self service console" limitation?
2) Why is this limitation there?
3) Is there a way to work around this, i.e. make self service console be able to handle empty groups?
Any help would be greatly appreciated.
Regards,
JohanI do not agree that a group owner should be a member of that group. For example, I have a group "admins" and a group "analysts". The "admins" group is owner of the "analysts" group, since the users in the "admins" group must be able to create users and assign them to the "analysts" group. However, the "admins" group is not member of the "analysts" group, because I do not want the admins to act as analysts in my application. Ownership of a group (being able to manage it) and membership of a group are two different things. Besides, I also do not understand why the OIDDAS makes the orcladmin user a member of every group that you create there.
Of course, eventually I will have members in my group. But why is it a problem that there are initially no members of a group? I see no reason at all why this would be a problem.
The reason why I ask this is that creating an empty group (initially) is a requirement of my setup process. I am trying to release a clean setup script (with an ldif file) out of development, that our operational department can use to set things up. I want my ldif file to prepare all the necessary groups and owners, but not to create members in those groups (that's the task of the operational people).
However, as soon as I have these empty groups in place, the OIDDAS starts to act strangely (namely, the groups are not visible in the "role assignment" section when creating a user, until there is at least one member in the groups). That's when I found out that the OIDDAS actually does not like having empty groups (error when creating group without members, error when removing last member, ...).
If anyone knows, can you give me one good reason why the OIDDAS does not allow empty groups (or making groups empty)? As far as I can see, the OID/LDAP itself does not have a problem with this (you can create an empty group without any problem via the oidadmin application, or via import of an ldif file).
Thanks,
Johan -
Cannot create connection pool with weblogic jDriver XA for oracle
Hi everybody,
we have serious problems configuring the weblogic jDriver for Oracle with support
for distributed transactions.
Everything works fine with the non-XA driver.
We tried the suggestions given here before like setting the environment variable
ORACLE_SID. However, this does not change the errors we get. We use Weblgic Server
6.1 SP2 with oracle 8.1.7 (client and server) under Windows NT.
When attempting to create the connection pool, we get the following exception:
Starting Loading jDriver/Oracle .....
<14.05.2002 15:48:30 CEST> <Error> <JDBC> <Cannot startup connection pool "DiplPool"
weblogic.common.ResourceException: java.sql.SQLException: open failed for XAResource
'DiplPool' with error XAER_RMERR : A resource manager error has occured in the transaction
branch. Check Oracle XA trace file(s) (if any) for database errors. The Oracle XA
trace file(s) are located at the directory where you start the Weblogic Server, and
have names like xa_<pool_name><MMDDYYYY>.trc.
at weblogic.jdbc.oci.xa.XAConnection.<init>(XAConnection.java:58)
at weblogic.jdbc.oci.xa.XADataSource.getXAConnection(XADataSource.java:601)
at weblogic.jdbc.common.internal.XAConnectionEnvFactory.makeConnection(XAConnectionEnvFactory.java:200)
at weblogic.jdbc.common.internal.XAConnectionEnvFactory.createResource(XAConnectionEnvFactory.java:57)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
The trace file looks like this:
ORACLE XA: Version 8.1.5.0.0. RM name = 'Oracle_XA'.
113105.161:160.160.-1344514975:
xaoopen: xa_info=Oracle_XA+Acc=P/schamper/schamper+SesTm=100+DB=DiplPool+Threads=true+LogDir=.+DbgFl=0x15,rmid=-1344514975,flags=0x0
113105.161:160.160.-1344514975:
ORA-12560: TNS: Fehler bei Protokolladapter
113105.161:160.160.-1344514975:
xaolgn_help: XAER_RMERR; OCIServerAttach failed. ORA-12560.
113105.161:160.160.-1344514975:
xaoopen: return -3
We suspect that we do not set the properties of the connection pool correctly. The
declaration of the pool in config.xml looks something like the following:
<JDBCConnectionPool CapacityIncrement="1" DriverName="weblogic.jdbc.oci.xa.XADataSource"
InitialCapacity="10" MaxCapacity="15" Name="DiplPool"
Properties="user=scott;password=tiger;url=jdbc:weblogic:oracle:srlaptop_aidenbach.muc.sdm-research.de;dataSourceName=DiplPool"
Targets="Marvin" TestTableName="privcust" URL="jdbc:weblogic:oracle:srlaptop_aidenbach.muc.sdm-research.de"/>
Are there any known issues with the XA driver and the versions of oracle and Weblogic
we use? Can someone tell us how exactly we have to define the connection pool or
provide an example?
Any help would be greatly appreciated.
Best regards,
MichaelHi Michael
Here is an example connection pool tag,
<JDBCConnectionPool
Name="oraXAPool"
Targets="myserver"
DriverName="weblogic.jdbc.oci.xa.XADataSource"
InitialCapacity="1"
MaxCapacity="10"
CapacityIncrement="2"
Properties="user=scott;password=tiger;server=ORCL"
/>
Ensure that the server=ORCL is replaced by server=<what ever the Alias is
defined in TNSNAMES.ORA file>
You dont have to specify the URL for this.
hth
sree
"Michael Wufka" <[email protected]> wrote in message
news:[email protected]...
>
Hi everybody,
we have serious problems configuring the weblogic jDriver for Oracle withsupport
for distributed transactions.
Everything works fine with the non-XA driver.
We tried the suggestions given here before like setting the environmentvariable
ORACLE_SID. However, this does not change the errors we get. We useWeblgic Server
6.1 SP2 with oracle 8.1.7 (client and server) under Windows NT.
When attempting to create the connection pool, we get the followingexception:
Starting Loading jDriver/Oracle .....
<14.05.2002 15:48:30 CEST> <Error> <JDBC> <Cannot startup connection pool"DiplPool"
weblogic.common.ResourceException: java.sql.SQLException: open failed forXAResource
'DiplPool' with error XAER_RMERR : A resource manager error has occured inthe transaction
branch. Check Oracle XA trace file(s) (if any) for database errors. TheOracle XA
trace file(s) are located at the directory where you start the WeblogicServer, and
have names like xa_<pool_name><MMDDYYYY>.trc.
at weblogic.jdbc.oci.xa.XAConnection.<init>(XAConnection.java:58)
atweblogic.jdbc.oci.xa.XADataSource.getXAConnection(XADataSource.java:601)
atweblogic.jdbc.common.internal.XAConnectionEnvFactory.makeConnection(XAConnec
tionEnvFactory.java:200)
atweblogic.jdbc.common.internal.XAConnectionEnvFactory.createResource(XAConnec
tionEnvFactory.java:57)
atweblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
ava:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282
atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
The trace file looks like this:
ORACLE XA: Version 8.1.5.0.0. RM name = 'Oracle_XA'.
113105.161:160.160.-1344514975:
xaoopen:xa_info=Oracle_XA+Acc=P/schamper/schamper+SesTm=100+DB=DiplPool+Threads=true
LogDir=.DbgFl=0x15,rmid=-1344514975,flags=0x0
113105.161:160.160.-1344514975:
ORA-12560: TNS: Fehler bei Protokolladapter
113105.161:160.160.-1344514975:
xaolgn_help: XAER_RMERR; OCIServerAttach failed. ORA-12560.
113105.161:160.160.-1344514975:
xaoopen: return -3
We suspect that we do not set the properties of the connection poolcorrectly. The
declaration of the pool in config.xml looks something like the following:
<JDBCConnectionPool CapacityIncrement="1"DriverName="weblogic.jdbc.oci.xa.XADataSource"
InitialCapacity="10" MaxCapacity="15" Name="DiplPool"
Properties="user=scott;password=tiger;url=jdbc:weblogic:oracle:srlaptop_aide
nbach.muc.sdm-research.de;dataSourceName=DiplPool"
Targets="Marvin" TestTableName="privcust"URL="jdbc:weblogic:oracle:srlaptop_aidenbach.muc.sdm-research.de"/>
>
Are there any known issues with the XA driver and the versions of oracleand Weblogic
we use? Can someone tell us how exactly we have to define the connectionpool or
provide an example?
Any help would be greatly appreciated.
Best regards,
Michael -
Cannot create Windows Media with PRE 8 - Writer not found
I have recently installed PRE 8 (paid single user) on my Windows 7 dual-core machine, and I have installed the 8.0.1 patch. I can import, edit and render video and audio just fine. I can save files as AVI and MPEG, but whenever I try to save a my movie as a Windows Media file, the rendering progress bar is displayed followed immediately by a pop-up entitled "Export error" with notification "Writer not found." I have reinstalled PRE8, turned of my antivirus, but nothing seems to resolve this problem. I cannot seem to find any remedy on the web. Anyone else experiencing this issue?
As I mentioned above I am running Windows 7 (omitted above: 64 Home Premium Edition). I have all updates installed, and I have verified I have latest device drivers. With regards to QuickTime, I am suffering from the accursed "Error 46: Could not load or fine Quicktime Active X control." So I am running withouy quicktime, but do I really need an Apple product to produce Windows Media?
I have tried to correct the Error 46 problem by using the "Subinacl/Reset" solution desribed in many places (e.g. http://research.gerger.com/?view=lab:en&aID=1006 under "Quicktime Annoyances"), but that solution isn't working for me. I can see that the issue is with registry priviledges -- no one can read the QT registry keys once QT is installed ("Insufficient Priviledge"). I suspect this solution isn't working, because I never installed an account named "administrator" on my machine, and it looks like the reset.cmd script assumes that you have.
I sure hope I don't need Quicktime to produce Windows Media, otherwise, I have spent a lot of money on a tool (PRE 8) that won't serve my needs. -
Safari cannot create secure connection with certain websites
I have OS X 10.10 with every available updates, and Safari's currently unable to 'establish secure connection' with some site I'm trying to connect, most disturbing being the whole Steam network (store/support.steampowered.com, steamcommunity.com, etc). IE (via Bootcamp), Chrome (both standalone and integrated into Steam client) and Firefox have no problem doing so.
Considering sometime before the in Steam browser indicated the site as insecure (a red lock icon with a cross, typically used to indicate bad cert) for a short time, and hearing of certs issued to gov agencies for man in the middle, I compared the cert for store.steampowered.com/login (which, in contrary to most content on that domain, forces a secure connection) and this discussions.apple.com. Well Firefox and IE do show a normal grey lock icon without organization name, and Chrome admits the website's ownership is unverified (in details, it says ownership is verified by the CA but there's no public verification record; the secure setting of that site has outdated, too) despite having Valve's name and green lock icon. So the cert could be a fake since it's an ordinary (I guess?) cert from a EV authority (DigiCert High Assurance EV CA-1 in this case). The certificate shown from Chrome is totally fine (not a single red cross in the chain), though.
Well there're other https resources Safari fails to create a secure connection with every now and then. I just forgot/ am unable to test them with other browsers (Sometimes it's not the page itself that can't be retrieved via https, but some resource it loads. Sadly I only know how to use Inspector in Safari, though I'm sure other browsers have similar functions, too). I suspect Safari just refuses such certificates (or the AES_128_CBC method maybe) while other browsers accept it. Is there an override for this?
Weird enough, https://ev-root.digicert.com/ has grey lock on Firefox and Safari. Seems overriding is the only workaround.
As a side note, my Safari freezes upon loading PayPal, being ir-responsive for tens of seconds on every activity such as clicking a link. For most of duration of the freeze no high CPU usage is monitored, though ocspd does sometimes take 50% or so, and the web process bursts into 100% immediately before unfreezing. Guess Yosemite has some issues with TLS on the system level.This could be a complicated problem to solve, as there are several possible causes for it.
Back up all data, then take each of the following steps that you haven't already taken. Stop when the problem is resolved.
Step 1
From the menu bar, select
▹ System Preferences... ▹ Date & Time
Select the Time Zone tab in the preference pane that opens and check that the time zone matches your location. Then select the Date & Time tab. Check that the data and time shown (including the year) are correct, and correct them if not.
Check the box marked
Set date and time automatically
if it's not already checked, and select one of the Apple time servers from the menu next to it.
Step 2
Triple-click anywhere in the line below on this page to select it:
/System/Library/Keychains/SystemCACertificates.keychain
Right-click or control-click the highlighted line and select
Services ▹ Show Info
from the contextual menu.* An Info dialog should open. The dialog should show "You can only read" in the Sharing & Permissions section.
Repeat with this line:
/System/Library/Keychains/SystemRootCertificates.keychain
If instead of the Info dialog, you get a message that either file can't be found, reinstall OS X.
*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it by pressing command-V. Select the line you just pasted and continue as above.
Step 3
Launch the Keychain Access application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
In the upper left corner of the window, you should see a list headed Keychains. If not, click the button in the lower left corner that looks like a triangle inside a square.
In the Keychains list, there should be items named System and System Roots. If not, select
File ▹ Add Keychain
from the menu bar and add the following items:
/Library/Keychains/System.keychain
/System/Library/Keychains/SystemRootCertificates.keychain
Open the View menu in the menu bar. If one of the items in the menu is
Show Expired Certificates
select it. Otherwise it will show
Hide Expired Certificates
which is what you want.
From the Category list in the lower left corner of the window, select Certificates. Look carefully at the list of certificates in the right side of the window. If any of them has a blue-and-white plus sign or a red "X" in the icon, double-click it. An inspection window will open. Click the disclosure triangle labeled Trust to disclose the trust settings for the certificate. From the menu labeled
Secure Sockets Layer (SSL)
select
no value specified
Close the inspection window. You'll be prompted for your administrator password to update the settings.
Now open the same inspection window again, and select
When using this certificate: Use System Defaults
Save the change in the same way as before.
Revert all the certificates with non-default trust settings. Never again change any of those settings.
Step 4
Select My Certificates from the Category list. From the list of certificates shown, delete any that are marked with a red X as expired or invalid.
Export all remaining certificates, delete them from the keychain, and reimport. For instructions, select
Help ▹ Keychain Access Help
from the menu bar and search for the term "export" in the help window. Export each certificate as an individual file; don't combine them into one big file.
Step 5
From the menu bar, select
Keychain Access ▹ Preferences... ▹ Certificates
There are three menus in the window. Change the selection in the top two to Best attempt, and in the bottom one to CRL.
Step 6
Triple-click anywhere in the line of text below on this page to select it:
/var/db/crls
Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
Go ▹ Go to Folder...
from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
A folder named "crls" should open. Move all the files in that folder to the Trash. You’ll be prompted for your administrator login password.
Restart the computer, empty the Trash, and test.
Step 7
Triple-click anywhere in the line below on this page to select it:
open -e /etc/hosts
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting. A TextEdit window should open. At the top of the window, you should see this:
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
If that's not what you see, post the contents of the window. -
Cannot create dynamic page with cursor based on linked table
I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
ORA-06550: line 1, column 24:
PL/SQL: ORA-00980: synonym translation is no longer valid
ORA-06550: line 1, column 24:
PL/SQL: SQL Statement ignored (WWV-11230)
Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
[email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
END LOOP; END; (WWV-08300)
Dynamic page:
<HTML>
<HEAD>
<TITLE>Example</TITLE>
</HEAD>
<BODY>
<H2>Example of A Dynamic Page</H2>
<ORACLE>
declare
cursor c1 is
select * from [email protected];
begin
for r1 in c1 loop
htp.p('hello<br>');
end loop;
end;
</ORACLE>
</BODY>
</HTML>
When i use the sql query from the cursor in the page below, i get no errors:
<HTML>
<HEAD>
<TITLE>Example</TITLE>
</HEAD>
<BODY>
<H2>Example of A Dynamic Page</H2>
<ORACLE>select * from [email protected]</ORACLE>
</BODY>
</HTML>
I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
Oracle Portal Version: 9.0.4.0.99I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
ORA-06550: line 1, column 24:
PL/SQL: ORA-00980: synonym translation is no longer valid
ORA-06550: line 1, column 24:
PL/SQL: SQL Statement ignored (WWV-11230)
Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
[email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
END LOOP; END; (WWV-08300)
Dynamic page:
<HTML>
<HEAD>
<TITLE>Example</TITLE>
</HEAD>
<BODY>
<H2>Example of A Dynamic Page</H2>
<ORACLE>
declare
cursor c1 is
select * from [email protected];
begin
for r1 in c1 loop
htp.p('hello<br>');
end loop;
end;
</ORACLE>
</BODY>
</HTML>
When i use the sql query from the cursor in the page below, i get no errors:
<HTML>
<HEAD>
<TITLE>Example</TITLE>
</HEAD>
<BODY>
<H2>Example of A Dynamic Page</H2>
<ORACLE>select * from [email protected]</ORACLE>
</BODY>
</HTML>
I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
Oracle Portal Version: 9.0.4.0.99 -
Cannot create SQL database with free trial subscription
Hello,
I get the error message 'The operation is not supported for your subscription offer type.' when trying to create a sql database with my free trial subscription.
Regards
JulianHi Julian,
It should be allowed, please provide steps that you used and ran into this issue. alternatively try these details
step by step instructions to get started.
Hope this helps
Please mark as answered if it helped
Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/ -
Cannot create a project with netbeans 4.1
hi. i am using jdk1.5 update 3 with netbeans 4.1. my operating system is ubuntu linux 5.04. when i want to create a new project with netbeans i get this error:
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
i open netbeans, click button "new project", select "General > Java Application", click "next" button.
project name: JavaApplication1
project location: /home/bsevindi
project folder: /home/bsevindi/JavaApplication1
when i click "finish" button, i get the error above. what should i do? BTW, i have compiled
a sample project and it works fine. the problem is only about creating a new project.I suggest you post the question to a netbean users forum.
This forum is better for question regarding programming rather than how to use an IDE.
Maybe you are looking for
-
How good is the audio jack?
In the past I've connected my iPod to my stereo using a mini to RCA adapter. It gave me a weak signal (even with the volume turned all the way up). How good is the Mac Mini's audio when plugging into a stereo? Thanks.
-
Digital Camera Raw update 4.02
is out in software update. I don;t see it on the Apple site yet however. This from software update
-
Drop Box Question: Can you preserve the Creation/Mod Date when dropping?
I transfer files across a 3-computer network and would like to preserve the dates, rather than having them reset to the current date and time when dropped. Is there a way to preserve this info?
-
Assign Joystick (on a KORG Synth) to control velocity
I would like to be able to control velocity by a joystick on one of my Korg synth, so that it alters global velocity on a Port. I have a huge library of samples and wish to know quickly how they sound with various velocities applied - I normally try
-
Running JAR gives me java.util.zip.ZipException
I just made a JAR--we'll call it MyApp.jar--containing some classes in the JAR's main directory (that is, not in any subfolder, just in the top level), and the following manifest that I put in from a text file i called "MANIFEST.MF": "Main-Class: MyA