wood burning stoves
The moose likes EJB and other Java EE Technologies and the fly likes Invalid character ':' in value part of property (JBoss-ds.xml) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Invalid character Watch "Invalid character New topic

Invalid character ':' in value part of property (JBoss-ds.xml)

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 245
I use netbean 5.5.1 and jboss 4.2.2, when I deploy my ejb, the following error occur:

Could not create deployment: file:/D:/jboss-4.2.2.GA/server/default/deploy/jboss-ds.xml
org.jboss.deployment.DeploymentException: Invalid character ':' in value part of property; - nested throwable: (javax.management.MalformedObjectNameException: Invalid character ':' in value part of property)

my jboss-ds.xml file is
<?xml version="1.0" encoding="UTF-8"?>

my persistence.xml file is
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" 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">
<persistence-unit name="EntityApp-ejbPU" transaction-type="JTA">
<property name="hibernate.hbm2ddl.auto" value="update"/>

what wrong in this file?
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


Welcome to JavaRanch

Which version of Java are you using? When JBoss, starts it prints out the Java version on the console. For me it shows:

What does it show for you? If you are using Java 6, can you switch to Java 5 and see if it works.

[My Blog] [JavaRanch Journal]
Tom Pau

Joined: Jan 14, 2009
Posts: 1
As the exception javax.management.MalformedObjectNameException suggests the error isn't related to the persistence or datasource file.
Check for something like

EntityManager entityManager;

in your code and correct the value of the name property adequately.
I agree. Here's the link: http://aspose.com/file-tools
subject: Invalid character ':' in value part of property (JBoss-ds.xml)
It's not a secret anymore!