Problem deploying .war file for tomcat [message #98962] |
Sat, 19 July 2008 08:27 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: daniel.xxx.de
Hi,
I have a problem creating the .war file for the tomcat server, although I
followed the instructions from the online tutorial. (Thanks Elias!)
First, I realized that the content of my build directory is different than
in the tutorial. (also, my PDE Export seems to run much shorter as in the
tutorial) The eclipse directory contains only a configuration directory
and a launch.ini-file. The features and plugin directories are missing.
When I run the application on the tomcat server I get the following error
message:
javax.servlet.ServletException: Servlet.init() for servlet
equinoxbridgeservlet threw exception
...
root cause
java.lang.RuntimeException: Could not find framework
...
Does anybody know what went wrong? When I start the application in eclipse
it runs fine.
Thanks in advance for your help,
Regards,
Daniel
|
|
|
Re: Problem deploying .war file for tomcat [message #98978 is a reply to message #98962] |
Sat, 19 July 2008 08:59 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: sarek.nurfuerspam.de
Hi Daniel,
you might want to have a look at the thread called "Problems building a
war file of my RAP application" in this group. I was started on
2008-04-19 and deals with the same problem I think.
A short solution might be to exclude the javax.servlet bridge, which was
included in Elias' tutorial. A short description of how I solved the
problem can be found here:
http://java.blog.competent-results.de/2008/04/build-war-file -for-deployment.html
HTH
Christian
Daniel schrieb:
> Hi,
>
> I have a problem creating the .war file for the tomcat server, although
> I followed the instructions from the online tutorial. (Thanks Elias!)
> First, I realized that the content of my build directory is different
> than in the tutorial. (also, my PDE Export seems to run much shorter as
> in the tutorial) The eclipse directory contains only a configuration
> directory and a launch.ini-file. The features and plugin directories are
> missing.
>
> When I run the application on the tomcat server I get the following
> error message:
> javax.servlet.ServletException: Servlet.init() for servlet
> equinoxbridgeservlet threw exception
> ..
>
> root cause
> java.lang.RuntimeException: Could not find framework
> ..
>
> Does anybody know what went wrong? When I start the application in
> eclipse it runs fine.
> Thanks in advance for your help,
>
> Regards,
>
> Daniel
>
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
|
|
|
Re: Problem deploying .war file for tomcat [message #99008 is a reply to message #98978] |
Sun, 20 July 2008 08:45 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: daniel.xxx.de
Hi Christian,
thanks for your reply. If I understood you correctly you suggested to
remove the javax.servlet 2_4 project from my workspace. I've done that but
there hasn't changed anything. The PDE Export is still running very short
and I am missing the plugins and features directory. Also: My file is only
21 kb, I guess that's just the consequence of the missing plugins...
Do you have any further ideas what might be the problem?
Thanks in advance!!
Regards,
Daniel
|
|
|
Re: Problem deploying .war file for tomcat [message #99023 is a reply to message #99008] |
Sun, 20 July 2008 09:54 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: s8424488.mail.inf.tu-dresden.de
Hi Daniel,
I am also trying to build a war file at the moment and I encountered
similiar problems.
Take a look at your "feature.xml" file if there are warning signs in the
plugin page. In my case those warnings were the reason that nothing was
being built. I updated to the latest target platform [1] -- now those
warnings disappeared and the complete build is running.
But now I am faced with the next problem: When I deploy my war file to
Tomcat (I am using 5.5.26) and try to access the RAP demo application, I
get 404 errors. I enabled the "enableFrameworkControls" parameter and when
I point my browser to <http://localhost:8080/demo/sp_test> I see a
"Servlet delegate not registered." message. Any help would be appreciated.
Bye, Philipp.
[1] http://www.eclipse.org/rap/downloads/
Daniel Popp wrote:
> Hi Christian,
> thanks for your reply. If I understood you correctly you suggested to
> remove the javax.servlet 2_4 project from my workspace. I've done that but
> there hasn't changed anything. The PDE Export is still running very short
> and I am missing the plugins and features directory. Also: My file is only
> 21 kb, I guess that's just the consequence of the missing plugins...
> Do you have any further ideas what might be the problem?
> Thanks in advance!!
> Regards,
> Daniel
|
|
|
Re: Problem deploying .war file for tomcat [message #99038 is a reply to message #99023] |
Sun, 20 July 2008 10:15 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: s8424488.mail.inf.tu-dresden.de
> But now I am faced with the next problem: When I deploy my war file to
> Tomcat (I am using 5.5.26) and try to access the RAP demo application, I
> get 404 errors. I enabled the "enableFrameworkControls" parameter and when
> I point my browser to <http://localhost:8080/demo/sp_test> I see a
> "Servlet delegate not registered." message. Any help would be appreciated.
I got it working now!
After running ConfigIniCreator.java in the feature project (you have to
adjust the path to your build directory, look at the comments) and
modifying the config.ini file accordingly to the output, my example war
file is working!
Hope this helps,
Philipp.
|
|
|
Re: Problem deploying .war file for tomcat [message #99142 is a reply to message #99008] |
Mon, 21 July 2008 21:16 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: evolanakis.innoopract.com
Hi Daniel,
just guessing, but did you check the option "Run in the same JRE as the
workspace" in the JRE Tab of the Ant Task's launch configuration?
If that doesn't help, it might be helpful post the console output and
your webappBuilder.xml here. It is hard to guess what is going wrong
otherwise :-).
Rergards,
Elias.
Daniel Popp wrote:
> Hi Christian,
>
> thanks for your reply. If I understood you correctly you suggested to
> remove the javax.servlet 2_4 project from my workspace. I've done that
> but there hasn't changed anything. The PDE Export is still running very
> short and I am missing the plugins and features directory. Also: My file
> is only 21 kb, I guess that's just the consequence of the missing
> plugins...
>
> Do you have any further ideas what might be the problem?
>
> Thanks in advance!!
>
> Regards,
>
> Daniel
>
--
---
Elias Volanakis
Innoopract, Inc.
http://www.innoopract.com
|
|
|
Re: Problem deploying .war file for tomcat [message #100289 is a reply to message #99142] |
Mon, 28 July 2008 08:27 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: daniel.xxx.de
Hi Elias,
first of all: I followed the recommendation from Philipp to upgrade to
Eclipse 3.4. I think, I am getting closer, ;-). The pde export did run
much longer and I have all the necessary directories.
But when I deploy it to Tomcat it still doesn't work. Now the output is:
HTTP Status 404 - BridgeServlet: /ats/rap
------------------------------------------------------------ --------------------
type Status report
message BridgeServlet: /ats/rap
description The requested resource (BridgeServlet: /ats/rap) is not
available.
I know that error message was described in the newsgroup earlier, but I
couldn't find anything that would help me.
I will also post the webappBuilder:
<?xml version="1.0"?>
<project name="project" default="default">
<description>
Example of a webapplication build script for RAP applications that use
the equinox servlet bridge to run in a servlet container.
</description>
<!-- =================================
target: init
================================= -->
<target name="init">
<property name="proj.dir" value="${basedir}/.." />
<!--
This script assumes that the servlet bridge project is available
in the current workspace. Note: The location is hardcoded and must
be
adjusted to your needs.
-->
<property name="servletbridge.dir"
value="C:/Dokumente und Einstellungen/Daniel
Popp/workspace/org.eclipse.equinox.servletbridge" />
<!--
On windows be cautious about long file names for ${build.dir}
These long path problems were resolved in JRE 1.5.0_08
-->
<property name="build.dir" value="${proj.dir}/build" />
<property name="templates.dir" value="${proj.dir}/templates" />
<property name="webapp.name" value="demo" />
<property name="features" value="com.ats.ui.demo.feature" />
<!--
If you are using this script in a head-less build define the following
properties:
"ignore.pdeExportFeatures" (available only in the IDE - do the feature
export with PDE Build)
"ignore.servletbridge.jar" (if you're compiling or extracting the jar
yourself)
-->
</target>
<!-- =================================
target: prepare
================================= -->
<target name="prepare" depends="init">
<delete dir="${build.dir}/${webapp.name}" />
<mkdir dir="${build.dir}/${webapp.name}/WEB-INF/lib" />
</target>
<!-- =================================
target: default
================================= -->
<target name="default"
depends="copyResources, servletbridge.jar, pdeExportFeatures" />
<!-- =================================
target: copyResources
================================= -->
<target name="copyResources" depends="prepare">
<copy todir="${build.dir}/${webapp.name}">
<fileset dir="${templates.dir}" />
</copy>
</target>
<!-- =================================
target: servletbridge.jar
================================= -->
<target name="servletbridge.jar"
depends="prepare"
unless="ignore.servletbridge.jar">
<antcall target="jar-servletbridge.jar" />
<antcall target="copy-servletbridge.jar" />
</target>
<!-- =================================
target: copy-servletbridge.jar
================================= -->
<target name="copy-servletbridge.jar" if="servletbridge.jar-present">
<copy todir="${build.dir}/${webapp.name}/WEB-INF/lib">
<fileset file="${servletbridge.dir}/servletbridge.jar" />
</copy>
</target>
<!-- =================================
target: jar-servletbridge.jar
================================= -->
<target name="jar-servletbridge.jar" unless="servletbridge.jar-present">
<jar
destfile="${build.dir}/${webapp.name}/WEB-INF/lib/servletbridge.jar ">
<fileset dir="${servletbridge.dir}/bin">
<include name="**/*.class" />
</fileset>
</jar>
</target>
<!-- =================================
target: pdeExportFeatures
================================= -->
<target name="pdeExportFeatures"
depends="prepare"
unless="ignore.pdeExportFeatures">
<!--
Features get built asynchronously but this approach is sometimes
convenient.
So that the pde.exportFeatures task is available in the IDE select
"Run in the same JRE as the workspace" from the JRE tab from "Run Ant.."
-->
<pde.exportFeatures features="${features}"
destination="${build.dir}/${webapp.name}/WEB-INF/eclipse"
exportType="directory"
useJARFormat="false"
exportSource="false" />
</target>
</project>
Hope, this helps and doesn't make my post too ugly, ;-).
Also: I don't have the console of tomcat.
Any help is appreciated, thanks in advance!!
Regards,
Daniel
|
|
|
Re: Problem deploying .war file for tomcat [message #100531 is a reply to message #100289] |
Tue, 29 July 2008 08:38 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
did you check the equinox log files for additional stacktraces? If your
equinox instance started properly the log file should be located under
<path to tomcat
installation>\work\Catalina\localhost\<your-app-name>\eclipse\workspace\
..metadata
otherwise there may be a log file in
<path to tomcat
installation>\work\Catalina\localhost\<your-app-name>\eclipse\configurat
ion
If you want to show the console for debugging reasons reactivate the
commandline init-parameter that is commented out in the default web.xml.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Daniel Popp [mailto:daniel@xxx.de]
Bereitgestellt: Montag, 28. Juli 2008 10:27
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Problem deploying .war file for tomcat
Betreff: Re: Problem deploying .war file for tomcat
Hi Elias,
first of all: I followed the recommendation from Philipp to upgrade to
Eclipse 3.4. I think, I am getting closer, ;-). The pde export did run
much longer and I have all the necessary directories.
But when I deploy it to Tomcat it still doesn't work. Now the output is:
HTTP Status 404 - BridgeServlet: /ats/rap
------------------------------------------------------------ ------------
--------
type Status report
message BridgeServlet: /ats/rap
description The requested resource (BridgeServlet: /ats/rap) is not
available.
I know that error message was described in the newsgroup earlier, but I
couldn't find anything that would help me.
I will also post the webappBuilder:
<?xml version="1.0"?>
<project name="project" default="default">
<description>
Example of a webapplication build script for RAP applications that
use
the equinox servlet bridge to run in a servlet container.
</description>
<!-- =================================
target: init
================================= -->
<target name="init">
<property name="proj.dir" value="${basedir}/.." />
<!--
This script assumes that the servlet bridge project is available
in the current workspace. Note: The location is hardcoded and
must
be
adjusted to your needs.
-->
<property name="servletbridge.dir"
value="C:/Dokumente und Einstellungen/Daniel
Popp/workspace/org.eclipse.equinox.servletbridge" />
<!--
On windows be cautious about long file names for
${build.dir}
These long path problems were resolved in JRE 1.5.0_08
-->
<property name="build.dir" value="${proj.dir}/build" />
<property name="templates.dir" value="${proj.dir}/templates" />
<property name="webapp.name" value="demo" />
<property name="features" value="com.ats.ui.demo.feature" />
<!--
If you are using this script in a head-less build define
the following
properties:
"ignore.pdeExportFeatures" (available only in the IDE -
do the feature
export with PDE Build)
"ignore.servletbridge.jar" (if you're compiling or
extracting the jar
yourself)
-->
</target>
<!-- =================================
target: prepare
================================= -->
<target name="prepare" depends="init">
<delete dir="${build.dir}/${webapp.name}" />
<mkdir dir="${build.dir}/${webapp.name}/WEB-INF/lib" />
</target>
<!-- =================================
target: default
================================= -->
<target name="default"
depends="copyResources, servletbridge.jar, pdeExportFeatures"
/>
<!-- =================================
target: copyResources
================================= -->
<target name="copyResources" depends="prepare">
<copy todir="${build.dir}/${webapp.name}">
<fileset dir="${templates.dir}" />
</copy>
</target>
<!-- =================================
target: servletbridge.jar
================================= -->
<target name="servletbridge.jar"
depends="prepare"
unless="ignore.servletbridge.jar">
<antcall target="jar-servletbridge.jar" />
<antcall target="copy-servletbridge.jar" />
</target>
<!-- =================================
target: copy-servletbridge.jar
================================= -->
<target name="copy-servletbridge.jar" if="servletbridge.jar-present">
<copy todir="${build.dir}/${webapp.name}/WEB-INF/lib">
<fileset file="${servletbridge.dir}/servletbridge.jar" />
</copy>
</target>
<!-- =================================
target: jar-servletbridge.jar
================================= -->
<target name="jar-servletbridge.jar"
unless="servletbridge.jar-present">
<jar
destfile="${build.dir}/${webapp.name}/WEB-INF/lib/servletbridge.jar ">
<fileset dir="${servletbridge.dir}/bin">
<include name="**/*.class" />
</fileset>
</jar>
</target>
<!-- =================================
target: pdeExportFeatures
================================= -->
<target name="pdeExportFeatures"
depends="prepare"
unless="ignore.pdeExportFeatures">
<!--
Features get built asynchronously but this approach is
sometimes
convenient.
So that the pde.exportFeatures task is available in the
IDE select
"Run in the same JRE as the workspace" from the JRE tab
from "Run Ant.."
-->
<pde.exportFeatures features="${features}"
destination="${build.dir}/${webapp.name}/WEB-INF/eclipse"
exportType="directory"
useJARFormat="false"
exportSource="false" />
</target>
</project>
Hope, this helps and doesn't make my post too ugly, ;-).
Also: I don't have the console of tomcat.
Any help is appreciated, thanks in advance!!
Regards,
Daniel
|
|
|
Re: Problem deploying .war file for tomcat [message #100799 is a reply to message #100531] |
Tue, 29 July 2008 15:13 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: daniel.xxx.de
Hi Frank,
thanks for your quick reply. I tried to get the same error message and
looked up the detailed error file. I found something about: could not find
org.eclipse.update.configurator@start...
So I included the plugin into my project and get now a different error
message:
java.lang.IllegalArgumentException: An entry point named 'default' does
not exist.
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:77)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:230)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
java.lang.Thread.run(Unknown Source)
In eclipse the application works fine.
About the console: You were right, the console command is commented out.
Even when I correct this, I still don't have access to the console.
Thanks in advance,
Daniel
|
|
|
Re: Problem deploying .war file for tomcat [message #100810 is a reply to message #100799] |
Tue, 29 July 2008 15:32 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
I don't know about your installation environment. What you can do is to
add a port number after the -console parameter (I think the syntax is
-console: 1234). Doing so it's possible to have an remote access to the
console via telnet...
Common problems with missing entry-point are, that the plugin.xml of
your bundle wasn't added to the build.properties file or the java
version with which you build your bundle is newer than that of the
runtime.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Daniel Popp [mailto:daniel@xxx.de]
Bereitgestellt: Dienstag, 29. Juli 2008 17:13
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Problem deploying .war file for tomcat
Betreff: Re: Problem deploying .war file for tomcat
Hi Frank,
thanks for your quick reply. I tried to get the same error message and
looked up the detailed error file. I found something about: could not
find
org.eclipse.update.configurator@start...
So I included the plugin into my project and get now a different error
message:
java.lang.IllegalArgumentException: An entry point named 'default' does
not exist.
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPoint
Manager.java:77)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.ja
va:230)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(R
WTLifeCycle.java:116)
java.lang.Thread.run(Unknown Source)
In eclipse the application works fine.
About the console: You were right, the console command is commented out.
Even when I correct this, I still don't have access to the console.
Thanks in advance,
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.04087 seconds