embedded jetty VS Tomcat already installed

462 views
Skip to first unread message

gilles...@gmail.com

unread,
May 28, 2014, 10:33:36 AM5/28/14
to wisemappi...@googlegroups.com
Hello,

I understand that you are using an embedded jetty Web Application Server.
As I have got already an Apache Tomcat 7.x on my server, I don't wish to use another WAS.
Is there a way to achieve that ?

Thanks by advance.

GillesP

Paulo Veiga

unread,
May 29, 2014, 12:01:33 PM5/29/14
to wisemappi...@googlegroups.com
Hi Gilles,

WiseMapping is a regular web application. Just deploy it and it should work.

Regards
Paulo



--
You received this message because you are subscribed to the Google Groups "wisemapping-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wisemapping-sup...@googlegroups.com.
To post to this group, send email to wisemappi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wisemapping-support/3bc38a10-7345-430b-91ad-32b60c57bdc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
WiseMapping Founder
Paulo Gustavo Veiga

Gilles Poiret

unread,
May 30, 2014, 5:02:26 AM5/30/14
to wisemappi...@googlegroups.com
Thank you Paolo.
Just a deploiment (so : file copy), while your doc says to launch java -Xmx256 -Dorg.apache.jasper.compiler.disablejsr199=true -jar start.jar ?
But, Ok, I try.

Regards,
--
Gilles
You received this message because you are subscribed to a topic in the Google Groups "wisemapping-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wisemapping-support/6183KPaltLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wisemapping-sup...@googlegroups.com.

To post to this group, send email to wisemappi...@googlegroups.com.

gilles...@gmail.com

unread,
Jun 11, 2014, 4:32:05 PM6/11/14
to wisemappi...@googlegroups.com
Hello,

Well, I followed your proc, and it's working perfectly... but not as a "regular web application"
I have to launch a program : start.sh (so java7 -> jetty) ; I can't use Tomcat7, for instance.

On your features page it's written :
Tested on the following Web Application containers.
Tomcat 6 or higher / Jetty 7 or higher
How can I use my already installed Tomcat server ?


Thank you by advance.
--
GillesP

Paulo Veiga

unread,
Jun 11, 2014, 4:38:02 PM6/11/14
to wisemappi...@googlegroups.com
Hi Gilles.

Our production server is running in tomcat. What are the features that are not working  ?

Regards
Paulo


--
You received this message because you are subscribed to the Google Groups "wisemapping-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wisemapping-sup...@googlegroups.com.
To post to this group, send email to wisemappi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Gilles Poiret

unread,
Jun 11, 2014, 4:47:01 PM6/11/14
to wisemappi...@googlegroups.com
Well,

I'm using your proc. And your proc says to unzip your file, and  launch the cmd line "java -Xmx256m -Dorg.apache.jasper.compiler.disablejsr199=true -jar start.jar"

And that solution is not based on Tomcat server, but create a .. kind of embedded jetty web application server I guess.
The point is that I used to provide a WAR file to deploy a Tomcat application.
And such a file is not provided in your file wisemapping-v3.0.3.zip.

Did I miss something ?

GillesP
You received this message because you are subscribed to a topic in the Google Groups "wisemapping-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wisemapping-support/6183KPaltLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wisemapping-sup...@googlegroups.com.

To post to this group, send email to wisemappi...@googlegroups.com.

gilles...@gmail.com

unread,
Jun 16, 2014, 2:44:33 PM6/16/14
to wisemappi...@googlegroups.com, gilles...@gmail.com
OK.
After installing the Binaries package, I 've produced the .war file.
#jar -cvzf wisemapping.war ., from the folder just on the top of WEB-INF.
now, I included this app. on my tomcat 7, and it doesn"t work :

SEVERE: Error configuring application listener of class com.wisemapping.listener.UnlockOnExpireListener
java.lang.UnsupportedClassVersionError: com/wisemapping/listener/UnlockOnExpireListener : Unsupported major.minor version 51.0 (unable to load class com.wisemapping.listener.UnlockOnExpireListener)



When looking for this error, I find a lot of guys who say that it's a matter of java version.
Mine is (Debian 7.x):
#java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1~deb7u1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)


My question : As I'm using your binaries, must I use the same java version than you ? Which is it ?

Thank you by advance for your help.

--
GillesP

yoann....@gmail.com

unread,
Jun 23, 2014, 11:27:31 AM6/23/14
to wisemappi...@googlegroups.com
Hi,

I tried to use a tomcat as Gilles and I have some difficulties to run the wisemapping webapp too.

My way to do was a little different because I produced the war file directly from the source project (not the binary projet).
Moreover I installed a local mysql database and modify the app.properties to hange the datasource (hsql to mysql).

When I launh Tomcat, there isn't problem.

But when I try to access to the URL : http://localhost:8080/wisemapping, I get this error :
"org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:972)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:186)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)

It seems that the jstl lib aren't present.

I use a default Tomcat and there isn't jstl lib into the default "lib" repertory of the Tomcat.
The webapp wisemapping doesn't include this lib too (I didn't find it into the 'WEB-INF/lib' repertory).

I think when I used the embedded jetty from the binary source, it works because jetty inlude all the missing library. But I'm not sure.

Have you some clues about this problem ?

Regards,
Yoann.

Gilles Poiret

unread,
Jun 23, 2014, 1:30:30 PM6/23/14
to wisemappi...@googlegroups.com
Hi Yoann,

which version of Tomcat are you using ? Same question for java.
What about if you don't use mysql as backend (so : in default configuration)

Note that in the binary packages, I find the following :
~/wisemapping-v3.0.3/lib/jsp/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar

Regards,
--
Gilles

yoann....@gmail.com

unread,
Jun 23, 2014, 6:30:55 PM6/23/14
to wisemappi...@googlegroups.com, gilles...@gmail.com
Hi,

I used two different versions of tomcat 7 : 7.0.53 and 7.0.54 (the last one)

For the java information :
- java version :
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

- JAVA_HOME :
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_25


When I don't use mysql as database, I remember I got an error with the spring context but I'm not sure (I can't re-test now, sorry).
P.S : by default I prefer to avoid the use of the hsql database with a build project because I use Windows with specific administrators rights (because of my enterprise policies :( ) and this isn't always stable.

Indeed I also found the javax.servlet.jsp.jstl-1.2.0.v201105211821.jar in the binary package, but also in my maven local repository (maybe thanks to the maven source project of wisemapping)
But when you package the source project and you get the .war into the wise-webapp module project (corresponding to the webapps/wisemapping/ folder into wisemapping-v3.0.3), this lib isn't included.
And I don't know what I have to do with my tomcat to be in the same context that the binary package.

Regards,
Yoann

Peter Dähn

unread,
Jun 25, 2014, 10:33:37 AM6/25/14
to wisemappi...@googlegroups.com
Hello, I'm using Firefox 30.0 under Linux and got the following message from the wisemapping Server (3.0.1 GA and also tried 3.0.3). Google Chrome Version 35.0.1916.153 works as expected.

Ups!!!. Your browser is not currently supported

Your browser has not been fully tested and it might not be completely functional. WiseMapping has been optimized for:

  • Chrome 19 or greater
  • Firefox 11.0 or greater
  • Opera 11 or greater
  • Safari 5 or greater
  • Internet Explorer 8.0 or greater

Try again with one of the browsers previously listed.

Important: Browsers are listed in order based on performance and hours of testing invested by our team.


Any ideas?

Greetings Peter

Paulo Veiga

unread,
Jun 25, 2014, 12:55:05 PM6/25/14
to wisemappi...@googlegroups.com
Hi Peter,

The user has been fixed. Please, try again...

Regards
Paulo


--
You received this message because you are subscribed to the Google Groups "wisemapping-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wisemapping-sup...@googlegroups.com.
To post to this group, send email to wisemappi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Peter Dähn

unread,
Jun 26, 2014, 5:56:48 AM6/26/14
to wisemappi...@googlegroups.com
Hi Paulo,

which version I need to use/compile?

I tried to compile a version from the branch and got a build error... :-(

[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
<head><title>301' - RETRYING
Downloading: http://oss.sonatype.org/content/groups/jetty/org/eclipse/jetty/jetty-parent/21/jetty-parent-21.pom
184b downloaded  (jetty-parent-21.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
<head><title>301' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'org.eclipse.jetty:jetty-maven-plugin': Cannot find parent: org.eclipse.jetty:jetty-parent for project: null:jetty-project:pom:9.1.1.v20140108 for project null:jetty-project:pom:9.1.1.v20140108
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1557)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1503)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1282)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:534)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project for plugin 'org.eclipse.jetty:jetty-maven-plugin': Cannot find parent: org.eclipse.jetty:jetty-parent for project: null:jetty-project:pom:9.1.1.v20140108 for project null:jetty-project:pom:9.1.1.v20140108
    at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
    at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
    at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
    at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
    ... 18 more
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.eclipse.jetty:jetty-parent for project: null:jetty-project:pom:9.1.1.v20140108 for project null:jetty-project:pom:9.1.1.v20140108
    at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
    at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1407)
    at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
    at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:255)
    at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:277)
    ... 22 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM. for project org.eclipse.jetty:jetty-parent at /home/peter/.m2/repository/org/eclipse/jetty/jetty-parent/21/jetty-parent-21.pom
    at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1599)
    at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1571)
    at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:562)
    at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
    ... 26 more


Project ID: null:jetty-project:pom:9.1.1.v20140108

Reason: Cannot find parent: org.eclipse.jetty:jetty-parent for project: null:jetty-project:pom:9.1.1.v20140108 for project null:jetty-project:pom:9.1.1.v20140108

What shall I do?

Greetings Peter

Paulo Veiga

unread,
Jun 26, 2014, 9:07:43 AM6/26/14
to wisemappi...@googlegroups.com

Hi Peter,

The latest version under development that has some stability is develop. I would suggest removing the ~/.m2 directory.

I hope this helps
Paulo

Peter Dähn

unread,
Jun 26, 2014, 11:36:36 AM6/26/14
to wisemappi...@googlegroups.com
Hi Paulo,

shame on me...

I've installed maven2 instead on maven package... Now I got a

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Login with FF30 now possible! Thanks for that....

Btw. What do I need to do to upgrade my current installation (3.0.1 GA) with postgresql database?

Greetings Peter
3.0.1 GA
Reply all
Reply to author
Forward
0 new messages