Coder Social home page Coder Social logo

Error "error configuring application listener of class com.sitewhere.web.ShutdownListener" during deploy Sitewhere with Tomcat 8 about sitewhere HOT 20 CLOSED

sitewhere avatar sitewhere commented on May 30, 2024
Error "error configuring application listener of class com.sitewhere.web.ShutdownListener" during deploy Sitewhere with Tomcat 8

from sitewhere.

Comments (20)

derekadams avatar derekadams commented on May 30, 2024

Did you build the system from source or deploy one of the packaged distributions from the downloads page? If building from source, make sure you have run the following to properly build the server:

mvn clean install
mvn -P buildServer install

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

Dear Derekadams,
I just clone the source code from github and building from source code and also build with maven, after building successful with maven command: "mvn clean install -Dmaven.test.skip=true" then I start tomcat inside eclipse. Above error appear during the time i start sitewhere web with tomcat :) I will try with "mvn -P buildServer install" command before start tomcat and will let you know the result 👍

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

Dear Derekadams,

After running "mvn -P buildServer install" command, then I continue to start tomcat inside eclipse, another exception is throw as below.

SEVERE: Servlet.service() for servlet [mvc] in context with path [/sitewhere] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at com.sitewhere.web.mvc.SiteWhereController.login(SiteWhereController.java:81)
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.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)

I am running on Mac OS X. I already install MongoDB and mosquitto on my Mac

Thanks

from sitewhere.

derekadams avatar derekadams commented on May 30, 2024

When you say you are running SiteWhere on Tomcat in Eclipse, is that an embedded Tomcat instance? If so, that's an untested configuration. The output of the "buildServer" command is a standalone Tomcat installation with the SiteWhere configuration files and WAR already in place (see deploy folder under the root for sitewhere-server-1.5.0.zip or tar.gz). You may be able to copy the contents of the conf/sitewhere directory from the distribution and get it to work in Eclipse, but we recommend running the system from the packaged archive.

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

Yes, my purpose is debugging sitewhere in eclipse directly. So that is why I start sitewhere inside eclipse. If I follow you to run tomcat from sitewhere-server-1.5.0.zip or tar.gz extract file it's ok. But if i run tomcat inside eclipse it's still error. I will check the configuration more deeply!
sitewhere_start_tomcat

from sitewhere.

derekadams avatar derekadams commented on May 30, 2024

One option is to connect to the external SiteWhere/Tomcat instance remotely from Eclipse. That will still allow you to set breakpoints in the code just as if it were running locally (it's the method we use to debug). If you edit the command near the bottom of the startup.bat file (or similarly in startup.sh) as shown below:

call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%

.. then connect from Eclipse with the following Remote Java Application settings..

image

The debugger should connect and allow you to debug the code.

Hope that helps!

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

That's great, I was Remote debugging of Tomcat using Eclipse successful. Thanks you so much

from sitewhere.

sameerbetageri10 avatar sameerbetageri10 commented on May 30, 2024

unable to load the adminiistartive console of the sitewhere. I have set up mongodb and mosquitto mqtt server but stiill unable startup the home page of sitewhere

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

Sitewhere now using Spring Boot, I think you should open another issue and describe more detail your issue!

from sitewhere.

sameerbetageri10 avatar sameerbetageri10 commented on May 30, 2024

@anhdenday can u provide installation procedure for installing sitewhere inn win7 using mosquitto mqtt...............i have tried installing using the same way as using hive mq ended up in a dead end

from sitewhere.

sameerbetageri10 avatar sameerbetageri10 commented on May 30, 2024

unable to run sitewhere admin console at http://localhost:8080/sitewhere

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

You just want to install or you want to debug from the IDE like Eclipse or IntellijUDEA?

from sitewhere.

sameerbetageri10 avatar sameerbetageri10 commented on May 30, 2024

Sitewhere installation problem #45

#45

On Fri, Jul 15, 2016 at 1:13 AM, Freman [email protected] wrote:

Sitewhere now using Spring Boot, I think you should open another issue and
describle more detail your issue!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AThdSUPdqHpH_gAt2OPjzsHz6UnnBOPfks5qV0EugaJpZM4HD716
.

from sitewhere.

sameerbetageri10 avatar sameerbetageri10 commented on May 30, 2024

i just want to install sitewhere....iam using the mongodb and mosquitto at
1883 port bith are up n running....started sitewhere server....stil unable
to open sitewhere admin

Iam not using eclipse IDE

On Fri, Jul 15, 2016 at 1:38 AM, Sameer Betageri [email protected]
wrote:

Sitewhere installation problem #45

#45

On Fri, Jul 15, 2016 at 1:13 AM, Freman [email protected] wrote:

Sitewhere now using Spring Boot, I think you should open another issue
and describle more detail your issue!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AThdSUPdqHpH_gAt2OPjzsHz6UnnBOPfks5qV0EugaJpZM4HD716
.

from sitewhere.

sameerbetageri10 avatar sameerbetageri10 commented on May 30, 2024

i have followed the innstallation video on youtube ....followed those steps

On Fri, Jul 15, 2016 at 1:40 AM, Sameer Betageri [email protected]
wrote:

i just want to install sitewhere....iam using the mongodb and mosquitto at
1883 port bith are up n running....started sitewhere server....stil unable
to open sitewhere admin

Iam not using eclipse IDE

On Fri, Jul 15, 2016 at 1:38 AM, Sameer Betageri [email protected]
wrote:

Sitewhere installation problem #45

#45

On Fri, Jul 15, 2016 at 1:13 AM, Freman [email protected] wrote:

Sitewhere now using Spring Boot, I think you should open another issue
and describle more detail your issue!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AThdSUPdqHpH_gAt2OPjzsHz6UnnBOPfks5qV0EugaJpZM4HD716
.

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

The step like this:
1- Install JDK 8
2- Install MongoDB
3- Install Message Broker (like HiveMQ or Mosquitto)
4- Run sitewhere like tutorial at sitewhere page
cd /opt
wget https://s3.amazonaws.com/sitewhere/sitewhere-server-1.7.0.tgz
tar -zxvf sitewhere-server-1.7.0.tgz
mv sitewhere-server-1.7.0 /opt/sitewhere
export SITEWHERE_HOME=/opt/sitewhere
cd /opt/sitewhere/bin
sh startup.sh
Brgs

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

In the window, I just run inside the IDE like IntelliJ IDEA for debugging in my local.
To deploy on the server i am usually using Ubuntu.
I never install sitewhere server on window before, just run directly from the source code by using IDE like Eclipse or IntelliJ . But the step is the same.

1- Install JDK 8
2- Install MongoDB
3- Install Message Broker (like HiveMQ or Mosquitto)
4- Run sitewhere on IDE

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

The default admin console page should be: http://localhost:8080/sitewhere/admin/

from sitewhere.

sameerbetageri10 avatar sameerbetageri10 commented on May 30, 2024

can u provide link for steps to run from ide eclipse

On Fri, Jul 15, 2016 at 1:52 AM, Freman [email protected] wrote:

In the window, I just run inside the IDE like IntelliJ IDEA for debugging
in my local.
To deploy on the server i am usually using Ubuntu.
I never install sitewhere server on window before, just run directly from
the source code by using IDE like Eclipse or IntelliJ . But the step is the
same.

1- Install JDK 8
2- Install MongoDB
3- Install Message Broker (like HiveMQ or Mosquitto)
4- Run sitewhere on IDE


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AThdSSEcyXIUMg5hVvIypY2hB1733Cmrks5qV0o3gaJpZM4HD716
.

from sitewhere.

anhdenday avatar anhdenday commented on May 30, 2024

Sitewhere 1.7 had problem with spring boot during running on eclipse. I've changed to use IntelliJ and it's ok. Following above step I've mentioned before and refer this issue #39 .
Hope this help

from sitewhere.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.