Oc4J resource problems...
Apologies for raising vendor specific question here.
Actually I am trying to configure a resource similar to one defined in my Tomcat server.xml
as follows to my Oc4J setup:
<DefaultContext debug="0" reloadable="true">
<Resource name="xxx/yyy" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="ABC/PQR">
<parameter>
<name>factory</name>
<value>
org.apache.commons.dbcp.BasicDataSourceFactory
</value>
I am facing problems in the same due the fact that equivalent structure in OC4J is not very clear to me.Any pointers will be very helpful.
Thanks.
I'm trying to do the same thing. I found that you can configure 3rd party data sources with the "property" element. So, your data-sources.xml should look something like:
<data-source
name="MyTableDS"
location="jdbc/MyTableDS"
class="org.apache.commons.dbcp.BasicDataSource"
>
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<property name="url" value="jdbc:oracle:thin:@server:1521:sid" />
<property name="username" value="user" />
<property name="password" value="pass" />
<property name="maxActive" value="20" />
<property name="maxIdle" value="10" />
<property name="maxWait" value="2000" />
</data-source>
This seems to work with my EJB. But my JSP fails. It either cannot find the data source or doesn't get a valid data source.
I'm also using Castor for my database access.
I hope this is of some help. If you find out more, I'd appreciate a response.
Thanks.
Chrisjan
Similar Messages
-
Hi:
I have a J2EE application using Connection Pool and JDBC.
I am using Weblogic 6.1 and JDK 1.3.1.
I am running into a 'No More Resource' problem. I did some debugging and think the cause is due to all my 80 database connections are used up so no new connection is available. But all the 80 connections shouldn't be used up because I did the statement.close() and rs.close() in the finally{} statement in all my DAO methods. But it seems like the connections are not released back to the free pool.
I thought I read something that I might need to do a conn.close() too in order for the connections to be returned to the pool and marked as available. Don't the statement.close() do that? Thanks for any help!
StellaAny resolution on this? We're getting the same problem - using weblogic 6.1 and jdk131. We should never reach the max # of connections specified in the pool but periodically we do. Scraped through all the code and confirmed that for every connection we call ResultSet.close; Statement.close; Connection.Close in the finally block of the try/catch statements. But we still periodically reach the max. It's sporadic so we can't reproduce. Also, after we get the error and we check the weblogic console, we see the # of active connections drop back down below the max capacity (we have shrinking turned on). Any ideas?
thx.
--S. -
Bc4j/oc4j/petstore problem
After installing BC4J runtime on top of OC4J running on Win2k and Sun JDK1.3.1, bc4j demo is OK. the Sun's J2EE demo petstore stops working. Any idea?
Thx.
Request URI:/apps/petstore/template.jsp
Exception:
oracle.jsp.parse.JspParseException: Line # 8,
Error: oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in content of 'web-app', expected elements '[servlet-mapping, session-config, mime-mapping, welcome-file-list, error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
at oracle.jsp.parse.JspDirectiveTaglib.validateAttributes(JspDirectiveTaglib.java:80)
at oracle.jsp.parse.JspParseTagDirective.validateTagAttributes(JspParseTagDirective.java:107)
at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:672)
at oracle.jsp.parse.JspParseTagDirective.parse(JspParseTagDirective.java:174)
at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:548)
at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:100)
at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
at oracle.jsp.app.JspAppLoader.translatePage(JspAppLoader.java:1513)
at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1146)
at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1005)
at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:671)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:337)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:339)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:141)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:198)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:312)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:339)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:549)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
nullYes - this was a bug in the first version of the bc4j-oc4j installer. We have a new version of the installer that contains the correct version of orion.jar, and should fix the bug that you found. You can download it from http://otn.oracle.com/products/jdev/howtos/bc4jdeployment.html
My apologies - and please let us know if you continue to have problems.
Blaise -
I seem to be having problems with Flash Player in all my browsers when watching streaming videos. Flash Player tends to hoard a very large percentage (often 100%) of my CPU resources. The effect on my computer is frame loss. I do not have this problem on web video like netflix. I have already stopped almost all non essential processes to maximize available CPU.
My computer specs are as follows:
Chrome: Version 34.0.1847.131 m
ActiveX Version of adobe: 13,0,0,206
Plug-in Version: 13,0,0,206
Adobe Air: 13.0.0.83
------------------Overview------------------
Processor : Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz
Memory : 8156MB(1066)
Mother Board : 0Y536R
Windows Version : Microsoft Windows 7 Professional Service Pack 1
Video Adapter : ATI Mobility Radeon HD 4670
Disk Drive : OCZ-AGILITY4 ATA Device(238GB,IDE)
DVD/CD-ROM Drive : HL-DT-ST DVDRWBD CA10N ATA Device
------------------Operating System------------------
OS Name : Microsoft Windows 7 Professional Service Pack 1
OS Version : 6.1.7601
Internet Explorer : 9.11.9600.17041
DirectX : 4.09.00.0904
------------------System Devices------------------
Motherboard Name : 0Y536R
Motherboard Manufacturer : Dell Inc.
BIOS Version : A15
System BIOS Date : 04/09/11
Video BIOS Date : 09/06/09
CPU Identification : Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz
CPU Generic Name : Intel64 Family 6 Model 7 Stepping 10
CPU Vendor : GenuineIntel
CPU Frequency : 2772 MB
L1 Code Cache : Code L1 Cache, 32 KB, 8 ways, 64 byte lines
L1 Data Cache : Data L1 Cache, 32 KB, 8 ways, 64 byte lines
L2 Cache :
CPU Socket : U2E1
Core Per Package : 2
Logical Per Core : 2
------------------Drives------------------
(C:)
Disk Letter : C:
Device Type : Local Fixed Disk
File System : NTFS
Total Bytes : 255,953,203,200 B
Bytes Free : 88,843,386,880 B
Bytes Used : 167,109,816,320 B
File Compression Enabled : Yes
Volume is Compressed : No
Long File Name Enabled : Yes
Unicode File Name Enabled : Yes
Encrypted File System : Yes
Numbers of Clusters : 62,488,575
Free Clusters : 21,690,280
Used Clusters : 40,798,295
Bytes per Cluster : 4,096 bytes
Sectors per Cluster : 8
Used Sectors : 326,386,360
Free Sectors : 173,522,240
Bytes per Sector : 4,096 bytes
Total Sectors : 499,908,600
-----------------Display------------------
Device Description : ATI Mobility Radeon HD 4670
Adapter String : ATI display adapter (0x9488
BIOS String : -
Chip Type : ATI display adapter (0x9488)
DAC Type : Internal DAC(400MHz)
Driver Date : 2013-04-29
Driver Version : 8.970.100.1100
Driver Provider : Advanced Micro Devices, Inc.
Memory Size : 1024 MB
------------------Network------------------
Network Adapter : Bluetooth Device (Personal Area Network)
Network Adapter : Broadcom NetLink (TM) Gigabit Ethernet
Network Adapter : Intel(R) WiFi Link 5300 AGN
------------------Other Devices------------------
Bluetooth Hands-free Audio
AMD High Definition Audio Device
IDT High Definition Audio CODECProblem is with Adobe On-line installer of Flash player, which is very buggy and almost always crashes with some error. Please use full Off-line installer of Flash player, download from here:
http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_f lash_player_11_osx.dmg -
K9N Platinum onboard ethernet resource problem
I am having a problem getting my onboard ethernet to work on the MSI K9N Platinum motherboard.
The device manager is giving me Error Code 12 which stands for Not enough available resources.
I have tried everything short of reinstalling Windows to get this resolved. This is a fresh windows install. Right after the install I installed the chipset drivers. Since then I have reinstalled the drivers, disabled anything that I am not using in the device manager, and even disabled everything but the onboard lan and IDE controller in the bios. Nothing has worked.
Does anybody know what I could do to get the onboard ethernet to work?
Specs:
AMD AM2 3800X2
MSI K9N Platinum (non-SLI)
Old Nvidia PCI graphics card (X1800XT is not working)
Western Digital IDE 80 gig hard drive
Generic DVD burner
XCLIO 450 watt power supplyQuote from: syar2003 on 08-July-06, 15:19:54
Did you use the "Load Optimized Defaults" in cmos settings before win-install.
Sounds to me windows didn't install the correct HAL ,meaning you may have had wrong bios settings for ACPI & MPS.
This worked. I just did a repair install of windows after loading optimized defaults in bios. Thanks for the help. -
Resource problem when running Entity Bean
Hi,
can someone please help me with the following problem I am getting
weblogic.common.ResourceException: No resources available
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
java:568)
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
java:400)
at weblogic.common.internal.ResourceAllocator.reserveNoWait(ResourceAllo
cator.java:368)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
ava:166)
at weblogic.jdbc.common.internal.ConnectionPool.reserveNoWait(Connection
Pool.java:127)
at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiData
Source.java:194)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:219)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSP
ersistenceManager.java:313)
at CatalogueCMPEJB_WebLogic_CMP_RDBMS.__WL_exists(CatalogueCMPEJB_WebLog
ic_CMP_RDBMS.java:1381)
at CatalogueCMPEJB_WebLogic_CMP_RDBMS.__WL_create(CatalogueCMPEJB_WebLog
ic_CMP_RDBMS.java:1351)
at CatalogueCMPEJB_WebLogic_CMP_RDBMS.ejbPostCreate(CatalogueCMPEJB_WebL
ogic_CMP_RDBMS.java:1257)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:583)
at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:462)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:190)
at CatalogueCMPBean_knt3og_HomeImpl.create(CatalogueCMPBean_knt3og_HomeI
mpl.java:84)
at CatalogueMgrBean.createBook(CatalogueMgrBean.java:32)
at CatalogueMgrBean_pt5olq_EOImpl.createBook(CatalogueMgrBean_pt5olq_EOI
mpl.java:259)
at CatalogueMgrBean_pt5olq_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:288)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:257)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
thanks in advance,
Jason :)Increase the max. count on JDBC Connection pool, also as a good practice close
any openconnection after doing any BMP.
V
"ajay" <[email protected]> wrote:
>
Hi ,
this exception might also occur if u r not using an entity bean but using
the
conection pool to get connections and not closing them
what happens is the connection in the pool are exausted and it throws
a no resources
available exception.
regards
ajay
"Neeraj" <[email protected]> wrote:
"Jason" <[email protected]> wrote:
Hi,
can someone please help me with the following problem I am getting
weblogic.common.ResourceException: No resources available
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
java:568)
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
java:400)
at weblogic.common.internal.ResourceAllocator.reserveNoWait(ResourceAllo
cator.java:368)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
ava:166)
at weblogic.jdbc.common.internal.ConnectionPool.reserveNoWait(Connection
Pool.java:127)
at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiData
Source.java:194)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:219)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSP
ersistenceManager.java:313)
at CatalogueCMPEJB_WebLogic_CMP_RDBMS.__WL_exists(CatalogueCMPEJB_WebLog
ic_CMP_RDBMS.java:1381)
at CatalogueCMPEJB_WebLogic_CMP_RDBMS.__WL_create(CatalogueCMPEJB_WebLog
ic_CMP_RDBMS.java:1351)
at CatalogueCMPEJB_WebLogic_CMP_RDBMS.ejbPostCreate(CatalogueCMPEJB_WebL
ogic_CMP_RDBMS.java:1257)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:583)
at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:462)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:190)
at CatalogueCMPBean_knt3og_HomeImpl.create(CatalogueCMPBean_knt3og_HomeI
mpl.java:84)
at CatalogueMgrBean.createBook(CatalogueMgrBean.java:32)
at CatalogueMgrBean_pt5olq_EOImpl.createBook(CatalogueMgrBean_pt5olq_EOI
mpl.java:259)
at CatalogueMgrBean_pt5olq_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:288)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:257)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
thanks in advance,
Jason :)-------------
Its failing in ejbPostCreate, i.e. entering record in the database involving
CMR
fields. Please check your relationships in *.xml files. -
Deploy to OC4J standaone problem
Dears,
I developed an application in jdev 10.2 and it works successfully with embedded OC4J, but when deploy to OC4J standalone or Tomcat it doesn't work.
I use JSON in my application.
The log (for OC4J standalone and Tomcat) is empty from errors and exceptions, Only
JSONRPCBridge.analyzeClass analyzing package1name.package2name.package3name.DAO.classNmaeDAO
is written and my code didn't work and JSP is empty.
Any ideas, what may be the problem there???When I deploy to oc4j from jdev... I get an error.
Unknown site: http-web-site
How do I figure out what my http site is via my oc4j configuration?
I know in my Connection properties for oc4j in jdev, there is a target web site property where I entered "http-web-site", thinking this was the correct target.
Thanks. Look in <oracle_home>\j2ee\home\config\server.xml
Web sites are defined by the web-site entry. E.g
<web-site path="./http-web-site.xml" />
<web-site default="true" path="./default-web-site.xml" />
Dhiraj -
Hi ,
By using controller i am running my script ,the script is taking to OHS and OHS is routing the request to OC4J .It was working fine for the first time .i need to stop the oc4j and again bring back the oc4j server,this time OHS is routing the request to OC4J but the OC4J is not able to handle the user requests. We found the below error repeatedly in the application log file.
" Caused by: java.lang.ClassCastException: narrow () failed for class:com.siebel.nexus.repository.runtime.helper.RepositoryServiceRemoteHome
Check classpath to _iiopClient.jar containing stub classes "
Thanks
RameshTo restart Oc4J it has be be up and running.
1) So please start the Oc4J server as follows in one window:
java -jar orion.jar --> starts
2) Go to another command window:
Now try to restart Oc4j as follows:
java -jar admin.jar ormi://localhost admin password -restart
Hope this helps !!
regards
Debu panda
Oracle
I have problem to restart my oc4j in following format:
<<<<<<<<<
C:\oracle\iASHome817\j2ee\home>java -jar admin.jar
ormi://sf003dell admin quentinhu -restart
Error: javax.naming.NamingException: Lookup error: java.net.ConnectException: Co
nnection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect
>sf003dell is Oracle 8.16 server, I also tried to point to my 9iDB got the same message. Before each trial, I did modification on datasource.xml file under my j2ee container.I can start OC4J in a basic format "java -jar orion.jar" without error displayed.
I can also setup connention to both DBs from jDev5.0 very easily. Anyone in this forum can give me a clue what is going wrong?
Thanks a lot, -
i have a bc4j-web-application. i have deployed the jsp-application to the oc4j, running on my windows system.
but after opening the jsp page, i got following error:
oracle.jbo.JboException: JBO-33001: Cannot find the configuration file mypackage
\common\bc4j.xcfg in the classpath
i have followed the instructions of the rc2-bc4j-webapp-deployment-tutorial but it doesn4t work.
1. the bc4j.xcfg file is in the jar-file
2. under projectsettings the path of the file is added to the classpaths of the jsp project
3. the libary of the bc4j-prj is added to the selected libraries of the jsp project.
4. under web-inf/lib (settings of the war deployment profile) the libraries (the classes of the bc4j project) are selected.
but what must i do on the j2ee? what configurations must i do?
is there any other possible problem which can cause this exception?
or can somebody imagine, what i4m doing wrong? (maybe someone had the same problem).
thanks in advance,
andreI have faced this problem and the reason is that the jar for the businnes component is not containing all the files the file bc4j.xcfg in not included in the jar try to redeploy the application or if this error is only coming for one component then try making the jar using jar -cvf command
the file bc4j.xcfg is located in folder classes/modulename/common/ folder
To make a jar please copy the following folders at one place (in one folder)
classes/modulename folder
classes/all the other folder which you require
classes/connection.xml
src/Meta-Inf folder
now use this command
jar -cvf jarfilename.jar *.*
not replace the previous jar with this one and your problem will be solved. -
OC4J session problem - values not sticking in session
OC4J 10g (9.0.4.0.0)
I have been developing with JDeveloper and OC4J for a few years. My machine started to crap out last week (old laptop) so I purchased a new machine. I have installed the same versions of OC4J and JDeveloper on my new machine that were on my old machine. Everything seemed OK but I have noticed that none of the session values are "sticking" between requests, works fine on old machine by the way
Example:
a.jsp
// put a simple value in the session
session.setAttribute("firstName", new String("Chris"));
// later in that same jsp I can retrieve tha value - no problem
String fname = (String)session.getValue("firstName");
b.jsp
// but in a different jsp, the same call to retrieve the value from the session (after running other jsp to set the value) comes back null
String fname = (String)session.getValue("firstName");
The same exact code works great on one machine and not on the other - same versions of OC4J installed.
Anyone seen this before?
Thanks,
ChrisThe urls appear to be correct:
http://hostname:8888/contextroot/filename.jsp
The same result can be seen if I re-run one JSP over and over:
<%
Integer bigInt = (Integer)session.getValue("counter");
if (bigInt == null)
session.setAttribute("counter", new Integer(1));
bigInt = new Integer(1);
else
int newCounter = bigInt.intValue() + 1;
session.setAttribute("counter", new Integer(newCounter));
bigInt = new Integer(newCounter);
%>
Counter = <%= bigInt.intValue() %>
If I run this over and over on one machine I see the counter value of 1 each time. On the other it increments. -
hi all,
before installing ASM instance i had the resources as follows:- C:\oracle\102\crs\BIN>crs_stat -t -v
Name Type R/RA F/FT Target State Host
ora....c11.gsd application 0/5 0/0 ONLINE ONLINE vmrac11
ora....c11.ons application 0/3 0/0 ONLINE ONLINE vmrac11
ora....c11.vip application 0/0 0/0 ONLINE ONLINE vmrac11
ora....c22.gsd application 0/5 0/0 ONLINE ONLINE vmrac22
ora....c22.ons application 0/3 0/0 ONLINE ONLINE vmrac22
ora....c22.vip application 0/0 0/0 ONLINE ONLINE vmrac22
AFTER ASM instance is installed the resources are:-
C:\oracle\102\crs\BIN>crs_stat -v -t
Name Type R/RA F/FT Target State Host
ora....SM1.asm application 0/5 0/0 ONLINE OFFLINE
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE vmrac22
I have tried everything but could not solve the problem, i will be thankful to you for your valuable suggestions and solutions.
Thanks and Regards,
Aijazhi all,
I am back, RAC installation seems nightmare for me, I am getting the following error
node 1: vmrac11 vmrac11-priv vmrac11
node 2: vmrac22 vmrac22-priv vmrac22
Creating OCR keys for user 'administrator', privgrp ''..
Operation successful.
Now formatting voting device: \\.\votedsk1
Format of 1 voting devices complete.
Step 1: checking status of CRS cluster
Step 2: creating directories (C:\oracle\product\10.2.0\crs)
Step 3: configuring OCR repository
Step 4: configuring safe mode for CRS stack
Step 5: Starting up CRS stack on all nodes
vmrac11 service OracleCSService in improper PENDING state, err(0)
vmrac22 service OracleCSService in improper PENDING state, err(997)
i have already installed opmd.exe.
regards
Aijaz -
Cannot Erase Macbook HDD (Resource problem)
Going to switch on my Macbook this evening, I found it hanging at the Apple Logo. This being familiar from my recent iMac problems I booted from the Leopard install disc, ran Disk Utility and discovered "node errors"
Not to worry, I'd just backed up, so could restore from the Time Capsule. Checking that the archive existed I proceeded to select "Restore" from the Leopard DVD. Failed on Erase.
Restarting I tried to erase using Disk Utility. Input/Output error.
Booting as a firewire Target Disk got a different error when trying to erase. Resource Unavailable.
I've tried rebooting, erasing, repartitioning. Every time is either "Input/Output" error or "Resource" error.
Any help?I've just run a few tests on my machine. I've been getting similar errors to yours using the hardware test. I've done some digging and I agree- probably bad memory.
I just picked up a 4gig upgrade (less than two weeks ago)- patriot memory from Fry's.
I ran the first few tests with this memory installed and that's when I get the errors similar to yours. When I pulled the memory and installed the RAM my MBP came with I get "no trouble found" on both the standard and the extended test. I guess I should have seen the trouble sooner when the new RAM didn't seem make a difference.
I'll probably take it the local Apple Store, but I think it's safe to say it's the RAM that's causing the issues. -
Eclipse Tomcat Hibernate Struts - JDeveloper OC4J migration problem.
In my current project, everybody uses Eclipse and Tomcat as development environment. I decide to try JDeveloper in this project. Not that this configuration works with eclipse WPT.
When I try to open project, I get an error as below.
Target URL -- http://127.0.0.1:8988/PSSO/index.html
30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
WARNING: Code-source D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\BuildScripts\DirectoryThirdPartyLibraries\jta.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /E:/downloads/tools/jdevstudiobase1111/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\downloads\tools\jdevstudiobase1111\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
WARNING: Code-source E:\downloads\tools\jdevstudiobase1111\jakarta-struts\lib\struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /D:/atilla/projects/javaProjects/meteksan/EclipseWorkspace_RTUK/BuildScripts/DirectoryThirdPartyLibraries/struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
08/06/30 21:50:17 Hibernate: select t.name, sa.value from RTUK_PSSO.ytk_sistem_attribute sa, RTUK_PSSO.ytk_attribute t where sa.attribute_id = t.id
21:50:20,687 ERROR ActionServlet:364 - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from tr.com.meteksan.genel.gnlKurumOrganizasyon.GnlKurumOrganizasyon ko order by ko.organizasyonKodu]
at tr.com.meteksan.web.plugin.InitSozlukDegerleriPlugIn.init(InitSozlukDegerleriPlugIn.java:49)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
what is interesting is that
first query with hibernate works, but second query does not works.
My JDeveloper as below
CVS Version Internal to Oracle JDeveloper 11g Technology Preview 4 (client-only)
Java(TM) Platform 1.5.0_15
Oracle IDE 11.1.1.0.22.49.49
Versioning Support 11.1.1.0.22.49.49
I wonder if it is related to struts and jta jars defined twice.There might be a problem with the OC4J not finding the hibernate library you are trying to use.
Try setting the library also in the tools->embedded OC4J preferences. -
When I try to strart oc4j, it shows the following message:
Unable to register the NameService:
Error starting up the IIOPService...
Oracle application server containers for j2EE 10g initialized ...
!!!No valid java compiler found!!!
javac.exe not found under c:\program files\java\jre1.6.0_06, please use a valid jdk or sepcify the location of your java compiler in server.xml using the <java-compiler..../> tag
Whats the problem? What should I do?Hmm...javac should be installed in the jdk/bin directory of your ORACLE_HOME. And OC4j should be set to look there :-S
Try this,
Open the server.xml file found at ORACLE_HOME\j2ee\DevSuite\config
Add the following between the opening and closing <application-server> tags:
<j2ee-logging-config path="./j2ee-logging.xml" />
<java-compiler name="javac"
bindir="<Your ORACLE_HOME here>\\jdk\\bin" />
<log>
<file path="../log/server.log"/>
</log>And restart the OC4J instance.
Otherwise, is it possible to do a clean install?
Hope it helps,
A -
I am installing OBIEE on windows server 2003 with java version 1.6.0_12
find below java - version command output
java version"1.6.0_12"
java(TM)SE Runtime Environment (build 1.6.0_12-bo4)
java Hotspot (TM) client VM (build 11.2-b01,mixed mode,sharing)
everything was working fine untill suddenly OC4j failed to start with the following error
Starting oc4j from c:\oracleBi\oc4j_bi\j2ee\home
WARNING:Application.setconfig Application:default is in failed state as initialization failed
java.lang.ClassCastException: B cannot be cast to javax.naming context
Error initializating server:application:default is in failed state as initialization failed
Fatal error server exiting
Thanks in advance
Edited by: user12266474 on Feb 7, 2010 3:26 AMJ Developer 11 is too slow also. Yesterday I have downloaded J developer 10.1.1.3 version and I is really fast. Moreover this version OC4J run faster than Jdev 11. At this point I have one more question, in older version I have tryed to run ADF Faces Rich Client Components demo but I couldn't.
I think it is because the version problem. I want to start a project to use adf faces and I am really beginner and I need to know that if I can use some components from ADF Faces Rich Client Components demo project in the older version of Jdeveloper. (10.1.1.3) thank you my friends.
Maybe you are looking for
-
Replica Planned Failover - Reverse Replication Fails
Replication was created successfully from server HV1 to HV2. Both HV servers are domain members, with valid DNS. I can add HV2 to the Hyper-V management console on HV1, and vice versa, so I can manage both servers from either console. (i.e., they t
-
Differences in BPS Can some explain? In BPS cube I have sum of 96500- (minus) In Bex report I have sum of 5001 In Layout I have sum of 5001 Why the difference? Thanks
-
How to use garageband loops in final cut pro x
I have O/S 10.6.8 I have looked in the following for garageband loops, but see nothing. 1. Mac HD > Library > Audio > Apple Loops > Apple > Apple Loops for Garage Band, 2. Mac HD > Library > Application Support > GarageBand > Apple Loops > Apple Loop
-
I have been searching the forums and the web for hours and have not found a solution to a problem we are having. We upgraded our reports from VS.NET 2003 to VS.NET 2008 and started getting the below error upon our Report.Export code. Logon failed. D
-
Nakisa OrgModeler - Send Email
Hi experts, We're on OrgModeler 3.0 SP1. Based on the OrgModeler user guide, one of the tasks that you can perform on selected records (flagged objects) is to open an empty email message with the addresses of all the selected records. Has anyone seen