• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DataSource Access

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can oyu tell me how to connect JBOSS with oracle 10g... I tried to connect it but it fail... I copy oracle.jar to jboss and oracle-ds.xml to server>> deploy folder... getting error:

21:16:31,906 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'

21:16:31,906 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2

21:16:31,906 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.

21:16:31,906 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.2.1.GA/server/default/deploy/Oracle-ds.xml

org.jboss.deployment.DeploymentException

: Could not parse dd; - nested throwable: (org.xml.sax.SAXParseException : The processing instruction target matching "[xX][mM][lL]" is not allowed.)
at org.jboss.deployment.XSLSubDeployer.findDd(

XSLSubDeployer.java:231)
at org.jboss.deployment.XSLSubDeployer.init(

XSLSubDeployer.java:161)
at org.jboss.deployment.MainDeployer.init(

MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(

Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(

AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(

ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(

MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(

MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(

URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(

URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(

AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(

AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(

ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(

ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(

Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(

MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(

ServiceController.java:978)
at $Proxy0.start(Unknown Source)

at org.jboss.system.ServiceController.start(

ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(

Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(

MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(

MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)

at org.jboss.deployment.SARDeployer.start(

SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(

MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:766)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(

ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(

Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(

AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(

ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(

MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(

MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)

at org.jboss.system.server.ServerImpl.doStart(

ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(

ServerImpl.java:362)
at org.jboss.Main.boot(

Main.java:200)
at org.jboss.Main$1.run(

Main.java:508)
at java.lang.Thread.run(Unknown Source)

Caused by:

org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)

at org.jboss.deployment.XSLSubDeployer.findDd(

XSLSubDeployer.java:227)
... 68 more

21:16:32,281 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java efaultDS'

21:16:32,468 INFO [A] Bound to JNDI name: queue/A

21:16:32,468 INFO [B] Bound to JNDI name: queue/B

21:16:32,468 INFO [C] Bound to JNDI name: queue/C

21:16:32,468 INFO [D] Bound to JNDI name: queue/D

21:16:32,468 INFO [ex] Bound to JNDI name: queue/ex

21:16:32,484 INFO [testTopic] Bound to JNDI name: topic/testTopic

21:16:32,484 INFO [securedTopic] Bound to JNDI name: topic/securedTopic

21:16:32,484 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

21:16:32,484 INFO [testQueue] Bound to JNDI name: queue/testQueue

21:16:32,546 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093

21:16:32,562 INFO [DLQ] Bound to JNDI name: queue/DLQ

21:16:32,671 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'

21:16:32,687 INFO [TomcatDeployer] deploy, ctxPath=/JRECSWeb1, warUrl=.../deploy/JRECSWeb1.war/

21:16:32,968 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/

21:16:33,062 ERROR [URLDeploymentScanner] Incomplete Deployment listing:


--- Incompletely deployed packages ---

org.jboss.deployment.DeploymentInfo@ba142ef1 { url=file:/C:/jboss-4.2.1.GA/server/default/deploy/Oracle-ds.xml }

deployer: org.jboss.deployment.XSLSubDeployer@19ee8a

status: null

state: FAILED

watch: file:/C:/jboss-4.2.1.GA/server/default/deploy/Oracle-ds.xml

altDD: null

lastDeployed: 1193192191906

lastModified: 1193192191906

mbeans:




21:16:33,156 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

21:16:33,171 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

21:16:33,171 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 11s:296ms

Thanks
Divya
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post the entire contents of your Oracle-ds.xml (remember to enclose the contents a code block, using the Code button below the message window). Also, which version of Java are you using with the server.
 
divya sharma
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using JBOss 4.2.0GA and my java version is 1.4. Here is my oracle-ds.xml code

"kda" is the name of the database.

Thanks!!
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am using JBOss 4.2.0GA and my java version is 1.4



Divya, JBoss4.2.x requires JDK5 (JBossVsJavaJDKVersionMatrix). See if changing the JDK version fixes this problem.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, a search on google for this exception shows that this might be because of empty lines/spaces before the

<?xml version="1.0" encoding="UTF-8"?>



This line should be the first line in your xml file. Make sure that you do not have any space or empty lines before this line.
 
divya sharma
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my system there is java5.0 therefor my can run jboss as per the requirment of jboss4.2 but in my application I am using java1.4 does it effect??

Thanks
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by divya sharma:
In my system there is java5.0 therefor my can run jboss as per the requirment of jboss4.2 but in my application I am using java1.4 does it effect??



You mean, the JAVA_HOME points to JDK5 but your application does not use any of Java5 features/syntax, right? That should be fine.

Did you look for what i mentioned in one of my earlier posts:

Originally posted by Jaikiran Pai:
Also, a search on google for this exception shows that this might be because of empty lines/spaces before the

<?xml version="1.0" encoding="UTF-8"?>

This line should be the first line in your xml file. Make sure that you do not have any space or empty lines before this line.

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jaikiran Pai:
[QB][/QB]




what jaikiran has said is working fine.

Thanks Jai
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic