Hi,
adding it to the generated web.xml is OK, but not the best solution,
since you have to do it again next build.

Instead, add the "link" attribute to the @web:ejb-local-ref definition
in the struts action classes of the sample. This field is usually
optional but JBoss requires it for some reason (I had the same problem).

But these ejb-local-ref declarations are currently unused anyway, since
the lookup for the home interface is done via the Util classes (at least
in my samples which might be out of date).

Leander


Am Die, 2002-07-30 um 03.17 schrieb [EMAIL PROTECTED]:
> 
> Thanks for the info on the datasource mapping! I have managed to get bit
> further but have run into some more problems:
> 
> 
> Problem 1:
> ----------
> Now when I try to deploy the generated code there is an exception like
> this:
> 
> org.jboss.deployment.DeploymentException: ejb-local-ref:
> ejb/Reservation, target not found, add valid ejb-link; - nested
> throwable: (javax.naming.NamingException: ejb-local-ref:
> ejb/Reservation, target not found, add valid ejb-link)
> 
> Should middlegen/xdoclet be generating an ejb-link tag???
> 
> 
> Problem 2
> ---------
> I tried manually adding <ejb-link>Reservation</ejb-link> to the web.xml
> file (was this the correct thing to do?). I also needed to add links in
> web.xml for Flight and Person.
> 
> This got me to a stage where I could deploy the airline.ear
> successfully. 
> 
> Now when I browse http://localhost:8080/struts and click on one of the
> links (e.g."Find person") I get the following error:
> 
> HTTP ERROR: 500 /struts/personForm.jsp(22,0) Attribute onSubmit invalid
> according to the specified TLD
> RequestURI=/airline/struts/person.do
> 
> Any ideas what the problem is?
> 
> 
> Question
> --------
> As an aside, can anyone explain what the JDO 1.0 and CMP 2.0 tabs are
> for in the middlegen GUI ... they are always empty for me ...
> 
> 
> 
> Any help very much appreciated!
> 
> cheers
> 
> --
> Glenn
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code=31
> _______________________________________________
> middlegen-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
-- 
M.-Leander Reimer
Dipl.-Inf. (FH)

Techdivision
Kunstm�hlstr. 17
83022 Rosenheim

Fon:    (08031) 356 38 32
Fax:    (08031) 356 38 48 
Mail:   [EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to