Deploying LightSwitch applications to IIS using the Oracle Entity Framework
I have had no sucess running Lightswitch applications on IIS using the Oracle Beta entity framework. Applications work fine from visual studio but after deployment fail when I trying to access an Oracle data entity.
I have tried deploying to a 2008 V2 server 64Bit running IIS7.5 and also to a 32 bit windows 7 machine running IIS7. Both machines had the entity framework installed and I could connect to Oracle with SQL developer just fine. Briefly in the case of the 64 bit machine I get a bad image exception indicating a 64/32 bit conflict. (App pool switched to allow 32bit). The problem with the 32Bit machine is that the session either hangs or dies with an [Arg_TargetInvocationException]
In all tests apps could connect to SQL server fine but as soon as I use an Oracle connection they fail. It would very helpfull if someone could confirm that they have managed to use the Entity framework Beta with Lightswitch and IIS.
Thanks in advance
Edited by: user12218662 on 08-Oct-2011 11:35
Edited by: user12218662 on 08-Oct-2011 11:37
Both hosts working now. Initially I created a service account for the aspnet service with extended rights and assigned this to the application pool. This subsequentluy turned out not to be required - ApplicationPoolIdentity works fine. What worked was as follows:
1. On a 64 Bit host you need to set the application pool to Enable 32 Bit Applications (Right click the relevant app pool in IIS and select advanced)
2. Switch off windows authentication for the application (leaving just anonoymous authentication) This was required on both hosts
3. On the 32 Bit host copy tnsnames to the oracle client admin folder - the framework seems to ignore theTNS_ADMIN environment variable. Probably more to this but its working for now.
Similar Messages
-
Revision: 16929
Revision: 16929
Author: [email protected]
Date: 2010-07-15 07:38:44 -0700 (Thu, 15 Jul 2010)
Log Message:
Add a class that will register the required class aliases in the event the mxml compiler generation [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework.
Add a reference to this class in the RPCClasses file so it always gets loaded.
QE notes: Need a remoting and messaging regression test that doesn't use Flex UI.
Bugs: Watson bug 2638788
Modified Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/RPCClasses.as
Added Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.asGreat exercise to document the problem like this. It got me thinking about how an app with modules would be different from an app that does not use modules. Solution: I moved the dummy reference of PersonPhotoView out to the main application file (as opposed to being inside the module) and it worked. I've probably been lucky not to have experienced this problem earlier, because for most other entities I have an instance attached to my model which is linked / compiled with the main application.
-
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1) -
Using the Oracle Driver for the Engine DataSource
Hi -
When we try to use the Oracle driver (not the WebLogic Oracle Driver) we get the following exception. We would like to use the Oracle driver and not the WebLogic driver. Is this possible with 10gR3?
fuego.transaction.DatabaseException: An error occurred while accesing the database.
Detail:SQL statement: 'SELECT WKTDKEY, DUETIME, ID, PROCESSID FROM PWKTODO WHERE WKTDKEY = ?'
at fuego.server.persistence.jdbc.JdbcToDoItemPersMgr.getWKItem(JdbcToDoItemPersMgr.java:548)
at fuego.server.persistence.Persistence.getWKToDoItem(Persistence.java:518)
at fuego.server.service.DirectoryListener.stopDirectoryPollingToDoItem(DirectoryListener.java:282)
at fuego.ejbengine.service.EJBDirectoryListener.access$100(EJBDirectoryListener.java:26)
at fuego.ejbengine.service.EJBDirectoryListener$1.execute(EJBDirectoryListener.java:70)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:79)
at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:185)
at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:86)
at fuego.ejbengine.service.EJBDirectoryListener.start(EJBDirectoryListener.java:56)
at fuego.server.service.AbstractService.changeRunLevel(AbstractService.java:99)
at fuego.server.service.AbstractService.setRunLevel(AbstractService.java:52)
at fuego.ejbengine.service.EJBDirectoryListener.initialize(EJBDirectoryListener.java:42)
at fuego.ejbengine.Engine.startServices(Engine.java:414)
at fuego.ejbengine.Engine.start(Engine.java:126)
at fuego.ejbengine.ItemExecutionBean.ejbCreate(ItemExecutionBean.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.manager.MessageDrivenManager.createBean(MessageDrivenManager.java:307)
at weblogic.ejb.container.pool.MessageDrivenPool.createBean(MessageDrivenPool.java:174)
at weblogic.ejb.container.pool.Pool.createInitialBeans(Pool.java:300)
at weblogic.ejb.container.manager.MessageDrivenManager.start(MessageDrivenManager.java:581)
at weblogic.ejb.container.deployer.MessageDrivenBeanInfoImpl.mdManagerStart(MessageDrivenBeanInfoImpl.java:1163)
at weblogic.ejb.container.deployer.MessageDrivenBeanInfoImpl.deployMessageDrivenBeans(MessageDrivenBeanInfoImpl.java:1143)
at weblogic.ejb.container.deployer.EJBDeployer.deployMessageDrivenBeans(EJBDeployer.java:1587)
at weblogic.ejb.container.deployer.EJBDeployer.start(EJBDeployer.java:1410)
at weblogic.ejb.container.deployer.EJBModule.start(EJBModule.java:589)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.sql.SQLException: Invalid column type
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7931)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7511)
at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:7984)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:237)
at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:287)
at fuego.jdbc.FaultTolerantPreparedStatement.setString(FaultTolerantPreparedStatement.java:436)
at fuego.server.persistence.jdbc.JdbcToDoItemPersMgr.getWKItem(JdbcToDoItemPersMgr.java:479)
... 56 moreOnly the weblogic oracle drivers are supported in 6.0 and 10gR3 for the Directory and Engine datasources.
-
What Should I Download To Use The Oracle 9i?
I was told that the Oracle 9i and above are free for download. I would like to use the Oracle in my personal machine.
I went to the Oracle website and saw lots of options. I did not know which one to select to download. For example, there are many options under the Development Tools, many options under the Application Server, and many options under the Oracle Database.
Do I have to download Development Tools, Application Server and Oracle Database? Which ones should I choose under those headings?
I have downloaded the Oracle9i 9.2.0.3 JDBC Driver, it took only 5 minutes and I have the ojdbc14_g executable jar file.Go to the link shown below:
http://otn.oracle.com/software/products/oracle9i/content.html
and download 9.2.0.2 for your OS. For Windows XP, there are three files to download ... a total of about 1.5 gb (took over three hours to download on a high-speed cable internet connection)...
If I remember correctly, you can also order the program on 3 CD's.
Have fun!
;o)
V.V. -
Deploying large applications and common used classes
I've got an application containing EntityBeans, statefull/stateless
SessionBeans, and a Webapplication. Every component is packed in a jar File
and all together in an EAR-File as an application.
Those EJBs share some common classes, for example:
EjbA in A.jar and EjbB in B.jar share a Helperclass C.
Where do I put this class C? I try to avoid to put this class C in the
Classpath of the application server. And when I put C in both jar-Files I
got a ClassNotFoundException in one of the EJBs. I'm using WLS 6.0.
Any ideas? Thanx in advance.FYI, this is fixed in 6.1
Torsten Friebe wrote:
Hi Daniel,
thanks, this article answers my question. But does WLS 6.0 or 6.1 allready
support J2EE Packaging as described in J2EE 1.3 Spec (PFD3) Chapter 8?
Cheers
Torsten
"Daniel Hoppe" <[email protected]> schrieb im Newsbeitrag
news:[email protected]..
Hi Torsten,
there is no really good solution so far. Check out this link, it
elaborates this topic in detail.
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
Cheers,
Daniel
-----Ursprüngliche Nachricht-----
Von: Torsten Friebe [mailto:[email protected]]
Bereitgestellt: Freitag, 29. Juni 2001 11:59
Bereitgestellt in: environment
Unterhaltung: deploying large applications and common used classes
Betreff: deploying large applications and common used classes
I've got an application containing EntityBeans, statefull/stateless
SessionBeans, and a Webapplication. Every component is packed
in a jar File
and all together in an EAR-File as an application.
Those EJBs share some common classes, for example:
EjbA in A.jar and EjbB in B.jar share a Helperclass C.
Where do I put this class C? I try to avoid to put this class C in the
Classpath of the application server. And when I put C in both
jar-Files I
got a ClassNotFoundException in one of the EJBs. I'm using WLS 6.0.
Any ideas? Thanx in advance. -
....in 'DD-MMM-YY' format from an Oracle 8i database and pass it in to the java.util.Date() constructor, I get a IllegalArgumentException. This error doesn't occur when I use the type 2 driver, so it is apparently a driver-specific thing. It happens on both Win32 and Linux.
Has anyone seen this before? Is there a newer version of the Oracle thin (i.e., type 4) driver than is listed here?
http://web77-02.us.oracle.com/software/tech/java/sqlj_jdbc/content.html
Thanks,
Tom
[email protected]Yup, that original post didn't make much sense, did it? Let's try again.
I've got an EJB app that runs on WebLogic 6.0 (on Solaris in production, on Win2K for development) and accesses an Oracle 8i database. This app currently uses the Oracle type 2 JDBC drivers. All is well.
So I wanted to see how it would run on Linux. I've got a Redhat 7.1 box handy, so I installed the JDK and WL6.0 and slapped the ear file on there. Problem! Can't deploy because there are no Oracle drivers on this machine!
Makes sense. So I started looking around, and it seems installing Oracle on a RH 7.1 box involves patching glibc and other such nastiness. So let's just try the type 4 JDBC driver - no glibc patch, no shared object libraries, just good 'ol pure Java talking to Oracle on port 1521.
Once I had the URLs and whatnot set up, the app connected to the DB just fine, created the connection pool, read some data, etc. But when my app read a date from the DB and instantiates a new java.util.Date object, I got an IllegalArgumentException - i.e., the date can't be parsed.
"Hmm... that's odd", I thought, so back I went to my trusty Win2K machine, modified my configuration files to use the type 4 driver and - same error! So I switched back to the type 2 driver - and everything works fine, Dates and all. Hmmm.....
As you correctly state, that Date constructor is deprecated and I should use DateFormats and GregorianCalendars and whatnot instead.
But has anyone seen this weird behavior before - code that works fine on a type 2 driver starts throwing exceptions when used with a type 4 driver? Anyone have any solutions?
Thanks much,
Tom -
Can java use the Oracle user defined datatypes
Following the code snippets from the sample applications from the Oracle 9i manual,i have coded two classes:
java.util.Map map = (Map) conn.getTypeMap();
map.put("camr_owner.proc_test_type",Class.forName("testType"));
conn.setTypeMap(map);
These three lines cause the program to choke.
The exception thrown is :
Exception in thread "main" java.lang.AbstractMethodError: getTypeMap.
In one of the classes,i have a class that is exactly same as the Oracle UDT implementing the SQLData interface.
In the other,i mean the class where i have coded the above mentioned three lines,i have a main class which tries to make a connection to the database.I am using the java thin drivers(classes12.zip in the classpath).
Can anyone,point me what is the mistake in the lines.Hello "TPD"
The fact that I'm posting this on a Java newbies forum indicates that I have NOT a smarter approach (don't even have one). I just asked this question about using Java to integrate with OpenScript because I didn't find much information online and the Oracle Support Community Forums have proven to be very helpful for me in the past, that's all.
It doesn't seem from your reply you were intending to help but more to discourage me and other to use the Oracle Support Community forums.
bye
Fede.. -
How to use the Oracle 10g JDBC OCI driver in JBoss ?
Greetings,
I deployed ojdbc14.jar in JBoss and I created an Oracle datasource. I have the following questions:
1. In the datasource descriptor file I have:
<connection-url>jdbc:oracle:oci:@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=xe)))</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
Is it enough in order to use the Oracle 10g JDBC OCI driver ?
2. After having looked-up the datasource and created a connection, the classe of these objects are org.jboss.resource.adapter.jdbc.WrapperDataSource and, respectivelly, org.jboss.resource.adapter.jdbc.WrappedConnection. How can I have access to oracle.jdbc.oci and oracle.jdbc.pool packages ?
Many thanks in advance,
NicolasHello
We were banging our heads on a similar thing, maybe this will help
We needed to convert the wrapped connection to an OracleConnection so that we could do a proxy switch, but maybe you could apply it to your situation anyway
1-you have to convert the Connection object to an OracleConnection in order to use the method that does the proxy switch
The method to do this is getInnermostDelegate()
Once you call this method, you get a new Connection object that can be cast to an OracleConnection object
See below for the snippet of code
// now switch the user and reselect
if (conn instanceof DelegatingConnection) {
properties.put("PROXY_USER_NAME","peter/peter");
oraConn =((DelegatingConnection)conn).getInnermostDelegate();
if (oraConn == null)
out.println("oraConn is null\n");
((OracleConnection)oraConn).openProxySession(OracleConnection.PROXYTYPE_USER_NAME,properties);
2-you have to put a setting in the xml file in conf/Catalina/localhost that allows you to call the getInnermostDelegate() method
By default, Tomcat does not allow you to call this method, it will always return null
You have to change the xml to allow it to return an object
It seems that WebSphere and Tomcat both frown on vendor-specific methods that do not comply with the JDBC standards, but do allow it
Here is the setting:
<parameter>
<!-- NOTE: This is necessary to enable access to the Oracle connection object -->
<name>accessToUnderlyingConnectionAllowed</name>
<value>true</value>
</parameter>
Note, this setting was also put in the conf/server.xml file
Thanks
Peter -
Using the Oracle Database XE Menus on Linux
I've installed Oracle Database 10g Express Edition at my Mandriva Linux rel. 2006.0 server. Everything went ok, the database is up and running.
But, the "Getting Started Guide" chapter 6, refers to howto "using the Oracle Database XE Menus" --> "On Linux, click the Application menu (on Gnome) or the K menu (on KDE) and then point to Oracle Database 10g Express Edition". I'm not able find anything like this in my KDE menus ??. Do anyone know which binaryfile i can start, to get the into the XE Menus.
As far as i can see, my only option is to connect to the database through the browser --> http://localhost:8080/apex or from outside --> http://server01:8080/apex (the remote connection is enabled).
Rgds
Lars MyraasI found the oraclexe*.desktop files here:
/var/lib/menu/kde/Applications/OracleXE
Linked from here: /usr/share/applications
I'm not sure why KDE won't show the OracleXE KDE menu. But as a quick fix I copied all the oraclexe*.desktop files to my $HOME/Desktop
Better that nothing, but I would like to get the menu for OracleXE into my KDE menu?!
I'm running KDE throug vncviewer, maybe thats the problem. -
How do I use the Oracle Developer Reporting Control in Visual Basic 6.0?
I was wondering how to use the Oracle Developer Reporting Control componant in Visual Basic 6.0 to generate reports in Oracle Reports? Any help would be appreciated.
Hi Rohit,
Would like to ask you some questions about the oracle report with Visual Basic.
1. I have a report built in oracle report. Currently there is a Visual Basic program want to pass some parameter to this report. Can Visual Basic program pass the parameter to this oracel report?
2. Based on yr answer, do i have to installed the oracle report? or just copy and register the Rwsxa60.ocx (i'm using oracle report 6i) in the PC? So can i use this activeX control.
3. Is this activeX control similar to Crystal report object which can found in VB?
4. Is there an example/guide on how the Visual Basic pass the parameter to oracel form?
Your answer will be much appreciated.
Thanks.
Regards,
Hock Leong -
The application does not use the screen and run in the background
Hi
I have downloaded a package of j2me Midlet
from [link] here [link]
and try to reuse the code
but I get the following error when running the code:-
The application does not use the screen and run in the background
I think the error into one of these two classes
package main;
import javax.microedition.midlet.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
import javax.microedition.media.Player;
import java.io.IOException;
import java.io.InputStream;
public class MainMidlet extends MIDlet implements CommandListener {
private SSGameCanvas gameCanvas ;
private Command exitCommand ;
private Player player = null;
public void startApp() {
try {
// create new game thread
gameCanvas = new SSGameCanvas();
gameCanvas.start(); // start game thread
exitCommand = new Command("Exit",Command.EXIT,1);
gameCanvas.addCommand(exitCommand);
gameCanvas.setCommandListener(this);
Display.getDisplay(this).setCurrent(gameCanvas);
catch (java.io.IOException e)
e.printStackTrace();
try {
// start sounds
InputStream in = getClass().getResourceAsStream("/resource/startfly.wav");
player = Manager.createPlayer(in,"audio/x-wav");
player.setLoopCount(1);
player.start();
catch (MediaException ex)
ex.printStackTrace();
catch (IOException ex)
ex.printStackTrace();
public void pauseApp() {
public void destroyApp(boolean unconditional) {
if (player != null) {
player.close();
System.gc();
public void commandAction(Command command, Displayable displayable) {
if (command == exitCommand)
destroyApp(true);
notifyDestroyed();
package main;
import java.io.IOException;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
public class SSGameCanvas extends GameCanvas implements Runnable {
protected GameManager gameManager;
protected boolean running;
private int tick=0;
private static int WIDTH;
private static int HEIGHT;
private int mDelay = 20;
Form mainForm;
Display display;
//private int MaxTime;
public SSGameCanvas() throws IOException{
super(true);
gameManager = new GameManager(5,5,getHeight()-10,getWidth()-10,this);
public void start() {
this.running = true;
Thread t = new Thread(this);
t.start();
public void stop() {
running = false;
public void render(Graphics g) {
WIDTH = getWidth();
HEIGHT = getHeight();
// Clear the Canvas.
g.setColor(0, 0, 50);
g.fillRect(0,0,WIDTH-1,HEIGHT-1);
// draw border
g.setColor(200,0,0);
g.drawRect(0,0,WIDTH-1,HEIGHT-1);
// draw game canvas
gameManager.paint(g);
public void run() {
while (running) {
// draw graphics
render(getGraphics());
// advance to next graphics
advance(tick++);
// display
flushGraphics();
try { Thread.sleep(mDelay); }
catch (InterruptedException ie) {}
public void advance(int ticks) {
// advance to next game canvas
gameManager.advance(ticks);
this.paint(getGraphics());
}Edited by: VANPERSIE on Jul 10, 2012 12:26 PMHi Andi,
Thanks for your reply.
Yes, I have waited for a while and the result doesn't change.
The Porblem here is the application is seen started in visual administrator.Only restart brings up the page back.
Can you please suggest anything.
Thanks and regards
Nagaraj -
i have two apple id accounts ,when i used to update application it used to prompt a default id (the old one) and if the application was downloaded using the other id i would cancel and it would prompt the other id but not any more .
it just prompt the old id which im not signed in with im signed in using the new id and when i cancel nothing happens and when i try to update applications separately i have the same problem .
im signed in using the new id
the old one is my wife's so i can't delete it
the problem happens when i update all or each application by its own
using ios 5.0.1 on a iphone 3gs
the applications are downloaded using both the new and old id's
any help will be greatly appreciatedِThese are user-to-user forums, you are not talking to Apple here and they don't monitor these forums - I've asked the hosts to remove yout account ids from your post.
In terms of combining accounts it's not currently possible to do so, nor to copy/transfer content from account to another. -
Insert data 32K into a column of type LONG using the oracle server side jdbc driver
Hi,
I need to insert data of more than 32k into a
column of type LONG.
I use the following code:
String s = "larger then 32K";
PreparedStatement pstmt = dbcon.prepareStatement(
"INSERT INTO TEST (LO) VALUES (?)");
pstmt.setCharacterStream(1, new StringReader(s), s.length());
pstmt.executeUpdate();
dbcon.commit();
If I use the "standard" oracle thin client driver from classes_12.zip ("jdbc:oracle:thin:@kn7:1521:kn7a") every thing is working fine. But if I use the oracle server side jdbc driver ("jdbc:default:connection:") I get the exception java.sql.SQLException:
Datasize larger then max. datasize for this type: oracle.jdbc.kprb.KprbDBStatement@50f4f46c
even if the string s exceeds a length of 32767 bytes.
I'm afraid it has something to do with the 32K limitation in PL/SQL but in fact we do not use any PL/SQL code in this case.
What can we do? Using LOB's is not an option because we have client software written in 3rd party 4gl language that is unable to handle LOB's.
Any idea would be appreciated.
Thomas Stiegler
nullIn rdbms 8.1.7 "relnotes" folder, there is a "Readme_JDBC.txt" file (on win nt) stating
Known Problems/Limitations In This Release
<entries 1 through 3 omiited for brevity >
4. The Server-side Internal Driver has the following limitation:
- Data access for LONG and LONG RAW types is limited to 32K of
data. -
Using Refcursor in Callable Statement without using the Oracle Drivers
Hello all,
Is there anyway to have a stored procedure (Oracle 8i) return a refcursor to my CallableStatement without using the Oracle Thin drivers (i'm now using jdbcodbc). I've tried registering my out parameter with every possible type i can think of...REF, JAVA_OBJECT, OTHER, etc. but with no luck.
Help!!!!Certainly...I connect to the database using the
jdbcodbc driver and when i execute any of the code, i
get the following error:
java.sql.SQLException: [Oracle][ODBC][Ora]ORA-06550:
line 1, column 7:
PLS-00306: wrong number or types of arguments in call
to 'PVISUAL_GET'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
It's bombing on the line that i attempt to register
OracleTypes.CURSOR. It works fine when i use the
oracle thin drivers, but i want to get this puppy
working with the JdbcOdbcDriver. Here's the code:
CallableStatement dbCall =
nt dbCall =
(CallableStatement)connection.prepareCall("{ call
PAK_VISUAL_GET.pvisual_get(?, ?, ?, ?, ?, ?) }");
dbCall.setString(1, sessionKey);
dbCall.setInt(2,
l.setInt(2, Integer.parseInt(storedVizID));
dbCall.registerOutParameter(3,
arameter(3, OracleTypes.CURSOR);
dbCall.registerOutParameter(4,
arameter(4, OracleTypes.NUMBER);
dbCall.registerOutParameter(5,
arameter(5, OracleTypes.VARCHAR);
dbCall.registerOutParameter(6,
arameter(6, OracleTypes.NUMBER);
dbCall.execute();when you don't use oracle thin driver, you cannot use the OracleTypes. but, instead use the java.sql.Types values.Replace dbCall.registerOutParameter(3, OracleTypes.CURSOR); with
dbCall.registerOutParameter(3,java.sql.Types.OTHER). things should be fine.
Ganesh
Maybe you are looking for
-
Anonymous UUID: CB8CBE80-12FB-745F-5DF6-773C8987ABF7 Tue Apr 8 11:28:19 2014 panic(cpu 6 caller 0xffffff800e4c01bb): "TLB invalidation IPI timeout: " "CPU(s) failed to respond to interrupts, unresponsive CPU bitmap: 0x101, NMIPI acks: orig: 0x
-
LINKSYS N750 - EA3500 Won't stay connected to the Internet!!!
This SMART WI-FI router is AWFUL! First of all, I'm smart!!! So I don't like the "easy" system set-up where you can't make your own decisions. It's frustrating. Anyway, I could never get the first one to connect to the internet at all. I exchanged
-
Hi! I have an old computer witch I have installed apache, php and mysql. Every thing is working except from one thing (so far). I have tested that php works, but my problem is that I don't get any error messages back from the server if there is an er
-
How can I add a signature to a New Messages within 'Cases' in CRM?
How can I add a signature to a New Messages within 'Cases' in CRM?
-
Function modules for operations on Info Types
Hi All, what is the difference between function modules HR_MAINTIAN_MASTERDATA and HR_INFOTYPE_OPERATION ??