[Installation, Configuration & Deployment] - Problem (almost) solved
by kevinstembridge
After a bit more digging around, I found this page in the JBoss wiki:
http://wiki.jboss.org/wiki/Wiki.jsp?page=XMLEntitySchemaResolution
So JBoss versions 4.0.3 and above have an MBean that we can use to configure an entity resolver. However, when I created a service descriptor with the following content....
| <server>
| <mbean code="org.jboss.services.xml.JBossEntityResolverMgr" name="jboss.xml:service=JBossEntityResolverMgr">
| <attribute name="WarnOnNonFileURLs">true</attribute>
| <attribute name="EntityMap">
| -//SPRING//DTD BEAN//EN=spring-beans.dtd
| </attribute>
| </mbean>
| </server>
|
|
... after starting JBoss, I still get the error where the server is trying to connect to the web to retrieve the spring-beans.dtd and when I look at the JMX console page for the JBossEntityResolverMgr it shows that the above EntityMap attribute of the MBean has been parsed like so:
-//SPRING//DTD=BEAN//EN=spring-beans.dtd
Note that the space in the PublicId has been converted to an equals sign. I've tried using quotes around the publicId and also around the whole string but this just causes even more problems.
Can anybody give me some pointers on what format to use so the the space is correctly interpreted? Failing that, does anybody know what class is responsible for parsing the service descriptors?
Cheers,
Kevin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969753#3969753
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969753
19 years, 7 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: JBoss 4.0.3 CMP Oracle BLOBs
by nidget
"pflapf" wrote : I face a problem with a BLOB field in Oracle 8.1.7. Maybe this has been asked a thousand times, but I can't find a solution / question via "search". ;-)
|
| I want to use Entity Beans to access this field via CMP.
I have the same problem with CLOB, CMP entity beans and Oracle 9i for an application we're migrating from Weblogic to JBoss 4.0.3SP1.
I've found this come from the fact that, until Oracle 10g, Oracle doesn't support the standard interfaces java.sql.Clob and java.sql.Blob. If you were not doing it in a CMP entity bean, you would receive an "unsupported feature" exception when you try to access your LOBs from these interfaces. To solve that, you would then have to cast your java.sql.Clob into oracle.sql.CLOB or java.sql.Blob into oracle.sql.BLOB respectively and then you would have to call proprietary Oracle methods to access it.
Weblogic had special tags in the deployment descriptors for OracleClob and OracleBlob in CMP entity beans. I can't manage to find the same in JBoss. If ever I can find it, I'll keep you informed.
Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969752#3969752
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969752
19 years, 7 months
[EJB 3.0] - Cannot deploy EJB because ...-ds.xml file
by gaeoepag
Hello,
I'm trying to deploy an EJB 3 deployment file, and I'm getting
the following error:
15:09:02,956 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.4.GA/server/default/deploy/testejb301-ds.xml
org.jboss.deployment.DeploymentException: Could not parse dd; - nested throwable: (org.xml.sax.SAXParseException: Content is not allowed in prolog.)
I cannot find anything wrong!
Here the testejb301-ds.xml file,
but it is not complete because
the browser filters out some tags.
xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>jdbc/testejb301</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/testejb301</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
root
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
Thanks and Best Regards!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969745#3969745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969745
19 years, 7 months