which jars did you put?
i've a only ear that contains both ejb and web (struts) application.
tomorrow i'll try to do something (if i've some time, is easter) and
put the exceptions.
thanks

2009/4/11 Ignacio de Córdoba <icord...@skios.es>:
>
> Hi, I use JDeveloper but I just ad jars in the standard tiles and struts
> distributions without any changes. Anyway, what is your exception when
> trying to start the web-app? Maybe you should start there. Look at the
> missing class and ensure it is in a jar inside WEB-INF/lib. Also, how do you
> deploy EJBs? I use a different .ear file so to isolate layers (model <->
> view)
>
>
> Stefano Tranquillini wrote:
>>
>> Hi,
>> Have you got a list of the libraries or a blank-simply application
>> that contains struts2 tiles2 and ejb3 extension.
>>
>> i usually use netbeans, do you put the library inside web-inf/lib and
>> put these libraries into the project? nothing else?
>>
>> thanks.
>>
>> 2009/4/10 Ignacio de Córdoba <icord...@skios.es>:
>>>
>>> Hi there,
>>> I am using struts2 and tiles2 with JBoss 4 without any problems. I use no
>>> other frameworks or libraries. I got the EJB3 extension for struts2
>>> (which
>>> does JNDI call internally as an interceptor) and even added a new
>>> functionality (it only locates EJBs in current class but coder forgot
>>> that
>>> there can be a parent class which also has de Annotation().
>>> Where are you putting those struts jars so that jboss webapps don't find
>>> them? I put them in WEB-INF/lib without any problems.
>>>
>>> Regards,
>>> Ignacio
>>>
>>>
>>> Stefano Tranquillini wrote:
>>>>
>>>> I'm not familiar with jsf and other stuff.
>>>> first taken struts1 I'll try to use struts2 tiles2 jboss, struts2 has
>>>> a plugin for the ejb3 (i think is an interceptor) but tiles2 and
>>>> struts2 doesn't work with jboss (struts2 without tiles2 works, with
>>>> tiles2 doesn't), jboss can't find the struts tags (it might be a bug,
>>>> some one knows something about these stuff?).
>>>> so i'm came back to the previous version 1.X (i don't remember exactly
>>>> the number).
>>>>
>>>> so, in my case the simpler way is to use the jndi given the context
>>>> and recall the remote object. is not so bad as solution but using
>>>> ejb3.0 i loose something like the auto-jndi.
>>>>
>>>> well, i take a look about google guice anyway.
>>>>
>>>> thanks folks
>>>>
>>>>
>>>>
>>>> On Fri, Apr 10, 2009 at 17:14, Struts Two <struts...@yahoo.ca> wrote:
>>>>>
>>>>> @EJB annotation can be used only with container managed components like
>>>>> Servlet and JSF beans. Other than that either you have to use spring or
>>>>> right a customized EJB3 interceptor for struts 2 or modify request
>>>>> processing command chains for struts 1.3 to inject EJB 3 beans.
>>>>>
>>>>> Keep in mind you can also use Google Guice to do that as well [if you
>>>>> are
>>>>> not using any other spring goodies, Guice should very easy to set up]
>>>>>
>>>>>
>>>>>
>>>>> --- On Fri, 4/10/09, Stefano Tranquillini
>>>>> <stefano.tranquill...@gmail.com> wrote:
>>>>>
>>>>>> From: Stefano Tranquillini <stefano.tranquill...@gmail.com>
>>>>>> Subject: Re: Struts and EJB 3
>>>>>> To: "Struts Users Mailing List" <user@struts.apache.org>
>>>>>> Received: Friday, April 10, 2009, 2:39 PM
>>>>>> Yes, i'll try to use, but the ejb
>>>>>> with annotation gives me a
>>>>>> nullpointer exception.
>>>>>> i've to call the ejb using the old style jndi call.
>>>>>>
>>>>>> On Fri, Apr 10, 2009 at 15:25, Lukasz Lenart
>>>>>> <lukasz.len...@googlemail.com>
>>>>>> wrote:
>>>>>> > 2009/4/10 Stefano <elste...@gmail.com>:
>>>>>> >> in struts1 what's the way to use EJB3.0?
>>>>>> >>
>>>>>> >> there's no possibility to use annotation?
>>>>>> >> i need to use classical jndi? why?
>>>>>> >
>>>>>> > You can use annotations with Struts1, is not a problem
>>>>>> with framework
>>>>>> > but with Java platform you're using. THe best solution
>>>>>> is to use
>>>>>> > Spring to connect Struts1 Actions with EJB3 beans.
>>>>>> >
>>>>>> >
>>>>>> > Regards
>>>>>> > --
>>>>>> > Lukasz
>>>>>> > http://www.lenart.org.pl/
>>>>>> >
>>>>>> >
>>>>>> ---------------------------------------------------------------------
>>>>>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>>>>> > For additional commands, e-mail: user-h...@struts.apache.org
>>>>>> >
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Stefano
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>>>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>      __________________________________________________________________
>>>>> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark
>>>>> your
>>>>> favourite sites. Download it now
>>>>> http://ca.toolbar.yahoo.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Stefano
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Struts-and-EJB-3-tp22368697p22993709.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Stefano
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Struts-and-EJB-3-tp22368697p23002249.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to