Coder Social home page Coder Social logo

Comments (7)

derekadams avatar derekadams commented on May 14, 2024

Try setting the variable 'sitewhere.home' rather than 'SITEWHERE_HOME'. We added the following Jira ticket to fix the problem:

https://sitewhere.atlassian.net/browse/SITEWHERE-311

Thanks,
Derek

from sitewhere.

anhdenday avatar anhdenday commented on May 14, 2024

It's still same problem even when I set the variable 'sitewhere.home'.
5-9-2016 5-18-29 pm

Thanks

from sitewhere.

anhdenday avatar anhdenday commented on May 14, 2024

I just tried in the Mac OSX also. The same problem here, then I tried to hard core in DefaultGlobalConfigurationResolver class.
public static final String SITEWHERE_HOME = "/Users/freeman/Dropbox/M2M/SOURCECODE/sitewhere/sitewhere1.7.0/sitewhere";
But the problem still appear. May be there are another configuration but I dont know.
Hope to fix it out soon

from sitewhere.

derekadams avatar derekadams commented on May 14, 2024

The SITEWHERE_HOME variable is being used to look up an environment
variable, so setting it to a path will not work. Instead, you could return
a new File object from the getGlobalConfigurationFolder() method that
points to your path. All other resolution happens relative to that folder,
so it should fix the problem. We do not have any core developers using
IntelliJ Idea, so we have not been able to replicate the environment
variable problem. It may be easier to turn on remote debugging on the
server and attach to a running instance. That is how we debug when using
Eclipse. On WIndows, you can remove the "rem" on the JPDA_OPTS line in
startup.bat to enable remote debugging.

On Mon, May 9, 2016 at 10:27 AM, Freman [email protected] wrote:

I just tried in the Mac OSX also. The same problem here, then I tried to
hard core in DefaultGlobalConfigurationResolver class.
public static final String SITEWHERE_HOME =
"/Users/freeman/Dropbox/M2M/SOURCECODE/sitewhere/sitewhere1.7.0/sitewhere";
But the problem still appear. May be there are another configuration but I
dont know.
Hope to fix it out soon


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#39 (comment)

from sitewhere.

anhdenday avatar anhdenday commented on May 14, 2024

Hi,
I am back to eclipse (STS - Spring Tool Suite), but it appear new problem of slf4j.

Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Log4jLoggerFactory loaded from file:/C:/Users/Freeman/.gradle/caches/modules-2/files-2.1/org.apache.activemq/activemq-all/5.10.0/bb376083b608a6f74e3d3c06afb92049549302c9/activemq-all-5.10.0.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.slf4j.impl.Log4jLoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext
    at org.springframework.util.Assert.isInstanceOf(Assert.java:346)
    at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:223)
    at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLogger(LogbackLoggingSystem.java:215)
    at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:98)
    at org.springframework.boot.logging.LoggingApplicationListener.onApplicationStartedEvent(LoggingApplicationListener.java:191)
    at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:173)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:163)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:136)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:119)
    at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111)
    at org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:60)
    at org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:48)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
    at com.sitewhere.web.SiteWhereWebApplication.main(SiteWhereWebApplication.java:133)

error

I am trying to fix it

Thanks

from sitewhere.

anhdenday avatar anhdenday commented on May 14, 2024

Hi @derekadams,

Finally I've run sitewhere on the Intelij Idea with no error on the console. I've hard code SITEWHERE_HOME on "getGlobalConfigurationFolder()" method and copy the pre-configured of "conf" folder to $SITEWHERE_HOME/conf and run with Intelij Idea with no error.
startsitewhere
But when I browser to:
http://localhost:8080/sitewhere/admin
it's appear error message:

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri May 13 09:58:17 ICT 2016
There was an unexpected error (type=Not Found, status=404).
/sitewhere/WEB-INF/jsp/login.jsp

webbrowser

Of course that I already run HiveMQ and mongoDB on my local window.
Please take a look, thanks you so much

from sitewhere.

anhdenday avatar anhdenday commented on May 14, 2024

Hi,
On the Mac OSX also, If I run main method from "SiteWhereWebApplication" class it will appear the same error as above. (not worked)
But if I run with command: "gradle bootRun" it's worked.
On window if i do the same "gradle bootRun" it's will throw and exception like this, I try to fix many time with many way even I use "long path tool" but not work, I thinks it's is bug of window 10.
Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
So temporary I am working with Mac OS.
Thanks you

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.