Hi!
Alexander Radwanski wrote:
> I found some problems with ejb-jar.xml
> 1.
> <env-entry>
> <env-entry-name>jdbcURL</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>jdbc:xxx://yyy?user=aaa&pass=bbb</env-entry-value>
> </env-entry>
>
> the deployer says:
> [Auto deploy]: org.jboss.deployment.J2eeDeploymentException:
> No valid deployment descriptor was found within this URL.....
>
> The problem is in the value: "jdbc:xxx://yyy?user=aaa&pass=bbb" -> when I
> remove the "&" there everything works ok. Is "&" forbidden in the deployment
> descriptor? Or bug?
It is forbidden since it is XML. Use & instead. See XML specs for
detail. You could use a CDATA section as well I think.
> 2.
> <env-entry>
> <env-entry-name>xxx</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value></env-entry-value>
> </env-entry>
>
> here I get null pointer exc. because value is empty. But in the 1.1 spec.
> you don't need to provide a value (optional entry in DTD).
>
> Any solution?
Why do you want a null environment entry?
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]