Comments (7)
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.
It's still same problem even when I set the variable 'sitewhere.home'.
Thanks
from sitewhere.
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.
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.
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)
I am trying to fix it
Thanks
from sitewhere.
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.
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
Of course that I already run HiveMQ and mongoDB on my local window.
Please take a look, thanks you so much
from sitewhere.
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)
- future isn't success, cause: (org.apache.zookeeper.ClientCnxnSocketNetty) [nioEventLoopGroup-2-1] java.nio.channels.ClosedChannelException
- WARN fsync-ing the write ahead log in SyncThread:2 took 3932ms which will adversely effect operation latency. File size is 67108880 bytes
- What is the purpose of spring native support v3.1.0 HOT 1
- How to deploy a highly reliable production environment instead of swctl deploying all services in a cluster HOT 2
- License, documentation, and developer resource concerns HOT 5
- stat /bin/grpc_health_probe: no such file or directory": unknown
- I want Sitewhere to support other relational databases besides the default database postgres95. Can you give me some suggestions? HOT 7
- javax.enterprise.inject.spi.DeploymentException: No config value of type HOT 1
- 3.1.0 will probably be released more
- Why doesn't the device have a name HOT 2
- swctl:v0.9.2 Debug mode cannot be turned on
- V3.0 can't add tenant HOT 1
- How to optimize Kafka messages with serious accumulation?
- helm install failed
- Cannot deploy sitewhere using HELM - Pods are failing with Error: SRCFG00014: Property sitewhere.config.k8s.pod.ip not found HOT 2
- How can I quickly add two microservices
- swctl create instance sitewhere failed
- Excellent open-source gentleman, noticed that the sitewhere project has not been updated for more than a year HOT 2
- Is there any simplified installation guide?
- Job cannot call the event management service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sitewhere.