This section describes known Deploytool issues and associated solutions.
sun-application-client.xml
sun-ejb-jar.xml
sun-web.xml
A JMS destination resource specified as the JNDI Name in the Message Destinations tab may not be saved to the Sun descriptor. After specifying the Destination Name (for example, PhysicalQueue, a physical destination created with create-jmsdest) and pressing Enter, the Destination Name appears under Display Name, and the client or bean name appears in the Producers list. After typing “jms/Queue” in the Sun-specific JNDI Name text field and pressing Enter, the application does not show as “(changed)” in the title bar, and an error is written to ~/.deploytool/logfile. When saving the application and going back to the tab, the JNDI Name field is blank again. When viewing the Sun descriptor using Tools\>Descriptor Viewer\>Application Server Descriptor, the <message-destination\> element within the <jndi-name\> element has not been created.
The problem is that during a deploytool session, the first time a value is entered for a Message Destination JNDI Name, the value appears correct in the Sun descriptor but an IllegalArgumentException is thrown by org.netbeans.modules.schema2beans.BeanProp.setElement(). Subsequent changes or additions of a Message Destination JNDI Name in the same application or other applications will not be saved to the Sun descriptor.
To edit an existing JNDI Name of a Message Destination:
Delete the existing JNDI Name by leaving the JNDI Name text field blank and pressing Enter.
Type the new JNDI Name and press Enter.
Review the Sun descriptor by clicking Tools\>Descriptor Viewer\>Application Server Descriptor.
Save the application by clicking File\>Save.
If the JNDI Name is not saved to the Sun descriptor:
Restart deploytool.
On the Message Destinations tab, select a Message Destination or add a new Message Destination.
Enter the JNDI Name for the Message Destination in the Sun-specific JNDI Name text field, and then press Enter.
Review the Sun descriptor by clicking Tools\>Descriptor Viewer\>Application Server Descriptor.
Save the application by clicking File\>Save.
Repeat the above steps each time a value needs to be entered in the Sun-specific JNDI Name on the Message Destinations tab, unless a value is being entered in the JNDI Name text field for the first time during a deploytool session.
When you create an Enterprise Bean in deploytool, and then navigate to the Transaction or Security tab for the bean node, the “Local Home” and “Remote Home” labels are incorrectly translated as “Local Installation Directory” and “Remote Installation Directory.”