Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using DDConvert for the java Tutorial

1 view
Skip to first unread message

alta...@my-deja.com

unread,
Jan 25, 2001, 11:34:30 AM1/25/01
to
Hi
I am trying to get through the EJB tutorial in the java site.

http://developer.java.sun.com/developer/onlineTraining/Beans/EJBTutorial/step5.html

They are still using the deployment files, so I tried using their sample
file with DDConvert to get the xml files.
I got these errors:
**************************************
$java weblogic.ejb20.utils.DDConverter -d dest DeploymentDescriptor.txt
DDConverter starting at Jan 25, 2001 11:25:18 AM...
Source file list:
DeploymentDescriptor.txt
Output directory: dest
Converting DeploymentDescriptor.txt ...
WARNING: Required tag <ejb-name> was set arbitrarily to the JNDI name
for the bean: demo.DemoHome. You should manually change the tag.
ERROR: There was an error reading "DeploymentDescriptor.txt". The input
file has to be a WLS 4.5 deployment descriptor text file or WLS 5.1
jar file.

The exception received was: java.lang.NumberFormatException: null at
java.lang.Integer.parseInt(Integer.java:382) at
java.lang.Integer.<init>(Integer.java:549) at
weblogic.ejb20.utils.ddconverter.DDConverter_10.doCacheProperties(DDConverter
_10.java:356) at
weblogic.ejb20.utils.ddconverter.DDConverter_10.doCommon(DDConverter_10.java:
257) at
weblogic.ejb20.utils.ddconverter.DDConverter_10.createNewDD(DDConverter_10.ja
va:228) at
weblogic.ejb20.utils.ddconverter.DDConverter_10.invokeDDC10(DDConverter_10.ja
va:152) at
weblogic.ejb20.utils.ddconverter.DDConverter_1020.loadDD(DDConverter_1020.jav
a:178) at
weblogic.ejb20.utils.ddconverter.DDConverter_1020.loadDD(DDConverter_1020.jav
a:188) at
weblogic.ejb20.utils.ddconverter.DDConverter_1020.convert(DDConverter_1020.ja
va:68) at weblogic.ejb20.utils.DDConverter.main(DDConverter.java:149)

DDConverter failed due to an unexpected Exception. The stack trace is:
java.lang.NullPointerException at
weblogic.ejb20.utils.ddconverter.DDConverter_1020.convert(DDConverter_1020.ja
va:76) at weblogic.ejb20.utils.DDConverter.main(DDConverter.java:149)

DDConverter was unable to convert all the input beans due to conversion
errors. See "ddconverter.log" for details.
***************************

this is the descriptor file I am using:

##############################


SessionDescriptor
; This file must start with SessionDescriptor or
; EntityDescriptor
; Indicate the name which the bean will be bound
; into the JNDI name as
beanHomeName demo.DemoHome
; The enterprise Java Bean class (see step 4)
enterpriseBeanClassName ejb.demo.DemoBean
homeInterfaceClassName ejb.demo.DemoHome
; The home interface implemented by a class
; generated by the container provided tools
; see step 3
remoteInterfaceClassName ejb.demo.Demo
; See step 2
isReentrant false
; Always false for session beans
stateManagementType STATELESS_SESSION
; Either STATELESS_SESSION or STATEFUL_SESSION.
; DemoBean is a stateless session bean
sessionTimeout 5
; seconds
(controlDescriptors
; This section decides the run-time properties when
; a method is called. The DEFAULT sub-section applies
; to all methods, but can be overridden on a per-method
; basis, similar to the "accessControlEntries" above.
(DEFAULT
isolationLevel TRANSACTION_SERIALIZABLE
transactionAttribute TX_REQUIRED
runAsMode CLIENT_IDENTITY
) )
; end isolationLevel
)
)
; end controlDescriptors
(environmentProperties
maxBeansInFreePool 100
)
; end environmentProperties
)
; end SessionDescriptor
#######################################
Any Ideas on getting it to work?
Is there a third party tool to generate these xml files?
Thanks

Mike


Sent via Deja.com
http://www.deja.com/

alta...@my-deja.com

unread,
Jan 25, 2001, 11:58:08 AM1/25/01
to
I got It..
these lines are missing in the environmentProperties section
maxBeansInCache 100
idleTimeoutSeconds 60

anyone knows why it will not work without it?

Mike


In article <94pkim$kpg$1...@nnrp1.deja.com>,

0 new messages