Re: [OpenTripPlanner] How to deploy OTP

572 views
Skip to first unread message

Stefan Steiniger

unread,
Feb 22, 2013, 1:55:41 PM2/22/13
to opentripp...@googlegroups.com
Hi,

not sure, if my answers are helpful, but:
- it doesn't matter what tomcat version you use. I could run it with
several ones,

- yes doing what is described in RunningTheWebappInEclipse should work,
and you can either start it in "run" or in "debug" mode. But the latter
is only useful if you debug ;)

- on your error: the good news is, it is starting tomcat (Catalina
load). However, it seems like some libraries are missing. And therefore
the webapps (i.e. OTP) are not loaded?
Now my question would be: when your project is build, do you get any
build errors?
Can you check if your Spring libraries are in place?
If I look at the first message it could be also that you changed the
name of your project? as it says it cannot find the sources.
Have you looked into the Tomcat folder - where the files are
distributed to.. if everything is there?

btw. I did/do run OTP on a mac too - with OSX 1.10.6.

stefan

Am 22.02.13 15:35, schrieb timmy_...@live.at:
> Hey,
>
> yesterday I started with setting up OTP according to the tutorials that
> can be found in GitHub. I started with the 2 minute introduction, then I
> did the 5 minute detailed dive in, and then I started with the tutorial
> Install. I�m using Eclipse on my MacBook Pro. It worked everything
> pretty good so far. I installed the necessary plugins , cloned the code
> from GitHub (Tutorial GettingStartedEclipse), and I created a graph
> object file (Tutorial GraphBuilder) using different settings. Then I
> followed the steps of the tutorial SettingUpATomcatServerInEclipse.
> Instead of Tomcat V5.5 I have installed Tomcat V6. But for no specific
> reason. If this could cause any problems, please let me know. Finally,
> when I try to start the Server, I get a punch of messages and at least
> two errors. I tried to create a new one, restarted Eclipse, did a
> project clean, and searched for the messages in the internet. But
> somehow I can�t figure out how to solve that.
>
> And I have other questions, but to answer them one should be rather
> simple (I guess). According to the tutorial RunningTheWebappInEclipse I
> suppose that starting the server is everything that I have to do to see
> my map in the browser? Or do I have to debug OTP somehow in Eclipse? In
> Eclipse get several ways to run the project, but I don�t know if this is
> possible.
>
> I appreciate if anyone can help.
>
> Thanks,
> Tim
>
>
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
> property 'source' to
> 'org.eclipse.jst.j2ee.server:opentripplanner-api-webapp' did not find a
> matching property.
>
> Feb 22, 2013 12:57:42 PM
> org.apache.tomcat.util.digester.SetPropertiesRule begin
>
>
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
> property 'source' to
> 'org.eclipse.jst.j2ee.server:opentripplanner-webapp' did not find a
> matching property.
>
> Feb 22, 2013 12:57:42 PM org.apache.coyote.http11.Http11Protocol init
>
>
> INFO: Initializing Coyote HTTP/1.1 on http-8080
>
> Feb 22, 2013 12:57:42 PM org.apache.catalina.startup.Catalina load
>
> INFO: Initialization processed in 1995 ms
>
> Feb 22, 2013 12:57:42 PM org.apache.catalina.core.StandardService start
>
> INFO: Starting service Catalina
>
> Feb 22, 2013 12:57:42 PM org.apache.catalina.core.StandardEngine start
>
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
>
>
> Feb 22, 2013 12:57:43 PM org.apache.catalina.core.StandardContext
> listenerStart
>
> SEVERE: Error configuring application listener of class
> org.springframework.web.context.ContextLoaderListener
>
> java.lang.ClassNotFoundException:
> org.springframework.web.context.ContextLoaderListener
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
>
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
>
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>
> at org.apache.catalina.core.StandardService.start(StandardService.java:525)
>
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>
> at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
>
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
>
> Feb 22, 2013 12:57:43 PM org.apache.catalina.core.StandardContext
> listenerStart
>
> SEVERE: Error configuring application listener of class
> org.springframework.web.context.request.RequestContextListener
>
> java.lang.ClassNotFoundException:
> org.springframework.web.context.request.RequestContextListener
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
>
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
>
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>
> at org.apache.catalina.core.StandardService.start(StandardService.java:525)
>
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>
> at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
>
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
>
> Feb 22, 2013 12:57:43 PM org.apache.catalina.core.StandardContext
> listenerStart
>
> SEVERE: Skipped installing application listeners due to previous error(s)
>
> Feb 22, 2013 12:57:43 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Error listenerStart
>
> Feb 22, 2013 12:57:43 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Context [/opentripplanner-api-webapp] startup failed due to
> previous errors
>
> Feb 22, 2013 12:57:43 PM org.apache.coyote.http11.Http11Protocol start
>
> INFO: Starting Coyote HTTP/1.1 on http-8080
>
> Feb 22, 2013 12:57:43 PM org.apache.jk.common.ChannelSocket init
>
> INFO: JK: ajp13 listening on /0.0.0.0:8009
>
> Feb 22, 2013 12:57:43 PM org.apache.jk.server.JkMain start
>
> INFO: Jk running ID=0 time=0/220 config=null
>
> Feb 22, 2013 12:57:43 PM org.apache.catalina.startup.Catalina start
>
> INFO: Server startup in 1425 ms
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenTripPlanner Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to opentripplanner...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Stefan Steiniger

unread,
Feb 22, 2013, 2:00:26 PM2/22/13
to opentripp...@googlegroups.com
actually, can you check what happens when you start tomcat from within
eclipse without defining any projects to be started. (i.e. don't do the
part "Add Project Modules to the Server" in
"SettingUpATomcatServerInEclipse")
Are there any errors in that case?

stefan

Am 22.02.13 15:55, schrieb Stefan Steiniger:
> Hi,
>
> not sure, if my answers are helpful, but:
> - it doesn't matter what tomcat version you use. I could run it with
> several ones,
>
> - yes doing what is described in RunningTheWebappInEclipse should work,
> and you can either start it in "run" or in "debug" mode. But the latter
> is only useful if you debug ;)
>
> - on your error: the good news is, it is starting tomcat (Catalina
> load). However, it seems like some libraries are missing. And therefore
> the webapps (i.e. OTP) are not loaded?
> Now my question would be: when your project is build, do you get any
> build errors?
> Can you check if your Spring libraries are in place?
> If I look at the first message it could be also that you changed the
> name of your project? as it says it cannot find the sources.
> Have you looked into the Tomcat folder - where the files are
> distributed to.. if everything is there?
>
> btw. I did/do run OTP on a mac too - with OSX 1.10.6.
>
> stefan
>
> Am 22.02.13 15:35, schrieb timmy_...@live.at:
>> Hey,
>>
>> yesterday I started with setting up OTP according to the tutorials that
>> can be found in GitHub. I started with the 2 minute introduction, then I
>> did the 5 minute detailed dive in, and then I started with the tutorial
>> Install. I惴 using Eclipse on my MacBook Pro. It worked everything
>> pretty good so far. I installed the necessary plugins , cloned the code
>> from GitHub (Tutorial GettingStartedEclipse), and I created a graph
>> object file (Tutorial GraphBuilder) using different settings. Then I
>> followed the steps of the tutorial SettingUpATomcatServerInEclipse.
>> Instead of Tomcat V5.5 I have installed Tomcat V6. But for no specific
>> reason. If this could cause any problems, please let me know. Finally,
>> when I try to start the Server, I get a punch of messages and at least
>> two errors. I tried to create a new one, restarted Eclipse, did a
>> project clean, and searched for the messages in the internet. But
>> somehow I can愒 figure out how to solve that.
>>
>> And I have other questions, but to answer them one should be rather
>> simple (I guess). According to the tutorial RunningTheWebappInEclipse I
>> suppose that starting the server is everything that I have to do to see
>> my map in the browser? Or do I have to debug OTP somehow in Eclipse? In
>> Eclipse get several ways to run the project, but I don愒 know if this is
Message has been deleted

timmy_...@live.at

unread,
Feb 24, 2013, 1:51:00 PM2/24/13
to opentripp...@googlegroups.com
Hey,

the link to the problem description can be found here: https://groups.google.com/forum/?fromgroups=#!topic/opentripplanner-dev/IkgiXJuk6d8. I deleted this topic due to inappropriate naming, but for some reason you could respond to the "old" one.

Starting Tomcat without project modules seems to work:

Feb 24, 2013 11:56:54 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Users/Timmy/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Feb 24, 2013 11:56:56 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 24, 2013 11:56:56 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3459 ms
Feb 24, 2013 11:56:56 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 24, 2013 11:56:56 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
Feb 24, 2013 11:56:57 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 24, 2013 11:56:58 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 24, 2013 11:56:58 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/488  config=null
Feb 24, 2013 11:56:58 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2375 ms

Project build:
I built the project using the command line. First I did the command "mvn compile", then "mvn package", and "mvn -e package -DskipTests". Each time I got the info that it worked properly. 

Is it possible to build the project within Eclipse too? I get several possibilities to run the project, but I don´t really know which of them I should choose (see attached image).
 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OpenTripPlanner ................................... SUCCESS [0.002s]
[INFO] OpenTripPlanner Open Street Map Support ........... SUCCESS [7.557s]
[INFO] OpenTripPlanner Administration Webapp ............. SUCCESS [13.718s]
[INFO] OpenTripPlanner Utilities ......................... SUCCESS [3.207s]
[INFO] OpenTripPlanner Routing ........................... SUCCESS [19.219s]
[INFO] OpenTripPlanner Graph Builder ..................... SUCCESS [31.879s]
[INFO] OpenTripPlanner System Map ........................ SUCCESS [17.936s]
[INFO] OpenTripPlanner Updater ........................... SUCCESS [44.353s]
[INFO] OpenTripPlanner Thrift API Server ................. SUCCESS [37.916s]
[INFO] OpenTripPlanner Analyst ........................... SUCCESS [17.331s]
[INFO] OpenTripPlanner Web Utils ......................... SUCCESS [0.666s]
[INFO] OpenTripPlanner API Webapp ........................ SUCCESS [17.202s]
[INFO] OpenTripPlanner Geocoder .......................... SUCCESS [2.764s]
[INFO] OpenTripPlanner Graph Visualizer .................. SUCCESS [44.958s]
[INFO] OpenTripPlanner Main Client ....................... SUCCESS [1:33.293s]
[INFO] OpenTripPlanner Integration Testing ............... SUCCESS [4.593s]
[INFO] OpenTripPlanner Analyst Client .................... SUCCESS [5.667s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Tomcat folder:
So when I build the project, Eclipse should copy/distribute the war files into the according Tomcat folder? I couldn´t find any war files in the Tomcat folder, so I copied the two war files "opentripplanner-webapp"  and "opentripplanner-api-webapp" into the webapps folder of Tomcat. When I start Tomcat I can access the "opentripplanner-webapp" via the browser. 

Spring:
Sry, but i coudn´t figure out where I should look for the spring libraries. Could you give me a hint? 
I additionally installed the "Spring Tool Suite for Eclipse Juno" from the Eclipse Market Place, because I thought that this might help, but it didn´t change anything. I still have the two error messages. 

Change name of project:
I didn´t change the name of the project itself. Just the name if the Tomcat folder. But I think this shouldn´t be the problem. Nevertheless, I renamed it to the original name.

Another error/problem that came up:
I always get this message when starting the Tomcat "Resource is out of sync with the file system: '/opentripplanner-webapp/src/main/webapp/js/otp-min.js'.". I don´t know if this has an influence.

Thank you very much for your help.

Tim
Run_OTP_Eclipse.png

Stefan Steiniger

unread,
Feb 25, 2013, 9:45:47 AM2/25/13
to opentripp...@googlegroups.com
Hi,

first: good news that tomcat starts fine and that when copying the war's
manually the webapp works too. So you can delete the manual copies and
the extracted files/folder.

Also, if maven did build it correctly then the problem is within
eclipse. And, I think, that was a a question: Eclipse and Maven builds
are different things. I.e. Eclipse is building its own version. However,
if you work on a file and change it, these changes should also be
reflected in the next maven build.

I think that maybe the last error you send is actually really your problem.
Do an F5 to refresh your projects and then distribution should work.
I.e. it should work when you have added the projects back to the tomcat
"run" or "debug", option, which ever you use.

I also had once in a while problems that the distribution did not work..
then I did read the failure message and discovered that my projects
where out of sync with the files on the disc. In that case a simple
refresh helped.

I hope it helps for you too?

stefan

Am 24.02.13 15:51, schrieb timmy_...@live.at:
> Hey,
>
> the link to the problem description can be found here:
> https://groups.google.com/forum/?fromgroups=#!topic/opentripplanner-dev/IkgiXJuk6d8.
> I deleted this topic due to inappropriate naming, but for some reason
> you could respond to the "old" one.
>
> *Starting Tomcat without project modules seems to work:*
>
> Feb 24, 2013 11:56:54 AM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> .:/Users/Timmy/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
> Feb 24, 2013 11:56:56 AM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Feb 24, 2013 11:56:56 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 3459 ms
> Feb 24, 2013 11:56:56 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Feb 24, 2013 11:56:56 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
> Feb 24, 2013 11:56:57 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Feb 24, 2013 11:56:58 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Feb 24, 2013 11:56:58 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/488 config=null
> Feb 24, 2013 11:56:58 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2375 ms
>
> *Project build:*
> *Tomcat folder:*
> So when I build the project, Eclipse should copy/distribute the war
> files into the according Tomcat folder? I couldn´t find any war files in
> the Tomcat folder, so I copied the two war files
> "opentripplanner-webapp" and "opentripplanner-api-webapp" into the
> webapps folder of Tomcat. When I start Tomcat I can access the
> "opentripplanner-webapp" via the browser.
>
> *Spring:*
> Sry, but i coudn´t figure out where I should look for the spring
> libraries. Could you give me a hint?
> I additionally installed the "Spring Tool Suite for Eclipse Juno" from
> the Eclipse Market Place, because I thought that this might help, but it
> didn´t change anything. I still have the two error messages.
>
> *Change name of project:*
> I didn´t change the name of the project itself. Just the name if the
> Tomcat folder. But I think this shouldn´t be the problem. Nevertheless,
> I renamed it to the original name.
>
> *Another error/problem that came up:*
> > Am 22.02.13 15:35, schrieb timmy_...@live.at <javascript:>:
> >> INFO: JK: ajp13 listening on /0.0.0.0:8009 <http://0.0.0.0:8009>
> >>
> >> Feb 22, 2013 12:57:43 PM org.apache.jk.server.JkMain start
> >>
> >> INFO: Jk running ID=0 time=0/220 config=null
> >>
> >> Feb 22, 2013 12:57:43 PM org.apache.catalina.startup.Catalina start
> >>
> >> INFO: Server startup in 1425 ms
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "OpenTripPlanner Developers" group.
> >> To unsubscribe from this group and stop receiving emails from
> it, send
> >> an email to opentripplanner...@googlegroups.com
> <javascript:>.
> >> For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
> >>
> >>
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenTripPlanner Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to opentripplanner...@googlegroups.com.

timmy_...@live.at

unread,
Feb 25, 2013, 3:38:03 PM2/25/13
to opentripp...@googlegroups.com
Hey,

now I can access the Webapp without copying the war-files into the Tomcat folder. Maybe it worked before too... I guess my lack of understanding was the bigger problem... 

But I still have the problems with the spring framework, and I couldn´t find the reason for them. A resulting problem is that the opentripplanner-api-webapp is not starting, and therefore I can just view the webmap, but I cannot request any route. I found this link https://github.com/openplans/OpenTripPlanner/issues/653 that addresses these problems, but the proposed solutions didn´t work for me. I tried it with both Tomcat 6 and 7. Any idea? 

Thanks,
Tim
>     <javascript:>.
>      >> For more options, visit https://groups.google.com/groups/opt_out
>     <https://groups.google.com/groups/opt_out>.
>      >>
>      >>
>      >
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenTripPlanner Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send

Andrew Byrd

unread,
Feb 25, 2013, 3:47:15 PM2/25/13
to opentripp...@googlegroups.com
On 02/25/2013 09:38 PM, timmy_...@live.at wrote:
> But I still have the problems with the spring framework, and I couldn´t
> find the reason for them. A resulting problem is that the
> opentripplanner-api-webapp is not starting, and therefore I can just
> view the webmap, but I cannot request any route. I found this link
> https://github.com/openplans/OpenTripPlanner/issues/653 that addresses
> these problems, but the proposed solutions didn´t work for me. I tried
> it with both Tomcat 6 and 7. Any idea?

Spring assembles and configures the various components of OTP, so there
are many different problems that can manifest as Spring exceptions but
are actually build or configuration issues. What is your specific error?
Please provide all log output and/or stack traces.

-Andrew

timmy_...@live.at

unread,
Feb 26, 2013, 6:16:54 AM2/26/13
to opentripp...@googlegroups.com
Hey,

this is my stack trace of Eclipse:


Feb 26, 2013 6:01:17 AM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Users/Name/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

Feb 26, 2013 6:01:18 AM org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:opentripplanner-api-webapp' did not find a matching property.

Feb 26, 2013 6:01:18 AM org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:opentripplanner-webapp' did not find a matching property.

Feb 26, 2013 6:01:18 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8080"]

Feb 26, 2013 6:01:19 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

Feb 26, 2013 6:01:19 AM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 5014 ms

Feb 26, 2013 6:01:19 AM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Feb 26, 2013 6:01:19 AM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.37

Feb 26, 2013 6:01:21 AM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1713)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)

at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:527)

at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:137)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4733)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:680)

Feb 26, 2013 6:01:21 AM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Error configuring application listener of class org.springframework.web.context.request.RequestContextListener

java.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListener

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1713)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)

at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:527)

at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:137)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4733)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:680)

Feb 26, 2013 6:01:21 AM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Skipped installing application listeners due to previous error(s)

Feb 26, 2013 6:01:21 AM org.apache.catalina.core.StandardContext startInternal

SEVERE: Error listenerStart

Feb 26, 2013 6:01:21 AM org.apache.catalina.core.StandardContext startInternal

SEVERE: Context [/opentripplanner-api-webapp] startup failed due to previous errors

Feb 26, 2013 6:01:21 AM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["http-bio-8080"]

Feb 26, 2013 6:01:21 AM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["ajp-bio-8009"]

Feb 26, 2013 6:01:21 AM org.apache.catalina.startup.Catalina start

INFO: Server startup in 2368 ms


Input of Log file right after start up:

127.0.0.1 - - [26/Feb/2013:06:01:24 -0500] "GET / HTTP/1.1" 404 951


When I load the project on localhost 404 error shows up in the Log file:
0:0:0:0:0:0:0:1%0 - - [26/Feb/2013:06:08:00 -0500] "GET /opentripplanner-api-webapp/ws/metadata HTTP/1.1" 404 1027

Firebug (right after starting): 

Route request:

But I guess this happens because the otp-api-webapp didn´t start. Beside of that, I just have 200s after start up.

Thanks, 
Tim

Andrew Byrd

unread,
Feb 26, 2013, 6:30:57 AM2/26/13
to opentripp...@googlegroups.com
Ah right, this does indeed seem to be issue 653. It's a build bug of
some kind and I don't know of any solution other than the one novalis
suggested: clean the project and Tomcat, try to force it to rebuild
everything from scratch.

-Andrew

On 02/26/2013 12:16 PM, timmy_...@live.at wrote:
> Hey,
>
> *this is my stack trace of Eclipse:*
> *Input of Log file right after start up:*
>
> 127.0.0.1 - - [26/Feb/2013:06:01:24 -0500] "GET / HTTP/1.1" 404 951
>
>
> *When I load the project on localhost 404 error shows up in the Log file:*
> 0:0:0:0:0:0:0:1%0 - - [26/Feb/2013:06:08:00 -0500] "GET
> /opentripplanner-api-webapp/ws/metadata HTTP/1.1" 404 1027
>
> *Firebug *(right after starting)*:*
> *Route request:*
> "NetworkError: 404 Not Found -
> http://localhost:8080/opentripplanner-api-webapp/ws/plan?_dc=1361877140831&arriveBy=false&time=6%3A07am&ui_date=2%2F26%2F2013&mode=WALK&optimize=QUICK&maxWalkDistance=840&walkSpeed=1.341&date=2013-02-26&toPlace=46.613856%2C13.846443&fromPlace=46.614828%2C13.847322"
>
> But I guess this happens because the otp-api-webapp didn�t start. Beside
> of that, I just have 200s after start up.
>
> Thanks,
> Tim
>
> Am Montag, 25. Februar 2013 15:47:15 UTC-5 schrieb Andrew Byrd:
>
> On 02/25/2013 09:38 PM, timmy_...@live.at <javascript:> wrote:
> > But I still have the problems with the spring framework, and I
> couldn�t
> > find the reason for them. A resulting problem is that the
> > opentripplanner-api-webapp is not starting, and therefore I can just
> > view the webmap, but I cannot request any route. I found this link
> > https://github.com/openplans/OpenTripPlanner/issues/653
> <https://github.com/openplans/OpenTripPlanner/issues/653> that
> addresses
> > these problems, but the proposed solutions didn�t work for me. I
> tried
> > it with both Tomcat 6 and 7. Any idea?
>
> Spring assembles and configures the various components of OTP, so there
> are many different problems that can manifest as Spring exceptions but
> are actually build or configuration issues. What is your specific
> error?
> Please provide all log output and/or stack traces.
>
> -Andrew
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenTripPlanner Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to opentripplanner...@googlegroups.com.

timmy_...@live.at

unread,
Feb 26, 2013, 9:44:21 AM2/26/13
to opentripp...@googlegroups.com
Hey,

now it is working. I downloaded Eclipse again. Followed again all the steps of the tutorials. And now it´s running on Apache Tomcat 7. 

Thanks for your help!

Cheers,
Tim

Bhagya Sri Tripuramallu

unread,
Jun 5, 2015, 11:34:40 PM6/5/15
to opentripp...@googlegroups.com
Hi,

I am deploying OTP in my eclipse, it build successfully after that to run that project it does not showing any tomact server for that perticular project that means in run option I am not able to find run on server option.. can you please suggest any idea. is any problem with importing the project.. 

Andrew Byrd

unread,
Jun 8, 2015, 12:23:10 PM6/8/15
to Bhagya Sri Tripuramallu, opentripp...@googlegroups.com
Hello,

It seems that you are running a very old version of OTP and/or following outdated documentation. There is no need to deploy OTP to an application server, and these days there is essentially no special setup when running it in an IDE.

The current documentation is located here:

-Andrew

To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages