You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Angel Tomala-Reyes <ae...@nyc.rr.com> on 2008/09/01 17:18:30 UTC
Tomcat and or Geronimo required libraries
Hi.
I am looking a the customer-dojo sample in trunk and I am interested
in using it outside of a host-embedded environment. I am new to maven
and how it builds a project into specific packaging. I am building an
application that uses very similar technologies as the ones used in
this example; However, I need to deploy on Geronimo or Tomcat and for
the life of me I am not able to figure-out what jars are needed for
which deployment. I modified the pom.xml such that it is it uses
tuscany-host-webapp and that it creates a war instead of a jar, but
tomcat throws errors when deploying the resulted war file. Could you
explain do I need to do to change the pom.xml to make a correct build
for tomcat or could you explain to me what jar files are needed to be
placed in the Web-INF/Lib directory of the war for this particular
example to work.
Angel
Re: Tomcat and or Geronimo required libraries
Posted by Luciano Resende <lu...@gmail.com>.
You should start by looking at the sample Ant suggested, but trying to
respond to your questions :
> how to figure out what jars are needed
You can use mvn dependency:copy-dependencies, this will generate a
directory inside target with all jars needed for a given project
> what changes are needed in pom.xml to make a correct build for tomcat
Not sure if it is that simple, but you need to start by changing the
package format to "war" inside the pom, then adding the right host
dependencies. I'd recommend comparing the pom with the one from the
helloworld-dojo-webapp as suggested by Ant. You should also check the
web.xml for the Tuscany servlet filter configuration needed.
Please let me know if these helps, if you are still having problems I
can try to send some diffs that shows customer app as a j2ee webapp.
Thanks
On Wed, Sep 3, 2008 at 11:42 PM, ant elder <an...@gmail.com> wrote:
>
>
> On Mon, Sep 1, 2008 at 4:18 PM, Angel Tomala-Reyes <ae...@nyc.rr.com>
> wrote:
>>
>> Hi.
>> I am looking a the customer-dojo sample in trunk and I am
>> interested in using it outside of a host-embedded environment. I am new to
>> maven and how it builds a project into specific packaging. I am building an
>> application that uses very similar technologies as the ones used in this
>> example; However, I need to deploy on Geronimo or Tomcat and for the life of
>> me I am not able to figure-out what jars are needed for which deployment. I
>> modified the pom.xml such that it is it uses tuscany-host-webapp and that it
>> creates a war instead of a jar, but tomcat throws errors when deploying the
>> resulted war file. Could you explain do I need to do to change the pom.xml
>> to make a correct build for tomcat or could you explain to me what jar files
>> are needed to be placed in the Web-INF/Lib directory of the war for this
>> particular example to work.
>>
>>
>> Angel
>
> There is also a helloworld-dojo-webapp which shows using jsonrpc and Dojo in
> a webapp which works on Tomcat, you may need to include a geronimo-web.xml
> plan to get it working on Geronimo, there's an example of that in the
> calcualtor-ws-sample
> at https://svn.apache.org/repos/asf/tuscany/java/sca/samples/calculator-ws-webapp/src/main/webapp/WEB-INF/geronimo-web.xml
> ...ant
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: Tomcat and or Geronimo required libraries
Posted by ant elder <an...@gmail.com>.
On Mon, Sep 1, 2008 at 4:18 PM, Angel Tomala-Reyes <ae...@nyc.rr.com>wrote:
> Hi.
> I am looking a the customer-dojo sample in trunk and I am interested
> in using it outside of a host-embedded environment. I am new to maven and
> how it builds a project into specific packaging. I am building an
> application that uses very similar technologies as the ones used in this
> example; However, I need to deploy on Geronimo or Tomcat and for the life of
> me I am not able to figure-out what jars are needed for which deployment. I
> modified the pom.xml such that it is it uses tuscany-host-webapp and that it
> creates a war instead of a jar, but tomcat throws errors when deploying the
> resulted war file. Could you explain do I need to do to change the pom.xml
> to make a correct build for tomcat or could you explain to me what jar files
> are needed to be placed in the Web-INF/Lib directory of the war for this
> particular example to work.
>
>
> Angel
>
There is also a helloworld-dojo-webapp which shows using jsonrpc and Dojo in
a webapp which works on Tomcat, you may need to include a geronimo-web.xml
plan to get it working on Geronimo, there's an example of that in the
calcualtor-ws-sample at
https://svn.apache.org/repos/asf/tuscany/java/sca/samples/calculator-ws-webapp/src/main/webapp/WEB-INF/geronimo-web.xml
...ant