OpenIotOrg / openiot

The Open Source Project for the Internet of Things
459 stars 189 forks source link

Error in logging in as not logging out CAS. #130

Open Annmeng opened 8 years ago

Annmeng commented 8 years ago

I deployed all modules,but I can't enter in Secret Word so as to I can't sign up a user.There is not input box behind Secret Word.Please help,Thanks.

premjayaraman commented 8 years ago

in the openiot.proerty file, you can disable the captcha check...

i think by secret word this is what you mean right?

On Tue, May 24, 2016 at 3:45 PM, Annmeng notifications@github.com wrote:

_I deployed all modules,but I can't enter in Secret Word so as to I can't sign up a user._There is not input box behind Secret Word.Please help,Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/OpenIotOrg/openiot/issues/130

Annmeng commented 8 years ago

Thank you very much ,I modify the captcha check and slove the problem.But why did I sign up and log out CSA,then log in again,it pressented "not allow to use CSA...".It seems didn't store my information i entered.How can I solve that?

premjayaraman commented 8 years ago

once you do that..

you will need to loginto security management and assign the newly created user the rights..

for this login as admin/secret and assign the rights..

the document I sent you should have this instruction.

regards prem

On Tue, May 24, 2016 at 5:16 PM, Annmeng notifications@github.com wrote:

Thank you very much ,I modify the captcha check and slove the problem.But why did I sign up and log out CSA,then log in again,it pressented "not allow to use CSA...".It seems didn't store my information i entered.How can I solve that?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/OpenIotOrg/openiot/issues/130#issuecomment-221185854

Annmeng commented 8 years ago

This is openiot.propertoes,and how should I modify to do that? #######################################################################

IDE Navigation Properties

----------------------------------------------------------------------

Declare a Navigation Module to be displayed on the IDE:

1. The prefix ide.core.navigation is mandatory

ide.core.navigation

2. Follow the prefix with any unique name for the module

ide.core.navigation.{uniquename} <----change me

3. Apply the 3 suffixes (title, url, monitoring) to the end:

- title = the tile that will appear on the menu item

- url = the absolute host of the module

- monitoring = indicate by true or false

if the javamelody monitoring option

is active on the specific module

#

Template:

ide.core.navigation.{uniquename}.title={menu item title}

ide.core.navigation.{uniquename}.url={module url}

ide.core.navigation.{uniquename}.monitoring=true/false

----------------------------------------------------------------------

#######################################################################

Request Definition

ide.core.navigation.requestDefinition.title=Request Definition ide.core.navigation.requestDefinition.url=http://localhost:8080/ui.requestDefinition/pages/applicationDesign.xhtml ide.core.navigation.requestDefinition.monitoring=true

Request Presentation

ide.core.navigation.requestPresentation.title=Request Presentation ide.core.navigation.requestPresentation.url=http://localhost:8080/ui.requestPresentation/pages/requestPresentation.xhtml ide.core.navigation.requestPresentation.monitoring=true

Sensor Schema Editor

ide.core.navigation.sensorSchemaEditor.title=Sensor Schema Editor ide.core.navigation.sensorSchemaEditor.url=http://localhost:8080/ui.schemaeditor ide.core.navigation.sensorSchemaEditor.monitoring=true

Scheduler Properties

scheduler.core.lsm.openiotMetaGraph=http://localhost/OpenIoT/guest/sensormeta# scheduler.core.lsm.openiotDataGraph=http://localhost/OpenIoT/guest/sensordata# scheduler.core.lsm.openiotFunctionalGraph=http://localhost/OpenIoT/guest/functional# scheduler.core.lsm.access.username=openiot_guest scheduler.core.lsm.access.password=openiot scheduler.core.lsm.sparql.endpoint=http://localhost/sparql scheduler.core.lsm.remote.server=http://localhost/lsm-light.server/

Service Delivery & Utility Manager (SD&UM) Properties

sdum.core.lsm.openiotFunctionalGraph=http://localhost/OpenIoT/guest/functional# sdum.core.lsm.sparql.endpoint=http://localhost/sparql sdum.core.lsm.remote.server=http://localhost/lsm-light.server/

Request Definition

request.commons.scheduler.core.host.url=http://localhost:8080/scheduler.core request.commons.sdum.core.host.url=http://localhost:8080/sdum.core

Request Presentation

LSM-LIGHT Properties

lsm-light.server.connection.driver_class=virtuoso.jdbc4.Driver lsm-light.server.connection.url=jdbc:virtuoso://localhost:1111/log_enable=2

lsm-light.server.connection.username= lsm-light.server.connection.password= lsm-light.server.minConnection=10 lsm-light.server.maxConnection=15 lsm-light.server.acquireRetryAttempts=5

for local virtuoso instance

lsm-light.server.localMetaGraph = http://test/sensormeta# lsm-light.server.localDataGraph = http://test/sensordta# lsm-light.client.connection.server = http://localhost:8080/lsm-light.server/ lsm-light.client.openiot.ontology.namespace = http://openiot.eu/ontology/ns/ lsm-light.client.openiot.resource.namespace = http://localhost/resource/ ###############################################################

Privacy and Security Module

############################################################### security.lsm.sparql.endpoint=http://localhost:8890/sparql security.lsm.graphURL=http://localhost/OpenIoT/OAuth# security.signup.useCaptcha=false security.automaticServiceSetup=true security.initialize.admin.username=admin

md5 hashed of 'secret': 5ebe2294ecd0e0f08eab7690d2a6ee69

security.initialize.admin.password=secret security.initialize.admin.email=admin@openiot.eu security.initialize.lsmserver.username=lsmuser security.initialize.lsmserver.password=lsmuserpass security.initialize.scheduler.username=scheduleruser security.initialize.scheduler.password=scheduleruserpass security.initialize.sdum.username=sdumruser security.initialize.sdum.password=sdumuserpass security.initialize.xgsn.username=gsnuser security.initialize.xgsn.password=gsnpass security.initialize.cas.prefix=https://localhost:8443/openiot-cas security.initialize.management.prefix=http://localhost:8080/security.management security.initialize.management.secret=openiot-security-manager-app-secret security.initialize.management.key=openiot-security-manager-app security.initialize.reqDef.prefix=http://localhost:8080/ui.requestDefinition security.initialize.reqDef.secret=requestDefinitionUI-secret security.initialize.reqDef.key=requestDefinitionUI security.initialize.reqPres.prefix=http://localhost:8080/ui.requestPresentation security.initialize.reqPres.secret=requestPresentationUI-secret security.initialize.reqPres.key=requestPresentationUI security.initialize.schemaEditor.prefix=http://localhost:8080/ui.schemaeditor security.initialize.schemaEditor.key=schemaEditor security.initialize.schemaEditor.secret=schemaEditor-secret security.initialize.scheduler.key=scheduler security.initialize.scheduler.secret=scheduler.secret security.initialize.sdum.key=sdum security.initialize.sdum.secret=sdum.secret security.initialize.xgsn.key=xgsn security.initialize.xgsn.secret=xgsn.secret

webapp name:key:secret:display name

security.demoWebappServices=[ui.requestDefinition:requestDefinitionUI:requestDefinitionUI-secret:RequestDefinition][ui.requestPresentation:requestPresentationUI:requestPresentationUI-secret:RequestPresentation]

comma separated service keys for REST services and webapp name for web application

security.demoServices=scheduler,sdum,ui.requestDefinition,ui.requestPresentation

CAS properties

server.name=https://localhost:8443 server.prefix=${server.name}/openiot-cas cas.securityContext.serviceProperties.service=${server.prefix}/services/j_acegi_cas_security_check cas.securityContext.casProcessingFilterEntryPoint.loginUrl=${server.prefix}/login cas.securityContext.ticketValidator.casServerUrlPrefix=${server.prefix}

IP address or CIDR subnet allowed to access the /status URI of CAS that exposes health check information

cas.securityContext.status.allowedSubnet=127.0.0.1

Unique CAS node name

host.name is used to generate unique Service Ticket IDs and SAMLArtifacts. This is usually set to the specific

hostname of the machine running the CAS node, but it could be any label so long as it is unique in the cluster.

host.name=openiot.eu

tgt.maxTimeToLiveInSeconds=28800

Idle session timeout - TGT will expire sooner than maxTimeToLiveInSeconds if no further requests

for STs occur within timeToKillInSeconds

tgt.timeToKillInSeconds=7200

Service Ticket timeout - typically kept short as a control against replay attacks, default is 10s. You'll want to

increase this timeout if you are manually testing service ticket creation/validation via tamperdata or similar tools

st.timeToKillInSeconds=300

The start delay (in milliseconds) of the scheduler for reloading services

service.registry.quartz.reloader.startDelay=30000

QoS Manager

qos.name=QualityOfService qos.brokerIP=localhost qos.brokerPort=10000

qos.gsnAddress=localhost:22001 qos.wrapperPort=30000

qos.numberOfSensors = 3 qos.highBatteryLevel = 70 qos.lowBatteryLevel = 30

qos.sensorParameters = Temperature,Humidity,Pressure,NO2,SO2,CO,BatteryS,BatteryMP,Area,Timestamp,SensorID,Latitude,Longitude qos.sensorTypes = double,double,double,double,double,double,double,double,string,bigint,string,double,double qos.lsmProperty = http://localhost/OpenIoT/Temperature,http://localhost/OpenIoT/Humidity,http://localhost/OpenIoT/Pressure,http://localhost/OpenIoT/NO2,http://localhost/OpenIoT/SO2,http://localhost/OpenIoT/CO,http://localhost/OpenIoT/BatterySensor,http://localhost/OpenIoT/BatteryMobilePhone,http://localhost/OpenIoT/Area,http://localhost/OpenIoT/Timestamp,http://localhost/OpenIoT/SensorID,http://localhost/OpenIoT/Latitude,http://localhost/OpenIoT/Longitude qos.lsmUnit = C,Percent,hPa,ug/m3,ug/m3,mg/m3,Percent,Percent,Unit,Unit,Unit,Unit,Unit qos.testing = true qos.logWriting = true

Annmeng commented 8 years ago

My jboss running state : op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 23:36:46,970 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 23:36:46,971 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 23:36:46,972 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:36:46,973 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:36:46,974 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 23:36:46,975 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 23:36:46,977 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 23:36:46,978 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 23:36:46,979 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 23:36:46,980 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 23:36:46,982 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 23:38:45,940 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 23:38:45,942 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 23:38:45,945 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 23:38:46,949 ERROR stderr HttpException: -404 Failed to c onnect to remote server 23:38:46,951 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 23:38:46,953 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 23:38:46,955 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 23:38:46,957 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 23:38:46,959 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 23:38:46,962 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 23:38:46,964 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 23:38:46,966 ERROR stderr at sun.reflect.Generated MethodAccessor55.invoke(Unknown Source) 23:38:46,968 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:38:46,970 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:38:46,973 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 23:38:46,975 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 23:38:46,976 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 23:38:46,978 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 23:38:46,979 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 23:38:46,980 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 23:38:46,982 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 23:38:46,983 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 23:38:46,984 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:38:46,985 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:38:46,986 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 23:38:46,987 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 23:38:46,991 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 23:38:46,992 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 23:38:46,993 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 23:38:46,994 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 23:38:46,996 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 23:39:22,791 INFO stdout [CAS] ERROR o.j.c.s.o.w.OAu th20AuthorizeController - Unknown clientId : openiot-security-manager-app 23:40:45,940 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 23:40:45,942 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 23:40:45,944 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 23:40:46,949 ERROR stderr HttpException: -404 Failed to c onnect to remote server 23:40:46,951 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 23:40:46,953 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 23:40:46,955 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 23:40:46,957 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 23:40:46,959 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 23:40:46,962 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 23:40:46,964 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 23:40:46,966 ERROR stderr at sun.reflect.Generated MethodAccessor55.invoke(Unknown Source) 23:40:46,968 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:40:46,970 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:40:46,972 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 23:40:46,974 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 23:40:46,975 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 23:40:46,977 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 23:40:46,978 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 23:40:46,979 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 23:40:46,980 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 23:40:46,981 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 23:40:46,982 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:40:46,983 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:40:46,984 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 23:40:46,985 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 23:40:46,987 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 23:40:46,988 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 23:40:46,989 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 23:40:46,990 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 23:40:46,991 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 23:42:45,940 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 23:42:45,942 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 23:42:45,944 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 23:42:46,948 ERROR stderr HttpException: -404 Failed to c onnect to remote server 23:42:46,950 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 23:42:46,952 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 23:42:46,954 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 23:42:46,956 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 23:42:46,958 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 23:42:46,961 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 23:42:46,963 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 23:42:46,965 ERROR stderr at sun.reflect.Generated MethodAccessor55.invoke(Unknown Source) 23:42:46,967 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:42:46,969 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:42:46,971 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 23:42:46,973 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 23:42:46,975 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 23:42:46,977 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 23:42:46,978 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 23:42:46,980 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 23:42:46,981 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 23:42:46,982 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 23:42:46,983 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:42:46,985 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:42:46,986 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 23:42:46,987 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 23:42:46,989 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 23:42:46,991 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 23:42:46,992 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 23:42:46,993 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 23:42:46,995 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 23:44:45,940 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 23:44:45,943 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 23:44:45,946 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 23:44:46,950 ERROR stderr HttpException: -404 Failed to c onnect to remote server 23:44:46,952 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 23:44:46,954 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 23:44:46,956 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 23:44:46,959 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 23:44:46,961 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 23:44:46,963 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 23:44:46,965 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 23:44:46,968 ERROR stderr at sun.reflect.Generated MethodAccessor55.invoke(Unknown Source) 23:44:46,969 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:44:46,972 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:44:46,973 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 23:44:46,975 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 23:44:46,977 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 23:44:46,978 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 23:44:46,979 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 23:44:46,980 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 23:44:46,982 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 23:44:46,982 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 23:44:46,983 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:44:46,984 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 23:44:46,985 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 23:44:46,986 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 23:44:46,987 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 23:44:46,989 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 23:44:46,990 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 23:44:46,991 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 23:44:46,992 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. How can I solve that and log in successfully?

Annmeng commented 8 years ago

I replaced all "lsm.deri.ie" of "localhost" in all the properties.And it still presented "Not Authorized to Use CAS".Please help me to find where the problem is?

nmqhoan commented 8 years ago

Can you please show the configuration file? And which step you got the waring ³Not Authorized to Use CAS²?

Best, Hoan

From: Annmeng notifications@github.com Reply-To: OpenIotOrg/openiot <reply+0036d653e26ba1236160d2c37efc2dcbc124de35a2dd2bc192cf00000001135d6b139 2a169ce0952d92c@reply.github.com> Date: Wednesday 25 May 2016 14:30 To: OpenIotOrg/openiot openiot@noreply.github.com Subject: Re: [OpenIotOrg/openiot] Error in logging in as not logging out CAS. (#130)

I replaced all "lsm.deri.ie" of "localhost" in all the properties.And it still presented "Not Authorized to Use CAS".Please help me to find where the problem is?

‹ You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/OpenIotOrg/openiot/issues/130#issuecomment-221576487

Annmeng commented 8 years ago

After I registered,and the I logged in with created user.It waring ³Not Authorized to Use CAS..But I really logged out CAS before that.**The configuration file as follows: security-config:** @BEGIN-scheduler

[main]

casOauthClient=org.openiot.security.client.rest.CasOAuthWrapperClientRest casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.casOAuthRestUrl=https://localhost:8443/openiot-cas/openiot1/tickets casOauthClient.key=scheduler casOauthClient.secret=scheduler.secret

Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/sth/callback clients.clientsList = $casOauthClient

clientsRealm = org.openiot.security.client.rest.CasOAuthClientRealmRest clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

@END-scheduler

################################################################################

@BEGIN-sdum

[main]

casOauthClient=org.openiot.security.client.rest.CasOAuthWrapperClientRest casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.casOAuthRestUrl=https://localhost:8443/openiot-cas/openiot1/tickets casOauthClient.key=sdum casOauthClient.secret=sdum.secret

Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/sth/callback clients.clientsList = $casOauthClient

clientsRealm = org.openiot.security.client.rest.CasOAuthClientRealmRest clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

@END-sdum

################################################################################

@BEGIN-lsm-server

[main]

casOauthClient=org.openiot.security.client.rest.CasOAuthWrapperClientRest casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.casOAuthRestUrl=https://localhost:8443/openiot-cas/openiot1/tickets casOauthClient.key=lsm-server casOauthClient.secret=lsm-server.secret

Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/sth/callback clients.clientsList = $casOauthClient

clientsRealm = org.openiot.security.client.rest.CasOAuthClientRealmRest clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

@END-lsm-server

################################################################################

@BEGIN-security.management

[main]

casOauthClient=org.pac4j.oauth.client.CasOAuthWrapperClient casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.key=openiot-security-manager-app casOauthClient.secret=openiot-security-manager-app-secret

Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/security.management/callback clients.clientsList = $casOauthClient

clientsFilter = org.openiot.security.client.CasOAuthClientFilter clientsFilter.clients = $clients clientsFilter.failureUrl = /error.xhtml

casOauthRoles = io.buji.pac4j.filter.ClientRolesAuthorizationFilter casOauthRoles.client = $casOauthClient

casOauthUsers = io.buji.pac4j.filter.ClientUserFilter casOauthUsers.client = $casOauthClient

clientsRealm = org.openiot.security.client.CasOAuthClientRealm clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

Using a shiro native session manager instead of the Servlet containers sessions

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager

1,800,000 milliseconds = 30 seconds

sessionManager.globalSessionTimeout=1800000 securityManager.sessionManager = $sessionManager

cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager cacheManager.cacheManagerConfigFile=classpath:ehcache-sec-client.xml securityManager.cacheManager = $cacheManager

[urls]

NOTE: Order matters! The first match wins.

/logout = logout /callback = clientsFilter /signup.xhtml = anon /index.* = anon /index = anon /home.* = anon /error.xhtml = anon

/roles.* = anon

/users.* = anon

/perms.* = anon

/home = anon /javax.faces./* = anon /?/* = casOauthRoles[ROLE_USER]

@END-security.management

################################################################################

@BEGIN-requestDefinition

[main]

casOauthClient=org.pac4j.oauth.client.CasOAuthWrapperClient casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.key=requestDefinitionUI casOauthClient.secret=requestDefinitionUI-secret

Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/ui.requestDefinition/callback clients.clientsList = $casOauthClient

clientsFilter = org.openiot.security.client.CasOAuthClientFilter clientsFilter.clients = $clients clientsFilter.failureUrl = /pages/error.xhtml

casOauthRoles = io.buji.pac4j.filter.ClientRolesAuthorizationFilter casOauthRoles.client = $casOauthClient

casOauthUsers = io.buji.pac4j.filter.ClientUserFilter casOauthUsers.client = $casOauthClient

clientsRealm = org.openiot.security.client.CasOAuthClientRealm clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

Using a shiro native session manager instead of the Servlet containers sessions

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager

1,800,000 milliseconds = 30 seconds

sessionManager.globalSessionTimeout=1800000 securityManager.sessionManager = $sessionManager

[urls]

NOTE: Order matters! The first match wins.

/logout = logout /callback = clientsFilter /index.* = anon /index = anon /pages/error.xhtml = anon /pages/login.xhtml = anon /javax.faces./* = anon /?/* = casOauthRoles[ROLE_USER]

@END-requestDefinition

################################################################################

@BEGIN-requestPresentation

[main]

casOauthClient=org.pac4j.oauth.client.CasOAuthWrapperClient casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.key=requestPresentationUI casOauthClient.secret=requestPresentationUI-secret

Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/ui.requestPresentation/callback clients.clientsList = $casOauthClient

clientsFilter = org.openiot.security.client.CasOAuthClientFilter clientsFilter.clients = $clients clientsFilter.failureUrl = /pages/error.xhtml

casOauthRoles = io.buji.pac4j.filter.ClientRolesAuthorizationFilter casOauthRoles.client = $casOauthClient

casOauthUsers = io.buji.pac4j.filter.ClientUserFilter casOauthUsers.client = $casOauthClient

clientsRealm = org.openiot.security.client.CasOAuthClientRealm clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

Using a shiro native session manager instead of the Servlet containers sessions

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager

1,800,000 milliseconds = 30 seconds

sessionManager.globalSessionTimeout=1800000 securityManager.sessionManager = $sessionManager

[urls]

NOTE: Order matters! The first match wins.

/logout = logout /callback = clientsFilter /index.* = anon /index = anon /pages/error.xhtml = anon /pages/login.xhtml = anon /javax.faces./* = anon /?/* = casOauthRoles[ROLE_USER]

@END-requestPresentation

################################################################################

################################################################################

@BEGIN-schemaEditor

[main]

casOauthClient=org.pac4j.oauth.client.CasOAuthWrapperClient casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.key=schemaEditor casOauthClient.secret=schemaEditor-secret

Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/ui.schemaeditor/callback clients.clientsList = $casOauthClient

clientsFilter = org.openiot.security.client.CasOAuthClientFilter clientsFilter.clients = $clients clientsFilter.failureUrl = /error.xhtml

casOauthRoles = io.buji.pac4j.filter.ClientRolesAuthorizationFilter casOauthRoles.client = $casOauthClient

casOauthUsers = io.buji.pac4j.filter.ClientUserFilter casOauthUsers.client = $casOauthClient

clientsRealm = org.openiot.security.client.CasOAuthClientRealm clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

Using a shiro native session manager instead of the Servlet containers sessions

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager

1,800,000 milliseconds = 30 seconds

sessionManager.globalSessionTimeout=1800000 securityManager.sessionManager = $sessionManager

[urls]

NOTE: Order matters! The first match wins.

/logout = logout /callback = clientsFilter /index.* = anon /index = anon /navigator.xhtml = casOauthRoles[ROLE_USER] /sensortypeeditor.xhtml = casOauthRoles[ROLE_USER] /sensorinstanceeditor.xhtml = casOauthRoles[ROLE_USER] /ui.schemaeditor/* = casOauthRoles[ROLEUSER] /javax.faces./_\ = anon

@END-schemaEditor

################################################################################ openiot-properties: #######################################################################

IDE Navigation Properties

----------------------------------------------------------------------

Declare a Navigation Module to be displayed on the IDE:

1. The prefix ide.core.navigation is mandatory

ide.core.navigation

2. Follow the prefix with any unique name for the module

ide.core.navigation.{uniquename} <----change me

3. Apply the 3 suffixes (title, url, monitoring) to the end:

- title = the tile that will appear on the menu item

- url = the absolute host of the module

- monitoring = indicate by true or false

if the javamelody monitoring option

is active on the specific module

#

Template:

ide.core.navigation.{uniquename}.title={menu item title}

ide.core.navigation.{uniquename}.url={module url}

ide.core.navigation.{uniquename}.monitoring=true/false

----------------------------------------------------------------------

#######################################################################

Request Definition

ide.core.navigation.requestDefinition.title=Request Definition ide.core.navigation.requestDefinition.url=http://localhost:8080/ui.requestDefinition/pages/applicationDesign.xhtml ide.core.navigation.requestDefinition.monitoring=true

Request Presentation

ide.core.navigation.requestPresentation.title=Request Presentation ide.core.navigation.requestPresentation.url=http://localhost:8080/ui.requestPresentation/pages/requestPresentation.xhtml ide.core.navigation.requestPresentation.monitoring=true

Sensor Schema Editor

ide.core.navigation.sensorSchemaEditor.title=Sensor Schema Editor ide.core.navigation.sensorSchemaEditor.url=http://localhost:8080/ui.schemaeditor ide.core.navigation.sensorSchemaEditor.monitoring=true

Scheduler Properties

scheduler.core.lsm.openiotMetaGraph=http://localhost/OpenIoT/guest/sensormeta# scheduler.core.lsm.openiotDataGraph=http://localhost/OpenIoT/guest/sensordata# scheduler.core.lsm.openiotFunctionalGraph=http://localhost/OpenIoT/guest/functional# scheduler.core.lsm.access.username=openiot_guest scheduler.core.lsm.access.password=openiot scheduler.core.lsm.sparql.endpoint=http://localhost/sparql scheduler.core.lsm.remote.server=http://localhost/lsm-light.server/

Service Delivery & Utility Manager (SD&UM) Properties

sdum.core.lsm.openiotFunctionalGraph=http://localhost/OpenIoT/guest/functional# sdum.core.lsm.sparql.endpoint=http://localhost/sparql sdum.core.lsm.remote.server=http://localhost/lsm-light.server/

Request Definition

request.commons.scheduler.core.host.url=http://localhost:8080/scheduler.core request.commons.sdum.core.host.url=http://localhost:8080/sdum.core

Request Presentation

LSM-LIGHT Properties

lsm-light.server.connection.driver_class=virtuoso.jdbc4.Driver lsm-light.server.connection.url=jdbc:virtuoso://localhost:1111/log_enable=2

lsm-light.server.connection.username= lsm-light.server.connection.password= lsm-light.server.minConnection=10 lsm-light.server.maxConnection=15 lsm-light.server.acquireRetryAttempts=5

for local virtuoso instance

lsm-light.server.localMetaGraph = http://test/sensormeta# lsm-light.server.localDataGraph = http://test/sensordta# lsm-light.client.connection.server = http://localhost:8080/lsm-light.server/ lsm-light.client.openiot.ontology.namespace = http://openiot.eu/ontology/ns/ lsm-light.client.openiot.resource.namespace = http://localhost/resource/ ###############################################################

Privacy and Security Module

############################################################### security.lsm.sparql.endpoint=http://localhost:8890/sparql security.lsm.graphURL=http://localhost/OpenIoT/OAuth# security.signup.useCaptcha=false security.automaticServiceSetup=true security.initialize.admin.username=admin

md5 hashed of 'secret': 5ebe2294ecd0e0f08eab7690d2a6ee69

security.initialize.admin.password=secret security.initialize.admin.email=admin@openiot.eu security.initialize.lsmserver.username=lsmuser security.initialize.lsmserver.password=lsmuserpass security.initialize.scheduler.username=scheduleruser security.initialize.scheduler.password=scheduleruserpass security.initialize.sdum.username=sdumruser security.initialize.sdum.password=sdumuserpass security.initialize.xgsn.username=gsnuser security.initialize.xgsn.password=gsnpass security.initialize.cas.prefix=https://localhost:8443/openiot-cas security.initialize.management.prefix=http://localhost:8080/security.management security.initialize.management.secret=openiot-security-manager-app-secret security.initialize.management.key=openiot-security-manager-app security.initialize.reqDef.prefix=http://localhost:8080/ui.requestDefinition security.initialize.reqDef.secret=requestDefinitionUI-secret security.initialize.reqDef.key=requestDefinitionUI security.initialize.reqPres.prefix=http://localhost:8080/ui.requestPresentation security.initialize.reqPres.secret=requestPresentationUI-secret security.initialize.reqPres.key=requestPresentationUI security.initialize.schemaEditor.prefix=http://localhost:8080/ui.schemaeditor security.initialize.schemaEditor.key=schemaEditor security.initialize.schemaEditor.secret=schemaEditor-secret security.initialize.scheduler.key=scheduler security.initialize.scheduler.secret=scheduler.secret security.initialize.sdum.key=sdum security.initialize.sdum.secret=sdum.secret security.initialize.xgsn.key=xgsn security.initialize.xgsn.secret=xgsn.secret

webapp name:key:secret:display name

security.demoWebappServices=[ui.requestDefinition:requestDefinitionUI:requestDefinitionUI-secret:RequestDefinition][ui.requestPresentation:requestPresentationUI:requestPresentationUI-secret:RequestPresentation]

comma separated service keys for REST services and webapp name for web application

security.demoServices=scheduler,sdum,ui.requestDefinition,ui.requestPresentation

CAS properties

server.name=https://localhost:8443 server.prefix=${server.name}/openiot-cas cas.securityContext.serviceProperties.service=${server.prefix}/services/j_acegi_cas_security_check cas.securityContext.casProcessingFilterEntryPoint.loginUrl=${server.prefix}/login cas.securityContext.ticketValidator.casServerUrlPrefix=${server.prefix}

IP address or CIDR subnet allowed to access the /status URI of CAS that exposes health check information

cas.securityContext.status.allowedSubnet=127.0.0.1

Unique CAS node name

host.name is used to generate unique Service Ticket IDs and SAMLArtifacts. This is usually set to the specific

hostname of the machine running the CAS node, but it could be any label so long as it is unique in the cluster.

host.name=openiot.eu

tgt.maxTimeToLiveInSeconds=28800

Idle session timeout - TGT will expire sooner than maxTimeToLiveInSeconds if no further requests

for STs occur within timeToKillInSeconds

tgt.timeToKillInSeconds=7200

Service Ticket timeout - typically kept short as a control against replay attacks, default is 10s. You'll want to

increase this timeout if you are manually testing service ticket creation/validation via tamperdata or similar tools

st.timeToKillInSeconds=300

The start delay (in milliseconds) of the scheduler for reloading services

service.registry.quartz.reloader.startDelay=30000

QoS Manager

qos.name=QualityOfService qos.brokerIP=localhost qos.brokerPort=10000

qos.gsnAddress=localhost:22001 qos.wrapperPort=30000

qos.numberOfSensors = 3 qos.highBatteryLevel = 70 qos.lowBatteryLevel = 30

qos.sensorParameters = Temperature,Humidity,Pressure,NO2,SO2,CO,BatteryS,BatteryMP,Area,Timestamp,SensorID,Latitude,Longitude qos.sensorTypes = double,double,double,double,double,double,double,double,string,bigint,string,double,double qos.lsmProperty = http://localhost/OpenIoT/Temperature,http://localhost/OpenIoT/Humidity,http://localhost/OpenIoT/Pressure,http://localhost/OpenIoT/NO2,http://localhost/OpenIoT/SO2,http://localhost/OpenIoT/CO,http://localhost/OpenIoT/BatterySensor,http://localhost/OpenIoT/BatteryMobilePhone,http://localhost/OpenIoT/Area,http://localhost/OpenIoT/Timestamp,http://localhost/OpenIoT/SensorID,http://localhost/OpenIoT/Latitude,http://localhost/OpenIoT/Longitude qos.lsmUnit = C,Percent,hPa,ug/m3,ug/m3,mg/m3,Percent,Percent,Unit,Unit,Unit,Unit,Unit qos.testing = true qos.logWriting = true Thanks

premjayaraman commented 8 years ago

can you login with the user admin pwd: secret

On Thu, May 26, 2016 at 1:53 PM, Annmeng notifications@github.com wrote:

_After I registered,and the I logged in with created user.It waring ³Not Authorized to Use CAS..But I really logged out CAS before that._The configuration file as follows: security-config: @BEGIN-scheduler

[main]

casOauthClient=org.openiot.security.client.rest.CasOAuthWrapperClientRest casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.casOAuthRestUrl= https://localhost:8443/openiot-cas/openiot1/tickets casOauthClient.key=scheduler casOauthClient.secret=scheduler.secret Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/sth/callback clients.clientsList = $casOauthClient

clientsRealm = org.openiot.security.client.rest.CasOAuthClientRealmRest clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

@END-scheduler

################################################################################

@BEGIN-sdum

[main]

casOauthClient=org.openiot.security.client.rest.CasOAuthWrapperClientRest casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.casOAuthRestUrl= https://localhost:8443/openiot-cas/openiot1/tickets casOauthClient.key=sdum casOauthClient.secret=sdum.secret Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/sth/callback clients.clientsList = $casOauthClient

clientsRealm = org.openiot.security.client.rest.CasOAuthClientRealmRest clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

@END-sdum

################################################################################

@BEGIN-lsm-server

[main]

casOauthClient=org.openiot.security.client.rest.CasOAuthWrapperClientRest casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.casOAuthRestUrl= https://localhost:8443/openiot-cas/openiot1/tickets casOauthClient.key=lsm-server casOauthClient.secret=lsm-server.secret Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/sth/callback clients.clientsList = $casOauthClient

clientsRealm = org.openiot.security.client.rest.CasOAuthClientRealmRest clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients

@END-lsm-server

################################################################################

@BEGIN-security.management

[main]

casOauthClient=org.pac4j.oauth.client.CasOAuthWrapperClient casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.key=openiot-security-manager-app casOauthClient.secret=openiot-security-manager-app-secret Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/security.management/callback clients.clientsList = $casOauthClient

clientsFilter = org.openiot.security.client.CasOAuthClientFilter clientsFilter.clients = $clients clientsFilter.failureUrl = /error.xhtml

casOauthRoles = io.buji.pac4j.filter.ClientRolesAuthorizationFilter casOauthRoles.client = $casOauthClient

casOauthUsers = io.buji.pac4j.filter.ClientUserFilter casOauthUsers.client = $casOauthClient

clientsRealm = org.openiot.security.client.CasOAuthClientRealm clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients Using a shiro native session manager instead of the Servlet containers sessions

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager 1,800,000 milliseconds = 30 seconds

sessionManager.globalSessionTimeout=1800000 securityManager.sessionManager = $sessionManager

cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager cacheManager.cacheManagerConfigFile=classpath:ehcache-sec-client.xml securityManager.cacheManager = $cacheManager

[urls] NOTE: Order matters! The first match wins.

/logout = logout /callback = clientsFilter /signup.xhtml = anon /index.* = anon /index = anon /home.* = anon /error.xhtml = anon

/roles.* = anon

/users.* = anon

/perms.* = anon

/home = anon /javax.faces./* = anon /?/* = casOauthRoles[ROLE_USER]

@END-security.management

################################################################################

@BEGIN-requestDefinition

[main]

casOauthClient=org.pac4j.oauth.client.CasOAuthWrapperClient casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.key=requestDefinitionUI casOauthClient.secret=requestDefinitionUI-secret Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/ui.requestDefinition/callback clients.clientsList = $casOauthClient

clientsFilter = org.openiot.security.client.CasOAuthClientFilter clientsFilter.clients = $clients clientsFilter.failureUrl = /pages/error.xhtml

casOauthRoles = io.buji.pac4j.filter.ClientRolesAuthorizationFilter casOauthRoles.client = $casOauthClient

casOauthUsers = io.buji.pac4j.filter.ClientUserFilter casOauthUsers.client = $casOauthClient

clientsRealm = org.openiot.security.client.CasOAuthClientRealm clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients Using a shiro native session manager instead of the Servlet containers sessions

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager 1,800,000 milliseconds = 30 seconds

sessionManager.globalSessionTimeout=1800000 securityManager.sessionManager = $sessionManager

[urls] NOTE: Order matters! The first match wins.

/logout = logout /callback = clientsFilter /index.* = anon /index = anon /pages/error.xhtml = anon /pages/login.xhtml = anon /javax.faces./* = anon /?/* = casOauthRoles[ROLE_USER]

@END-requestDefinition

################################################################################

@BEGIN-requestPresentation

[main]

casOauthClient=org.pac4j.oauth.client.CasOAuthWrapperClient casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.key=requestPresentationUI casOauthClient.secret=requestPresentationUI-secret Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/ui.requestPresentation/callback clients.clientsList = $casOauthClient

clientsFilter = org.openiot.security.client.CasOAuthClientFilter clientsFilter.clients = $clients clientsFilter.failureUrl = /pages/error.xhtml

casOauthRoles = io.buji.pac4j.filter.ClientRolesAuthorizationFilter casOauthRoles.client = $casOauthClient

casOauthUsers = io.buji.pac4j.filter.ClientUserFilter casOauthUsers.client = $casOauthClient

clientsRealm = org.openiot.security.client.CasOAuthClientRealm clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients Using a shiro native session manager instead of the Servlet containers sessions

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager 1,800,000 milliseconds = 30 seconds

sessionManager.globalSessionTimeout=1800000 securityManager.sessionManager = $sessionManager

[urls] NOTE: Order matters! The first match wins.

/logout = logout /callback = clientsFilter /index.* = anon /index = anon /pages/error.xhtml = anon /pages/login.xhtml = anon /javax.faces./* = anon /?/* = casOauthRoles[ROLE_USER]

@END-requestPresentation

################################################################################

################################################################################

@BEGIN-schemaEditor

[main]

casOauthClient=org.pac4j.oauth.client.CasOAuthWrapperClient casOauthClient.casOAuthUrl=https://localhost:8443/openiot-cas/oauth2.0 casOauthClient.key=schemaEditor casOauthClient.secret=schemaEditor-secret Sets the callbackUrl for each client in the list

clients = org.pac4j.core.client.Clients clients.callbackUrl = http://localhost:8080/ui.schemaeditor/callback clients.clientsList = $casOauthClient

clientsFilter = org.openiot.security.client.CasOAuthClientFilter clientsFilter.clients = $clients clientsFilter.failureUrl = /error.xhtml

casOauthRoles = io.buji.pac4j.filter.ClientRolesAuthorizationFilter casOauthRoles.client = $casOauthClient

casOauthUsers = io.buji.pac4j.filter.ClientUserFilter casOauthUsers.client = $casOauthClient

clientsRealm = org.openiot.security.client.CasOAuthClientRealm clientsRealm.permissionsURL = https://localhost:8443/openiot-cas/oauth2.0/permissions clientsRealm.defaultRoles = ROLE_USER clientsRealm.clients = $clients Using a shiro native session manager instead of the Servlet containers sessions

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager 1,800,000 milliseconds = 30 seconds

sessionManager.globalSessionTimeout=1800000 securityManager.sessionManager = $sessionManager

[urls] NOTE: Order matters! The first match wins.

/logout = logout /callback = clientsFilter /index.* = anon /index = anon /navigator.xhtml = casOauthRoles[ROLE_USER] /sensortypeeditor.xhtml = casOauthRoles[ROLE_USER] /sensorinstanceeditor.xhtml = casOauthRoles[ROLE_USER] /ui.schemaeditor/* = casOauthRoles[ROLEUSER] /javax.faces./_\ = anon

@END-schemaEditor

################################################################################ openiot-properties: ####################################################################### IDE Navigation Properties

----------------------------------------------------------------------

Declare a Navigation Module to be displayed on the IDE: 1. The prefix ide.core.navigation is mandatory ide.core.navigation 2. Follow the prefix with any unique name for the module ide.core.navigation.{uniquename} <----change me 3. Apply the 3 suffixes (title, url, monitoring) to the end: - title = the tile that will appear on the menu item - url = the absolute host of the module - monitoring = indicate by true or false if the javamelody monitoring option is active on the specific module

# Template: ide.core.navigation.{uniquename}.title={menu item title} ide.core.navigation.{uniquename}.url={module url} ide.core.navigation.{uniquename}.monitoring=true/false

----------------------------------------------------------------------

####################################################################### Request Definition

ide.core.navigation.requestDefinition.title=Request Definition ide.core.navigation.requestDefinition.url= http://localhost:8080/ui.requestDefinition/pages/applicationDesign.xhtml ide.core.navigation.requestDefinition.monitoring=true

Request Presentation

ide.core.navigation.requestPresentation.title=Request Presentation ide.core.navigation.requestPresentation.url= http://localhost:8080/ui.requestPresentation/pages/requestPresentation.xhtml ide.core.navigation.requestPresentation.monitoring=true

Sensor Schema Editor

ide.core.navigation.sensorSchemaEditor.title=Sensor Schema Editor ide.core.navigation.sensorSchemaEditor.url= http://localhost:8080/ui.schemaeditor ide.core.navigation.sensorSchemaEditor.monitoring=true

Scheduler Properties

scheduler.core.lsm.openiotMetaGraph= http://localhost/OpenIoT/guest/sensormeta# scheduler.core.lsm.openiotDataGraph= http://localhost/OpenIoT/guest/sensordata# scheduler.core.lsm.openiotFunctionalGraph= http://localhost/OpenIoT/guest/functional# scheduler.core.lsm.access.username=openiot_guest scheduler.core.lsm.access.password=openiot scheduler.core.lsm.sparql.endpoint=http://localhost/sparql scheduler.core.lsm.remote.server=http://localhost/lsm-light.server/

Service Delivery & Utility Manager (SD&UM) Properties

sdum.core.lsm.openiotFunctionalGraph= http://localhost/OpenIoT/guest/functional# sdum.core.lsm.sparql.endpoint=http://localhost/sparql sdum.core.lsm.remote.server=http://localhost/lsm-light.server/

Request Definition

request.commons.scheduler.core.host.url= http://localhost:8080/scheduler.core request.commons.sdum.core.host.url=http://localhost:8080/sdum.core

Request Presentation

LSM-LIGHT Properties

lsm-light.server.connection.driver_class=virtuoso.jdbc4.Driver lsm-light.server.connection.url=jdbc:virtuoso://localhost:1111/log_enable=2

lsm-light.server.connection.username= lsm-light.server.connection.password= lsm-light.server.minConnection=10 lsm-light.server.maxConnection=15 lsm-light.server.acquireRetryAttempts=5

for local virtuoso instance

lsm-light.server.localMetaGraph = http://test/sensormeta# lsm-light.server.localDataGraph = http://test/sensordta# lsm-light.client.connection.server = http://localhost:8080/lsm-light.server/ lsm-light.client.openiot.ontology.namespace = http://openiot.eu/ontology/ns/ lsm-light.client.openiot.resource.namespace = http://localhost/resource/ ############################################################### Privacy and Security Module

############################################################### security.lsm.sparql.endpoint=http://localhost:8890/sparql security.lsm.graphURL=http://localhost/OpenIoT/OAuth# security.signup.useCaptcha=false security.automaticServiceSetup=true security.initialize.admin.username=admin md5 hashed of 'secret': 5ebe2294ecd0e0f08eab7690d2a6ee69

security.initialize.admin.password=secret security.initialize.admin.email=admin@openiot.eu security.initialize.lsmserver.username=lsmuser security.initialize.lsmserver.password=lsmuserpass security.initialize.scheduler.username=scheduleruser security.initialize.scheduler.password=scheduleruserpass security.initialize.sdum.username=sdumruser security.initialize.sdum.password=sdumuserpass security.initialize.xgsn.username=gsnuser security.initialize.xgsn.password=gsnpass security.initialize.cas.prefix=https://localhost:8443/openiot-cas security.initialize.management.prefix= http://localhost:8080/security.management security.initialize.management.secret=openiot-security-manager-app-secret security.initialize.management.key=openiot-security-manager-app security.initialize.reqDef.prefix= http://localhost:8080/ui.requestDefinition security.initialize.reqDef.secret=requestDefinitionUI-secret security.initialize.reqDef.key=requestDefinitionUI security.initialize.reqPres.prefix= http://localhost:8080/ui.requestPresentation security.initialize.reqPres.secret=requestPresentationUI-secret security.initialize.reqPres.key=requestPresentationUI security.initialize.schemaEditor.prefix= http://localhost:8080/ui.schemaeditor security.initialize.schemaEditor.key=schemaEditor security.initialize.schemaEditor.secret=schemaEditor-secret security.initialize.scheduler.key=scheduler security.initialize.scheduler.secret=scheduler.secret security.initialize.sdum.key=sdum security.initialize.sdum.secret=sdum.secret security.initialize.xgsn.key=xgsn security.initialize.xgsn.secret=xgsn.secret

webapp name🔑secret:display name

security.demoWebappServices=[ui.requestDefinition:requestDefinitionUI:requestDefinitionUI-secret:RequestDefinition][ui.requestPresentation:requestPresentationUI:requestPresentationUI-secret:RequestPresentation]

comma separated service keys for REST services and webapp name for web

application

security.demoServices=scheduler,sdum,ui.requestDefinition,ui.requestPresentation CAS properties

server.name=https://localhost:8443 server.prefix=${server.name}/openiot-cas

cas.securityContext.serviceProperties.service=${server.prefix}/services/j_acegi_cas_security_check

cas.securityContext.casProcessingFilterEntryPoint.loginUrl=${server.prefix}/login cas.securityContext.ticketValidator.casServerUrlPrefix=${server.prefix} IP address or CIDR subnet allowed to access the /status URI of CAS that exposes health check information

cas.securityContext.status.allowedSubnet=127.0.0.1 Unique CAS node name host.name is used to generate unique Service Ticket IDs and SAMLArtifacts. This is usually set to the specific hostname of the machine running the CAS node, but it could be any label so long as it is unique in the cluster.

host.name=openiot.eu

tgt.maxTimeToLiveInSeconds=28800 Idle session timeout - TGT will expire sooner than maxTimeToLiveInSeconds if no further requests for STs occur within timeToKillInSeconds

tgt.timeToKillInSeconds=7200 Service Ticket timeout - typically kept short as a control against replay attacks, default is 10s. You'll want to increase this timeout if you are manually testing service ticket creation/validation via tamperdata or similar tools

st.timeToKillInSeconds=300 The start delay (in milliseconds) of the scheduler for reloading services

service.registry.quartz.reloader.startDelay=30000

QoS Manager

qos.name=QualityOfService qos.brokerIP=localhost qos.brokerPort=10000

qos.gsnAddress=localhost:22001 qos.wrapperPort=30000

qos.numberOfSensors = 3 qos.highBatteryLevel = 70 qos.lowBatteryLevel = 30

qos.sensorParameters = Temperature,Humidity,Pressure,NO2,SO2,CO,BatteryS,BatteryMP,Area,Timestamp,SensorID,Latitude,Longitude qos.sensorTypes = double,double,double,double,double,double,double,double,string,bigint,string,double,double qos.lsmProperty = http://localhost/OpenIoT/Temperature,http://localhost/OpenIoT/Humidity,http://localhost/OpenIoT/Pressure,http://localhost/OpenIoT/NO2,http://localhost/OpenIoT/SO2,http://localhost/OpenIoT/CO,http://localhost/OpenIoT/BatterySensor,http://localhost/OpenIoT/BatteryMobilePhone,http://localhost/OpenIoT/Area,http://localhost/OpenIoT/Timestamp,http://localhost/OpenIoT/SensorID,http://localhost/OpenIoT/Latitude,http://localhost/OpenIoT/Longitude qos.lsmUnit = C,Percent,hPa,ug/m3,ug/m3,mg/m3,Percent,Percent,Unit,Unit,Unit,Unit,Unit qos.testing = true qos.logWriting = true Thanks

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/OpenIotOrg/openiot/issues/130#issuecomment-221771271

Annmeng commented 8 years ago

I can't select "log in",once I did that and it showed Not Authorized to Use CAS

Annmeng commented 8 years ago

Please help... I'm going to hand in my final paper right now.Thanks a lot

premjayaraman commented 8 years ago

dear ann,

there has been a huge list of queries.

without pasting any outputs, could you please summarise the error you are facing and what you have done to fix them..

i can then try and help.

regards prem

On Fri, May 27, 2016 at 5:13 PM, Annmeng notifications@github.com wrote:

Please help... I'm going to hand in my final paper right now.Thanks a lot

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OpenIotOrg/openiot/issues/130#issuecomment-222076723, or mute the thread https://github.com/notifications/unsubscribe/ACCs__b2KyggCfIYzIS4fL3SG33wKqqUks5qFpmxgaJpZM4IlIJM .

Annmeng commented 8 years ago

1.I couldn't download jar from central repository when I installed openiot.And I sloved that by building private repository. 2.Then I found http://localhost:8080/lsm-light.server presents HTTP Status 404,and I solved that by replacing all "lsm.deri.ie" of "localhost" in all the properties file. 3.Now ,I am facing the problem that I can't log in as Not Authorized to Use CAS(But I logged out CAS before that...) Sincerely hope you will help me.

nmqhoan commented 8 years ago

Hi,

Instead of replacing all ³lsm.deri.ie² in the properties file, can you please reverse all the changes and only replace these properties as follows: lsm-light.server.connection.url=jdbc:virtuoso://localhost:1111/log_enable=2

Please let me know if it works.

Best,

Hoan

From: Annmeng notifications@github.com Reply-To: OpenIotOrg/openiot <reply+0036d653db9b4ccddba534e9668268d8f32162f08b3243e592cf00000001135fd2459 2a169ce0952d92c@reply.github.com> Date: Friday 27 May 2016 10:15 To: OpenIotOrg/openiot openiot@noreply.github.com Cc: Hoan Nguyen Mau Quoc nmqhoan@gmail.com, Comment comment@noreply.github.com Subject: Re: [OpenIotOrg/openiot] Error in logging in as not logging out CAS. (#130)

1.I couldn't download jar from central repository when I installed openiot.And I sloved that by building private repository. 2.Then I found http://localhost:8080/lsm-light.server presents HTTP Status 404,and I solved that by replacing all "lsm.deri.ie" of "localhost" in all the properties file. 3.Now ,I am facing the problem that I can't log in as Not Authorized to Use CAS(But I logged out CAS before that...) Sincerely hope you will help me.

‹ You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OpenIotOrg/openiot/issues/130#issuecomment-222099559 , or mute the thread https://github.com/notifications/unsubscribe/ADbWUwqgi032E9Dp2qKZNuENZB6Ivg 5Lks5qFrZFgaJpZM4IlIJM .

Annmeng commented 8 years ago

I follow your advice and restart jboss.But It still has the same problem.

Annmeng commented 8 years ago

jboss running state; 21:52:13,725 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 21:52:13,725 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 21:52:13,726 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 21:52:13,728 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 21:53:52,640 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 21:53:52,642 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 21:53:52,644 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://lsm.deri.ie:8890/sparql 21:54:13,656 ERROR stderr HttpException: -404 Failed to c onnect to remote server 21:54:13,658 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 21:54:13,660 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 21:54:13,662 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 21:54:13,664 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 21:54:13,666 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 21:54:13,669 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 21:54:13,671 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 21:54:13,673 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) 21:54:13,675 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 21:54:13,677 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 21:54:13,679 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 21:54:13,681 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 21:54:13,683 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 21:54:13,685 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 21:54:13,686 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 21:54:13,688 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 21:54:13,689 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 21:54:13,690 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 21:54:13,691 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) 21:54:13,692 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 21:54:13,694 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 21:54:13,695 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 21:54:13,696 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 21:54:13,697 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 21:54:13,699 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 21:54:13,702 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 21:54:13,703 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 21:54:13,704 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 21:54:13,706 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 21:55:34,317 INFO stdout [CAS] ERROR o.j.c.s.o.w.OAu th20AuthorizeController - Unknown clientId : openiot-security-manager-app 21:55:52,640 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 21:55:52,643 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 21:55:52,645 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://lsm.deri.ie:8890/sparql 21:56:13,659 ERROR stderr HttpException: -404 Failed to c onnect to remote server 21:56:13,661 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 21:56:13,664 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 21:56:13,666 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 21:56:13,668 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 21:56:13,671 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 21:56:13,674 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 21:56:13,676 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 21:56:13,679 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) 21:56:13,681 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 21:56:13,683 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 21:56:13,685 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 21:56:13,686 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 21:56:13,688 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 21:56:13,690 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 21:56:13,691 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 21:56:13,693 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 21:56:13,695 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 21:56:13,697 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 21:56:13,698 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) 21:56:13,699 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 21:56:13,701 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 21:56:13,703 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 21:56:13,704 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 21:56:13,705 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 21:56:13,707 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 21:56:13,709 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 21:56:13,710 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 21:56:13,712 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 21:56:13,714 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 21:57:52,640 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 21:57:52,645 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 21:57:52,648 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://lsm.deri.ie:8890/sparql 21:58:13,660 ERROR stderr HttpException: -404 Failed to c onnect to remote server 21:58:13,663 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 21:58:13,665 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 21:58:13,667 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 21:58:13,670 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 21:58:13,672 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 21:58:13,675 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 21:58:13,678 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 21:58:13,681 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) 21:58:13,683 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 21:58:13,685 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 21:58:13,686 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 21:58:13,687 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 21:58:13,689 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 21:58:13,691 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 21:58:13,692 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 21:58:13,694 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 21:58:13,695 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 21:58:13,696 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 21:58:13,697 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) 21:58:13,699 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 21:58:13,700 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 21:58:13,702 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 21:58:13,703 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 21:58:13,704 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 21:58:13,706 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 21:58:13,707 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 21:58:13,708 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 21:58:13,710 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 21:58:13,712 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 21:59:52,651 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 21:59:52,653 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 21:59:52,656 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://lsm.deri.ie:8890/sparql 22:00:13,678 ERROR stderr HttpException: -404 Failed to c onnect to remote server 22:00:13,680 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 22:00:13,682 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 22:00:13,684 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 22:00:13,687 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 22:00:13,690 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 22:00:13,693 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 22:00:13,695 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 22:00:13,699 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) 22:00:13,701 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 22:00:13,703 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 22:00:13,706 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 22:00:13,707 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 22:00:13,710 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 22:00:13,713 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 22:00:13,716 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 22:00:13,719 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 22:00:13,723 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 22:00:13,725 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 22:00:13,727 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) 22:00:13,729 ERROR stderr at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 22:00:13,732 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 22:00:13,735 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 22:00:13,736 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 22:00:13,738 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 22:00:13,742 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 22:00:13,744 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 22:00:13,745 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 22:00:13,747 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 22:00:13,749 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services.

nmqhoan commented 8 years ago

I still saw http://lsm.deri.ie:8890/sparql, can you replace the ³lsm.deri.ie² in the property file as follows:

security.lsm.sparql.endpoint=http://localhost:8890/sparql

All the SPARQL endpoint need to point to your local endpoint.

Best, Hoan

From: Annmeng notifications@github.com Reply-To: OpenIotOrg/openiot <reply+0036d653c9802ad99c409735c610e52f7a086960f1d379d292cf00000001136015459 2a169ce0952d92c@reply.github.com> Date: Friday 27 May 2016 15:01 To: OpenIotOrg/openiot openiot@noreply.github.com Cc: Hoan Nguyen Mau Quoc nmqhoan@gmail.com, Comment comment@noreply.github.com Subject: Re: [OpenIotOrg/openiot] Error in logging in as not logging out CAS. (#130)

http://lsm.deri.ie:8890/sparql

Annmeng commented 8 years ago

I tried after I modified the security.lsm.sparql.endpoint ,but sill failed.. jboss runing state: 7.reload(Unknown Source) 19:35:26,107 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:35:26,108 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:35:26,110 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:35:26,111 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:35:26,112 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:35:26,115 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:35:26,116 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:35:26,118 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:35:26,120 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:35:26,122 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 19:37:09,489 INFO stdout [CAS] ERROR o.j.c.s.o.w.OAu th20AuthorizeController - Unknown clientId : openiot-security-manager-app 19:37:24,697 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 19:37:24,700 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 19:37:24,702 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 19:37:25,738 ERROR stderr HttpException: -404 Failed to c onnect to remote server 19:37:25,740 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 19:37:25,742 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 19:37:25,745 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 19:37:25,747 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 19:37:25,750 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 19:37:25,753 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 19:37:25,756 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 19:37:25,758 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 19:37:25,760 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:37:25,763 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:37:25,765 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 19:37:25,768 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 19:37:25,771 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 19:37:25,773 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 19:37:25,774 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 19:37:25,775 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 19:37:25,777 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 19:37:25,778 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:37:25,779 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:37:25,781 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:37:25,782 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:37:25,784 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:37:25,785 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:37:25,787 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:37:25,788 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:37:25,792 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:37:25,794 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 19:37:51,348 INFO stdout [CAS] ERROR o.j.c.s.o.w.OAu th20AuthorizeController - Unknown clientId : openiot-security-manager-app 19:39:24,751 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 19:39:24,752 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 19:39:24,754 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 19:39:25,808 ERROR stderr HttpException: -404 Failed to c onnect to remote server 19:39:25,809 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 19:39:25,811 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 19:39:25,812 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 19:39:25,876 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 19:39:25,878 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 19:39:25,880 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 19:39:25,881 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 19:39:25,883 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 19:39:25,884 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:39:25,885 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:39:25,886 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 19:39:25,888 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 19:39:25,890 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 19:39:25,892 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 19:39:25,893 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 19:39:25,896 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 19:39:25,897 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 19:39:25,898 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:39:25,899 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:39:25,901 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:39:25,902 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:39:25,903 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:39:25,905 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:39:25,909 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:39:25,910 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:39:25,912 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:39:25,914 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 19:41:24,693 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 19:41:24,694 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 19:41:24,696 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 19:41:25,699 ERROR stderr HttpException: -404 Failed to c onnect to remote server 19:41:25,700 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 19:41:25,701 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 19:41:25,702 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 19:41:25,703 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 19:41:25,705 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 19:41:25,706 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 19:41:25,707 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 19:41:25,708 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 19:41:25,709 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:41:25,710 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:41:25,712 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 19:41:25,713 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 19:41:25,715 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 19:41:25,716 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 19:41:25,717 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 19:41:25,718 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 19:41:25,720 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 19:41:25,720 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:41:25,721 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:41:25,722 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:41:25,723 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:41:25,724 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:41:25,726 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:41:25,727 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:41:25,728 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:41:25,730 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:41:25,731 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 19:43:24,709 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 19:43:24,711 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 19:43:24,713 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 19:43:25,720 ERROR stderr HttpException: -404 Failed to c onnect to remote server 19:43:25,722 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 19:43:25,725 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 19:43:25,727 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 19:43:25,729 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 19:43:25,732 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 19:43:25,735 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 19:43:25,737 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 19:43:25,740 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 19:43:25,742 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:43:25,745 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:43:25,747 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 19:43:25,749 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) 19:43:25,752 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) 19:43:25,755 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) 19:43:25,758 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) 19:43:25,761 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 19:43:25,764 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 19:43:25,766 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:43:25,768 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:43:25,770 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:43:25,772 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:43:25,773 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:43:25,775 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:43:25,777 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:43:25,778 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:43:25,780 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:43:25,782 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services.

nmqhoan commented 8 years ago

Hi,

The reason is that your Virtuoso can not be connected. Can you please check your virtuoso server by logging to http://localhost:8890 and check if you are able to login with your usename & password?

Please let me know so we can move to the next step.

Best,

Hoan From: Annmeng notifications@github.com Reply-To: OpenIotOrg/openiot <reply+0036d65368495a8e39c23f98ebe12f720eb14d2909d0ad9792cf00000001136146c29 2a169ce0952d92c@reply.github.com> Date: Saturday 28 May 2016 12:45 To: OpenIotOrg/openiot openiot@noreply.github.com Cc: Hoan Nguyen Mau Quoc nmqhoan@gmail.com, Comment comment@noreply.github.com Subject: Re: [OpenIotOrg/openiot] Error in logging in as not logging out CAS. (#130)

I tried after I modified the security.lsm.sparql.endpoint ,but sill failed.. jboss runing state: 7.reload(Unknown Source) 19:35:26,107 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:35:26,108 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:35:26,110 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:35:26,111 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:35:26,112 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.execut eInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:35:26,115 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:35:26,116 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:35:26,118 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:35:26,120 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:35:26,122 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 19:37:09,489 INFO stdout [CAS] ERROR o.j.c.s.o.w.OAu th20AuthorizeController - Unknown clientId : openiot-security-manager-app 19:37:24,697 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 19:37:24,700 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 19:37:24,702 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 19:37:25,738 ERROR stderr HttpException: -404 Failed to c onnect to remote server 19:37:25,740 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 19:37:25,742 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 19:37:25,745 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 19:37:25,747 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 19:37:25,750 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 19:37:25,753 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 19:37:25,756 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 19:37:25,758 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 19:37:25,760 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:37:25,763 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:37:25,765 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 19:37:25,768 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvo cati on.java:183) 19:37:25,771 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j ava: 150) 19:37:25,773 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationIntercepto r.ja va:90) 19:37:25,774 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j ava: 172) 19:37:25,775 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 19:37:25,777 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 19:37:25,778 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:37:25,779 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:37:25,781 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:37:25,782 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:37:25,784 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.execut eInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:37:25,785 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:37:25,787 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:37:25,788 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:37:25,792 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:37:25,794 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 19:37:51,348 INFO stdout [CAS] ERROR o.j.c.s.o.w.OAu th20AuthorizeController - Unknown clientId : openiot-security-manager-app 19:39:24,751 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 19:39:24,752 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 19:39:24,754 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 19:39:25,808 ERROR stderr HttpException: -404 Failed to c onnect to remote server 19:39:25,809 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 19:39:25,811 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 19:39:25,812 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 19:39:25,876 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 19:39:25,878 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 19:39:25,880 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 19:39:25,881 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 19:39:25,883 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 19:39:25,884 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:39:25,885 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:39:25,886 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 19:39:25,888 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvo cati on.java:183) 19:39:25,890 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j ava: 150) 19:39:25,892 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationIntercepto r.ja va:90) 19:39:25,893 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j ava: 172) 19:39:25,896 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 19:39:25,897 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 19:39:25,898 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:39:25,899 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:39:25,901 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:39:25,902 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:39:25,903 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.execut eInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:39:25,905 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:39:25,909 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:39:25,910 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:39:25,912 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:39:25,914 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 19:41:24,693 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 19:41:24,694 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 19:41:24,696 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 19:41:25,699 ERROR stderr HttpException: -404 Failed to c onnect to remote server 19:41:25,700 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 19:41:25,701 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 19:41:25,702 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 19:41:25,703 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 19:41:25,705 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 19:41:25,706 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 19:41:25,707 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 19:41:25,708 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 19:41:25,709 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:41:25,710 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:41:25,712 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 19:41:25,713 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvo cati on.java:183) 19:41:25,715 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j ava: 150) 19:41:25,716 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationIntercepto r.ja va:90) 19:41:25,717 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j ava: 172) 19:41:25,718 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 19:41:25,720 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 19:41:25,720 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:41:25,721 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:41:25,722 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:41:25,723 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:41:25,724 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.execut eInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:41:25,726 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:41:25,727 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:41:25,728 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:41:25,730 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:41:25,731 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 19:43:24,709 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 19:43:24,711 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 19:43:24,713 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 19:43:25,720 ERROR stderr HttpException: -404 Failed to c onnect to remote server 19:43:25,722 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.execGet(HttpQuery.java:202) 19:43:25,725 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.HttpQuery.exec(HttpQuery.java:147) 19:43:25,727 ERROR stderr at com.hp.hpl.jena.sparq l.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:122) 19:43:25,729 ERROR stderr at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:414) 19:43:25,732 ERROR stderr at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) 19:43:25,735 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) 19:43:25,737 ERROR stderr at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) 19:43:25,740 ERROR stderr at sun.reflect.Generated MethodAccessor54.invoke(Unknown Source) 19:43:25,742 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:43:25,745 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:43:25,747 ERROR stderr at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) 19:43:25,749 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvo cati on.java:183) 19:43:25,752 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j ava: 150) 19:43:25,755 ERROR stderr at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationIntercepto r.ja va:90) 19:43:25,758 ERROR stderr at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j ava: 172) 19:43:25,761 ERROR stderr at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 19:43:25,764 ERROR stderr at com.sun.proxy.$Proxy7 7.reload(Unknown Source) 19:43:25,766 ERROR stderr at sun.reflect.Generated MethodAccessor53.invoke(Unknown Source) 19:43:25,768 ERROR stderr at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 19:43:25,770 ERROR stderr at java.lang.reflect.Met hod.invoke(Method.java:606) 19:43:25,772 ERROR stderr at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) 19:43:25,773 ERROR stderr at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.execut eInt ernal(MethodInvokingJobDetailFactoryBean.java:311) 19:43:25,775 ERROR stderr at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) 19:43:25,777 ERROR stderr at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) 19:43:25,778 ERROR stderr at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 19:43:25,780 INFO stdout [CAS] WARN o.o.s.o.l.LSMServic eRegistryDaoImpl - There was a problem loading services. Returning an empty list . 19:43:25,782 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services.

‹ You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OpenIotOrg/openiot/issues/130#issuecomment-222304396 , or mute the thread https://github.com/notifications/unsubscribe/ADbWU2uT4iowoRd1rZjCkMWJ9IGuiL Dgks5qGCrCgaJpZM4IlIJM .

Annmeng commented 8 years ago

I ran jboss at the same time keeped virtuoso running,and logged to http://localhost:8890/conduct with username :dba secret :123456.It still failed.Jboss running state: nce. 13:22:41,081 WARN [org.jboss.as.server.deployment](MSC service thread 1-1) Cla ss Path entry jaxb1-impl.jar in "/F:/jboss/bin/content/sdum.core.war/WEB-INF/lib /jaxb-impl-2.2.4.jar" does not point to a valid jar for a Class-Path reference.

13:22:41,124 WARN [org.jboss.as.server.deployment](MSC service thread 1-1) Cla ss Path entry xml-apis.jar in "/F:/jboss/bin/content/sdum.core.war/WEB-INF/lib/s erializer-2.7.1.jar" does not point to a valid jar for a Class-Path reference. 13:22:41,168 WARN [org.jboss.as.server.deployment](MSC service thread 1-1) Cla ss Path entry xercesImpl.jar in "/F:/jboss/bin/content/sdum.core.war/WEB-INF/lib /xalan-2.7.1.jar" does not point to a valid jar for a Class-Path reference. 13:22:41,170 WARN [org.jboss.as.server.deployment](MSC service thread 1-1) Cla ss Path entry xml-apis.jar in "/F:/jboss/bin/content/sdum.core.war/WEB-INF/lib/x alan-2.7.1.jar" does not point to a valid jar for a Class-Path reference. 13:22:41,198 WARN [org.jboss.as.server.deployment](MSC service thread 1-1) Cla ss Path entry serializer.jar in "/F:/jboss/bin/content/sdum.core.war/WEB-INF/lib /xalan-2.7.1.jar" does not point to a valid jar for a Class-Path reference. 13:22:43,288 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default- host].[/sdum.core]](MSC service thread 1-3) No Spring WebApplicationInitializer types detected on classpath 13:22:43,766 信息 [javax.enterprise.resource.webcontainer.jsf.config](MSC se rvice thread 1-3) 初始化上下文 '/sdum.core' 的 Mojarra 2.1.7-jbossorg-1 (2012022 7-1401) 13:22:48,934 INFO [stdout](MSC service thread 1-2) [CAS] INFO o.o.s.o.OpenIoT ServicesManagerImpl - Loaded 0 services. 13:22:49,730 INFO [org.jboss.web](MSC service thread 1-3) JBAS018210: Register ing web context: /sdum.core 13:22:51,092 INFO [stdout](MSC service thread 1-2) [CAS] INFO o.j.c.u.Autowir ingSchedulerFactoryBean - Starting Quartz Scheduler now 13:22:51,143 信息 [javax.enterprise.resource.webcontainer.jsf.config](MSC se rvice thread 1-2) 初始化上下文 '/openiot-cas' 的 Mojarra 2.1.7-jbossorg-1 (20120 227-1401) 13:22:53,666 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default- host].[/openiot-cas]](MSC service thread 1-2) Initializing Spring FrameworkServ let 'restlet' 13:22:54,138 INFO [stdout](MSC service thread 1-2) [CAS] WARN o.s.b.GenericTy peAwarePropertyDescriptor - Invalid JavaBean property 'attachments' being access ed! Ambiguous write methods found next to actually used [public void org.restlet .ext.spring.SpringRouter.setAttachments(java.util.Map)]: [public static void org .restlet.ext.spring.SpringRouter.setAttachments(org.restlet.Router,java.util.Map )] 13:22:54,189 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default- host].[/openiot-cas]](MSC service thread 1-2) Initializing Spring FrameworkServ let 'cas' 13:22:55,116 INFO [org.jboss.web](MSC service thread 1-2) JBAS018210: Register ing web context: /openiot-cas 13:22:55,244 INFO [org.jboss.as](MSC service thread 1-2) JBAS015951: Admin con sole listening on http://127.0.0.1:9990 13:22:55,246 INFO [org.jboss.as](MSC service thread 1-2) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 344189ms - Started 1591 of 1684 services (92 se rvices are passive or on-demand) 13:22:56,114 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "ui.schemaeditor.war" 13:22:56,116 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "ui.requestPresentation.war" 13:22:56,117 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "ui.requestDefinition.war" 13:22:56,118 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "security.management.war" 13:22:56,119 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "sdum.core.war" 13:22:56,119 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "scheduler.core.war" 13:22:56,120 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "openiot-cas.war" 13:22:56,121 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "lsm-light.server.war" 13:22:56,122 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) JBAS018 559: Deployed "ide.core.war" 13:23:19,095 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 13:23:19,098 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 13:23:19,099 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 13:23:21,378 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 13:25:19,068 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 13:25:19,070 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 13:25:19,072 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 13:25:19,233 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 13:27:19,068 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 13:27:19,071 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 13:27:19,074 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 13:27:19,115 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 13:27:53,283 INFO stdout [SecM] INFO o.a.s.s.m.Abst ractValidatingSessionManager - Enabling session validation scheduler... 13:28:00,585 INFO stdout [SecM] INFO o.a.s.cache.eh cache.EhCacheManager - Cache with name 'AuthorizationManager-Cache' does not yet exist. Creating now. 13:28:00,693 INFO stdout [SecM] INFO o.a.s.cache.eh cache.EhCacheManager - Added EhCache named [AuthorizationManager-Cache] 13:29:19,067 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 13:29:19,069 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 13:29:19,070 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 13:29:19,087 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 13:29:20,995 INFO stdout [SecM] ERROR o.o.l.s.oauth. LSMOAuthHttpManager - cannot send data to server 13:29:20,998 INFO stdout java.net.ConnectException: Connection timed out: connect 13:29:21,000 INFO stdout at java.net.TwoStacksPla inSocketImpl.socketConnect(Native Method) ~[na:1.7.0_79] 13:29:21,003 INFO stdout at java.net.AbstractPlai nSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_79] 13:29:21,005 INFO stdout at java.net.AbstractPlai nSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_79] 13:29:21,008 INFO stdout at java.net.AbstractPlai nSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_79] 13:29:21,010 INFO stdout at java.net.PlainSocketI mpl.connect(PlainSocketImpl.java:172) ~[na:1.7.0_79] 13:29:21,013 INFO stdout at java.net.SocksSocketI mpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_79] 13:29:21,016 INFO stdout at java.net.Socket.conne ct(Socket.java:579) ~[na:1.7.0_79] 13:29:21,018 INFO stdout at java.net.Socket.conne ct(Socket.java:528) ~[na:1.7.0_79] 13:29:21,019 INFO stdout at sun.net.NetworkClient .doConnect(NetworkClient.java:180) ~[na:na] 13:29:21,021 INFO stdout at sun.net.www.http.Http Client.openServer(HttpClient.java:432) ~[na:na] 13:29:21,022 INFO stdout at sun.net.www.http.Http Client.openServer(HttpClient.java:527) ~[na:na] 13:29:21,023 INFO stdout at sun.net.www.http.Http Client.(HttpClient.java:211) ~[na:na] 13:29:21,024 INFO stdout at sun.net.www.http.Http Client.New(HttpClient.java:308) ~[na:na] 13:29:21,026 INFO stdout at sun.net.www.http.Http Client.New(HttpClient.java:326) ~[na:na] 13:29:21,027 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997) ~[na:na] 13:29:21,028 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.plainConnect(HttpURLConnection.java:933) ~[na:na] 13:29:21,030 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.connect(HttpURLConnection.java:851) ~[na:na] 13:29:21,032 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092) ~[na:na] 13:29:21,034 INFO stdout at org.openiot.lsm.secur ity.oauth.LSMOAuthHttpManager.addUser(LSMOAuthHttpManager.java:490) ~[lsm-light. client-0.0.1.jar:na] 13:29:21,035 INFO stdout at org.openiot.security. mgmt.LSMSecurityManagerService.addUser(LSMSecurityManagerService.java:127) [clas ses:na] 13:29:21,037 INFO stdout at org.openiot.security. mgmt.SignupController.signup(SignupController.java:73) [classes:na] 13:29:21,038 INFO stdout at sun.reflect.NativeMet hodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79] 13:29:21,039 INFO stdout at sun.reflect.NativeMet hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79] 13:29:21,041 INFO stdout at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79] 13:29:21,042 INFO stdout at java.lang.reflect.Met hod.invoke(Method.java:606) ~[na:1.7.0_79] 13:29:21,043 INFO stdout at org.apache.el.parser. AstValue.invoke(AstValue.java:262) [jbossweb-7.0.13.Final.jar!/:na] 13:29:21,045 INFO stdout at org.apache.el.MethodE xpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar!/ :na] 13:29:21,048 INFO stdout at com.sun.faces.facelet s.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.7-jb ossorg-2.jar!/:na] 13:29:21,049 INFO stdout at javax.faces.component .MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapte r.java:88) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar!/:2.0.1.Final] 13:29:21,051 INFO stdout at com.sun.faces.applica tion.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.1 .7-jbossorg-2.jar!/:na] 13:29:21,052 INFO stdout at javax.faces.component .UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar !/:2.0.1.Final] 13:29:21,056 INFO stdout at javax.faces.component .UIViewRoot.broadcastEvents(UIViewRoot.java:794) [jboss-jsf-api_2.1_spec-2.0.1.F inal.jar!/:2.0.1.Final] 13:29:21,057 INFO stdout at javax.faces.component .UIViewRoot.processApplication(UIViewRoot.java:1259) [jboss-jsf-api_2.1_spec-2.0 .1.Final.jar!/:2.0.1.Final] 13:29:21,059 INFO stdout at com.sun.faces.lifecyc le.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1. 7-jbossorg-2.jar!/:na] 13:29:21,060 INFO stdout at com.sun.faces.lifecyc le.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar!/:na] 13:29:21,061 INFO stdout at com.sun.faces.lifecyc le.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar! /:na] 13:29:21,062 INFO stdout at javax.faces.webapp.Fa cesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.1.Final.ja r!/:2.0.1.Final] 13:29:21,064 INFO stdout at org.apache.catalina.c ore.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jb ossweb-7.0.13.Final.jar!/:na] 13:29:21,065 INFO stdout at org.apache.catalina.c ore.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7 .0.13.Final.jar!/:na] 13:29:21,067 INFO stdout at org.apache.shiro.web. servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) [shiro-web-1.2.3 .jar:1.2.3] 13:29:21,068 INFO stdout at org.apache.shiro.web. servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [shiro-web-1.2.3.jar:1. 2.3] 13:29:21,069 INFO stdout at org.apache.shiro.web. servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [shiro-web-1.2.3.ja r:1.2.3] 13:29:21,070 INFO stdout at org.apache.shiro.web. servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [shiro-web- 1.2.3.jar:1.2.3] 13:29:21,072 INFO stdout at org.apache.shiro.web. servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) [shiro-web-1.2.3 .jar:1.2.3] 13:29:21,073 INFO stdout at org.apache.shiro.web. servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) [shiro-we b-1.2.3.jar:1.2.3] 13:29:21,074 INFO stdout at org.apache.shiro.web. servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) [shiro-web-1.2. 3.jar:1.2.3] 13:29:21,075 INFO stdout at org.apache.shiro.subj ect.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.ja r:1.2.3] 13:29:21,076 INFO stdout at org.apache.shiro.subj ect.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar: 1.2.3] 13:29:21,078 INFO stdout at org.apache.shiro.subj ect.support.DelegatingSubject.execute(DelegatingSubject.java:383) [shiro-core-1. 2.3.jar:1.2.3] 13:29:21,079 INFO stdout at org.apache.shiro.web. servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) [shir o-web-1.2.3.jar:1.2.3] 13:29:21,080 INFO stdout at org.apache.shiro.web. servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [shiro-web- 1.2.3.jar:1.2.3] 13:29:21,083 INFO stdout at org.apache.catalina.c ore.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jb ossweb-7.0.13.Final.jar!/:na] 13:29:21,084 INFO stdout at org.apache.catalina.c ore.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7 .0.13.Final.jar!/:na] 13:29:21,086 INFO stdout at org.apache.catalina.c ore.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13. Final.jar!/:na] 13:29:21,087 INFO stdout at org.apache.catalina.c ore.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13. Final.jar!/:na] 13:29:21,088 INFO stdout at org.jboss.as.jpa.inte rceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jp a-7.1.1.Final.jar!/:7.1.1.Final] 13:29:21,090 INFO stdout at org.jboss.as.web.secu rity.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java :153) [jboss-as-web-7.1.1.Final.jar!/:7.1.1.Final] 13:29:21,091 INFO stdout at org.apache.catalina.c ore.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final. jar!/:na] 13:29:21,092 INFO stdout at org.apache.catalina.v alves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final. jar!/:na] 13:29:21,094 INFO stdout at org.apache.catalina.c ore.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Fi nal.jar!/:na] 13:29:21,095 INFO stdout at org.apache.catalina.c onnector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.ja r!/:na] 13:29:21,096 INFO stdout at org.apache.coyote.htt p11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar !/:na] 13:29:21,098 INFO stdout at org.apache.coyote.htt p11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbo ssweb-7.0.13.Final.jar!/:na] 13:29:21,099 INFO stdout at org.apache.tomcat.uti l.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar!/: na] 13:29:21,100 INFO stdout at java.lang.Thread.run( Thread.java:745) [na:1.7.0_79] 13:31:19,120 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 13:31:19,122 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 13:31:19,125 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 13:31:19,139 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 13:33:19,091 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 13:33:19,093 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 13:33:19,093 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 13:33:19,135 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Loaded 0 services. 13:33:27,504 INFO stdout [CAS] ERROR o.j.c.s.o.w.OAu th20AuthorizeController - Unknown clientId : openiot-security-manager-app

9Khaled9 commented 8 years ago

Ann, you have to add the username and password values of your Virtuoso user under Request Definition in your Properties files:

lsm-light.server.connection.username=dba lsm-light.server.connection.password=dba

the default user and pass are both "dba", please let me know if this solve your issue because i faced the same one befor...

Annmeng commented 8 years ago

I modify the properties file follow your advice but still failed. Jboss running state: 12:41:04,488 INFO stdout at sun.net.www.http.Http Client.openServer(HttpClient.java:527) ~[na:na] 12:41:04,490 INFO stdout at sun.net.www.http.Http Client.(HttpClient.java:211) ~[na:na] 12:41:04,492 INFO stdout at sun.net.www.http.Http Client.New(HttpClient.java:308) ~[na:na] 12:41:04,494 INFO stdout at sun.net.www.http.Http Client.New(HttpClient.java:326) ~[na:na] 12:41:04,496 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997) ~[na:na] 12:41:04,497 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.plainConnect(HttpURLConnection.java:933) ~[na:na] 12:41:04,499 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.connect(HttpURLConnection.java:851) ~[na:na] 12:41:04,500 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092) ~[na:na] 12:41:04,502 INFO stdout at org.openiot.lsm.secur ity.oauth.LSMOAuthHttpManager.getRegisteredService(LSMOAuthHttpManager.java:798) ~[lsm-light.client-0.0.1.jar:na] 12:41:04,503 INFO stdout at org.openiot.security. oauth.lsm.LSMOAuthManager.getRegisteredService(LSMOAuthManager.java:140) [classe s:na] 12:41:04,505 INFO stdout at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:419) [cl asses:na] 12:41:04,506 INFO stdout at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) [cla sses:na] 12:41:04,508 INFO stdout at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) [clas ses:na] 12:41:04,509 INFO stdout at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) [cl asses:na] 12:41:04,511 INFO stdout at sun.reflect.Generated MethodAccessor36.invoke(Unknown Source) ~[na:na] 12:41:04,512 INFO stdout at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79] 12:41:04,514 INFO stdout at java.lang.reflect.Met hod.invoke(Method.java:606) ~[na:1.7.0_79] 12:41:04,515 INFO stdout at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) [spring-ao p-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:04,517 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:04,519 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:04,520 INFO stdout at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:04,522 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:04,524 INFO stdout at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop- 3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:04,526 INFO stdout at com.sun.proxy.$Proxy7 5.reload(Unknown Source) [na:na] 12:41:04,527 INFO stdout at sun.reflect.Generated MethodAccessor35.invoke(Unknown Source) ~[na:na] 12:41:04,528 INFO stdout at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79] 12:41:04,529 INFO stdout at java.lang.reflect.Met hod.invoke(Method.java:606) ~[na:1.7.0_79] 12:41:04,530 INFO stdout at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) [spring-core-3.1.1.RELEASE.jar: 3.1.1.RELEASE] 12:41:04,531 INFO stdout at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) [spring-context-support-3.1.1 .RELEASE.jar:3.1.1.RELEASE] 12:41:04,533 INFO stdout at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) [spring-context-s upport-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:04,535 INFO stdout at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) [quartz-1.6.1.jar:1.6.1] 12:41:04,536 INFO stdout at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) [quartz-1.6.1.jar:1.6.1 ] 12:41:12,033 INFO stdout [CAS] ERROR o.o.l.s.oauth.LSMO AuthHttpManager - cannot send data to server 12:41:12,035 INFO stdout java.net.ConnectException: Con nection timed out: connect 12:41:12,036 INFO stdout at java.net.TwoStacksPla inSocketImpl.socketConnect(Native Method) ~[na:1.7.0_79] 12:41:12,037 INFO stdout at java.net.AbstractPlai nSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_79] 12:41:12,039 INFO stdout at java.net.AbstractPlai nSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_79] 12:41:12,041 INFO stdout at java.net.AbstractPlai nSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_79] 12:41:12,042 INFO stdout at java.net.PlainSocketI mpl.connect(PlainSocketImpl.java:172) ~[na:1.7.0_79] 12:41:12,044 INFO stdout at java.net.SocksSocketI mpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_79] 12:41:12,045 INFO stdout at java.net.Socket.conne ct(Socket.java:579) ~[na:1.7.0_79] 12:41:12,046 INFO stdout at java.net.Socket.conne ct(Socket.java:528) ~[na:1.7.0_79] 12:41:12,048 INFO stdout at sun.net.NetworkClient .doConnect(NetworkClient.java:180) ~[na:na] 12:41:12,049 INFO stdout at sun.net.www.http.Http Client.openServer(HttpClient.java:432) ~[na:na] 12:41:12,050 INFO stdout at sun.net.www.http.Http Client.openServer(HttpClient.java:527) ~[na:na] 12:41:12,052 INFO stdout at sun.net.www.http.Http Client.(HttpClient.java:211) ~[na:na] 12:41:12,053 INFO stdout at sun.net.www.http.Http Client.New(HttpClient.java:308) ~[na:na] 12:41:12,055 INFO stdout at sun.net.www.http.Http Client.New(HttpClient.java:326) ~[na:na] 12:41:12,056 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997) ~[na:na] 12:41:12,057 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.plainConnect(HttpURLConnection.java:933) ~[na:na] 12:41:12,059 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.connect(HttpURLConnection.java:851) ~[na:na] 12:41:12,061 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092) ~[na:na] 12:41:12,062 INFO stdout at org.openiot.lsm.secur ity.oauth.LSMOAuthHttpManager.getRegisteredService(LSMOAuthHttpManager.java:798) ~[lsm-light.client-0.0.1.jar:na] 12:41:12,064 INFO stdout at org.openiot.security. oauth.lsm.LSMOAuthManager.getRegisteredService(LSMOAuthManager.java:140) [classe s:na] 12:41:12,066 INFO stdout at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:419) [cl asses:na] 12:41:12,068 INFO stdout at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) [cla sses:na] 12:41:12,069 INFO stdout at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) [clas ses:na] 12:41:12,071 INFO stdout at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) [cl asses:na] 12:41:12,073 INFO stdout at sun.reflect.Generated MethodAccessor36.invoke(Unknown Source) ~[na:na] 12:41:12,074 INFO stdout at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79] 12:41:12,076 INFO stdout at java.lang.reflect.Met hod.invoke(Method.java:606) ~[na:1.7.0_79] 12:41:12,077 INFO stdout at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) [spring-ao p-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:12,079 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:12,081 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:12,083 INFO stdout at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:12,086 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:12,087 INFO stdout at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop- 3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:12,089 INFO stdout at com.sun.proxy.$Proxy7 5.reload(Unknown Source) [na:na] 12:41:12,089 INFO stdout at sun.reflect.Generated MethodAccessor35.invoke(Unknown Source) ~[na:na] 12:41:12,091 INFO stdout at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79] 12:41:12,092 INFO stdout at java.lang.reflect.Met hod.invoke(Method.java:606) ~[na:1.7.0_79] 12:41:12,093 INFO stdout at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) [spring-core-3.1.1.RELEASE.jar: 3.1.1.RELEASE] 12:41:12,095 INFO stdout at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) [spring-context-support-3.1.1 .RELEASE.jar:3.1.1.RELEASE] 12:41:12,097 INFO stdout at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) [spring-context-s upport-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:12,099 INFO stdout at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) [quartz-1.6.1.jar:1.6.1] 12:41:12,100 INFO stdout at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) [quartz-1.6.1.jar:1.6.1 ] 12:41:12,102 INFO stdout [CAS] INFO o.o.s.o.OpenIoTSer vicesManagerImpl - Loaded 0 services. 12:41:18,761 INFO stdout [CAS] INFO o.o.s.o.OpenIoTServ icesManagerImpl - Reloading registered services. 12:41:18,763 INFO stdout [CAS] INFO o.o.s.o.l.LSMServic eRegistryDaoImpl - Reloading registered services ... 12:41:18,765 INFO stdout [CAS] INFO o.o.s.oauth.lsm.LSM OAuthManager - Using endpoint: http://localhost:8890/sparql 12:41:25,537 INFO stdout [CAS] ERROR o.o.l.s.oauth.LSMOA uthHttpManager - cannot send data to server 12:41:25,540 INFO stdout java.net.ConnectException: Conn ection timed out: connect 12:41:25,541 INFO stdout at java.net.TwoStacksPla inSocketImpl.socketConnect(Native Method) ~[na:1.7.0_79] 12:41:25,544 INFO stdout at java.net.AbstractPlai nSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_79] 12:41:25,546 INFO stdout at java.net.AbstractPlai nSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_79] 12:41:25,549 INFO stdout at java.net.AbstractPlai nSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_79] 12:41:25,552 INFO stdout at java.net.PlainSocketI mpl.connect(PlainSocketImpl.java:172) ~[na:1.7.0_79] 12:41:25,554 INFO stdout at java.net.SocksSocketI mpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_79] 12:41:25,556 INFO stdout at java.net.Socket.conne ct(Socket.java:579) ~[na:1.7.0_79] 12:41:25,558 INFO stdout at java.net.Socket.conne ct(Socket.java:528) ~[na:1.7.0_79] 12:41:25,560 INFO stdout at sun.net.NetworkClient .doConnect(NetworkClient.java:180) ~[na:na] 12:41:25,562 INFO stdout at sun.net.www.http.Http Client.openServer(HttpClient.java:432) ~[na:na] 12:41:25,564 INFO stdout at sun.net.www.http.Http Client.openServer(HttpClient.java:527) ~[na:na] 12:41:25,566 INFO stdout at sun.net.www.http.Http Client.(HttpClient.java:211) ~[na:na] 12:41:25,568 INFO stdout at sun.net.www.http.Http Client.New(HttpClient.java:308) ~[na:na] 12:41:25,570 INFO stdout at sun.net.www.http.Http Client.New(HttpClient.java:326) ~[na:na] 12:41:25,572 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997) ~[na:na] 12:41:25,574 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.plainConnect(HttpURLConnection.java:933) ~[na:na] 12:41:25,577 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.connect(HttpURLConnection.java:851) ~[na:na] 12:41:25,580 INFO stdout at sun.net.www.protocol. http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092) ~[na:na] 12:41:25,582 INFO stdout at org.openiot.lsm.secur ity.oauth.LSMOAuthHttpManager.getRegisteredService(LSMOAuthHttpManager.java:798) ~[lsm-light.client-0.0.1.jar:na] 12:41:25,586 INFO stdout at org.openiot.security. oauth.lsm.LSMOAuthManager.getRegisteredService(LSMOAuthManager.java:140) [classe s:na] 12:41:25,587 INFO stdout at org.openiot.security. oauth.lsm.LSMOAuthManager.getAllRegisteredServices(LSMOAuthManager.java:419) [cl asses:na] 12:41:25,589 INFO stdout at org.openiot.security. oauth.lsm.LSMServiceRegistryDaoImpl.load(LSMServiceRegistryDaoImpl.java:73) [cla sses:na] 12:41:25,591 INFO stdout at org.openiot.security. oauth.OpenIoTServicesManagerImpl.load(OpenIoTServicesManagerImpl.java:171) [clas ses:na] 12:41:25,592 INFO stdout at org.openiot.security. oauth.OpenIoTServicesManagerImpl.reload(OpenIoTServicesManagerImpl.java:165) [cl asses:na] 12:41:25,594 INFO stdout at sun.reflect.Generated MethodAccessor36.invoke(Unknown Source) ~[na:na] 12:41:25,596 INFO stdout at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79] 12:41:25,597 INFO stdout at java.lang.reflect.Met hod.invoke(Method.java:606) ~[na:1.7.0_79] 12:41:25,598 INFO stdout at org.springframework.a op.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) [spring-ao p-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:25,600 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati on.java:183) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:25,603 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 150) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:25,604 INFO stdout at org.springframework.a op.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja va:90) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:25,606 INFO stdout at org.springframework.a op.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:25,608 INFO stdout at org.springframework.a op.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop- 3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:25,610 INFO stdout at com.sun.proxy.$Proxy7 5.reload(Unknown Source) [na:na] 12:41:25,611 INFO stdout at sun.reflect.Generated MethodAccessor35.invoke(Unknown Source) ~[na:na] 12:41:25,612 INFO stdout at sun.reflect.Delegatin gMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79] 12:41:25,614 INFO stdout at java.lang.reflect.Met hod.invoke(Method.java:606) ~[na:1.7.0_79] 12:41:25,615 INFO stdout at org.springframework.u til.MethodInvoker.invoke(MethodInvoker.java:273) [spring-core-3.1.1.RELEASE.jar: 3.1.1.RELEASE] 12:41:25,617 INFO stdout at org.springframework.s cheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInt ernal(MethodInvokingJobDetailFactoryBean.java:311) [spring-context-support-3.1.1 .RELEASE.jar:3.1.1.RELEASE] 12:41:25,619 INFO stdout at org.springframework.s cheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) [spring-context-s upport-3.1.1.RELEASE.jar:3.1.1.RELEASE] 12:41:25,620 INFO stdout at org.quartz.core.JobRu nShell.run(JobRunShell.java:202) [quartz-1.6.1.jar:1.6.1] 12:41:25,621 INFO stdout at org.quartz.simpl.Simp leThreadPool$WorkerThread.run(SimpleThreadPool.java:525) [quartz-1.6.1.jar:1.6.1 ]

asad26 commented 7 years ago

Hi,

I am also facing a similar problem. I followed all the above mentioned solutions but couldn't manage to login. The OpenIoT Central Authentication Service gives me error that "Application Not Authorized to Use CAS". Please suggest some solutions. Thanks

premjayaraman commented 7 years ago

Look at the logs and share the error info please. -------- Original message --------From: asad26 notifications@github.com Date: 16/05/2017 8:14 AM (GMT+10:00) To: OpenIotOrg/openiot openiot@noreply.github.com Cc: Prem Jayaraman prem.jayaraman@gmail.com, Comment comment@noreply.github.com Subject: Re: [OpenIotOrg/openiot] Error in logging in as not logging out CAS. (#130) Hi, I am also facing a similar problem. I followed all the above mentioned solutions but couldn't manage to login. The OpenIoT Central Authentication Service gives me error that "Application Not Authorized to Use CAS".

Please suggest some solutions. Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenIotOrg/openiot","title":"OpenIotOrg/openiot","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenIotOrg/openiot"}},"updates":{"snippets":[{"icon":"PERSON","message":"@asad26 in #130: Hi,\r\n\r\nI am also facing a similar problem. I followed all the above mentioned solutions but couldn't manage to login. The OpenIoT Central Authentication Service gives me error that \"Application Not Authorized to Use CAS\".\r\nPlease suggest some solutions. Thanks "}],"action":{"name":"View Issue","url":"https://github.com/OpenIotOrg/openiot/issues/130#issuecomment-301620431"}}}

asad26 commented 7 years ago

Hi,

Thank you for your reply. Find below are the logs of lsm-server and cas.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Lsm-server logs &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

10:32:32.625 [http--127.0.0.1-8080-4] INFO o.o.lsm.pooling.ConnectionManager - Loading property file 10:32:32.627 [http--127.0.0.1-8080-4] INFO o.o.lsm.pooling.ConnectionManager - loading database server driver virtuoso.jdbc4.Driver 10:32:32.634 [http--127.0.0.1-8080-4] ERROR o.o.lsm.pooling.ConnectionManager - Error making pool: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:virtuoso://localhost:1111/log_enable=2, username = dba. Terminating connection pool. Original Exception: ------ virtuoso.jdbc4.VirtuosoException: Bad login. at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) at virtuoso.jdbc4.VirtuosoConnection.(Unknown Source) at virtuoso.jdbc4.Driver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:215) at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) at com.jolbox.bonecp.BoneCP.(BoneCP.java:305) at org.openiot.lsm.pooling.ConnectionManager.init(ConnectionManager.java:75) at org.openiot.lsm.manager.SensorManager.(SensorManager.java:71) at org.openiot.lsm.http.OauthServletHelper.feedToServer(OauthServletHelper.java:18) at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:82) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) at java.lang.Thread.run(Thread.java:745)

at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:312) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE]
at org.openiot.lsm.pooling.ConnectionManager.init(ConnectionManager.java:75) ~[classes:na]
at org.openiot.lsm.manager.SensorManager.<init>(SensorManager.java:71) [classes:na]
at org.openiot.lsm.http.OauthServletHelper.feedToServer(OauthServletHelper.java:18) [classes:na]
at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:82) [classes:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na]
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) [javamelody-core-1.45.0.jar:1.45.0]
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) [javamelody-core-1.45.0.jar:1.45.0]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar!/:na]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar!/:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar!/:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar!/:na]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]

Caused by: virtuoso.jdbc4.VirtuosoException: Bad login. at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.VirtuosoConnection.(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.Driver.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at java.sql.DriverManager.getConnection(DriverManager.java:571) ~[na:1.7.0_80] at java.sql.DriverManager.getConnection(DriverManager.java:215) ~[na:1.7.0_80] at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] at com.jolbox.bonecp.BoneCP.(BoneCP.java:305) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] ... 24 common frames omitted 10:32:32.840 [http--127.0.0.1-8080-4] INFO o.openiot.lsm.manager.SensorManager - insert triples into graph http://localhost/OpenIoT/OAuth# 10:32:32.841 [http--127.0.0.1-8080-4] WARN o.openiot.lsm.manager.SensorManager - Fail to insert triples into graph http://localhost/OpenIoT/OAuth# java.lang.NullPointerException: null at org.openiot.lsm.manager.SensorManager.insertTriplesToGraph(SensorManager.java:122) ~[classes:na] at org.openiot.lsm.http.OauthServletHelper.feedToServer(OauthServletHelper.java:41) [classes:na] at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:82) [classes:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) [javamelody-core-1.45.0.jar:1.45.0] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) [javamelody-core-1.45.0.jar:1.45.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar!/:na] at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar!/:7.1.1.Final] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar!/:7.1.1.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar!/:na] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80] 10:32:32.901 [http--127.0.0.1-8080-4] INFO o.o.lsm.pooling.ConnectionManager - Loading property file 10:32:32.903 [http--127.0.0.1-8080-4] INFO o.o.lsm.pooling.ConnectionManager - loading database server driver virtuoso.jdbc4.Driver 10:32:32.909 [http--127.0.0.1-8080-4] ERROR o.o.lsm.pooling.ConnectionManager - Error making pool: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:virtuoso://localhost:1111/log_enable=2, username = dba. Terminating connection pool. Original Exception: ------ virtuoso.jdbc4.VirtuosoException: Bad login. at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) at virtuoso.jdbc4.VirtuosoConnection.(Unknown Source) at virtuoso.jdbc4.Driver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:215) at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) at com.jolbox.bonecp.BoneCP.(BoneCP.java:305) at org.openiot.lsm.pooling.ConnectionManager.init(ConnectionManager.java:75) at org.openiot.lsm.manager.SensorManager.(SensorManager.java:71) at org.openiot.lsm.http.OauthServletHelper.updateOnServer(OauthServletHelper.java:110) at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) at java.lang.Thread.run(Thread.java:745)

at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:312) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE]
at org.openiot.lsm.pooling.ConnectionManager.init(ConnectionManager.java:75) ~[classes:na]
at org.openiot.lsm.manager.SensorManager.<init>(SensorManager.java:71) [classes:na]
at org.openiot.lsm.http.OauthServletHelper.updateOnServer(OauthServletHelper.java:110) [classes:na]
at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:91) [classes:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na]
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) [javamelody-core-1.45.0.jar:1.45.0]
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) [javamelody-core-1.45.0.jar:1.45.0]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar!/:na]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar!/:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar!/:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar!/:na]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar!/:na]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]

Caused by: virtuoso.jdbc4.VirtuosoException: Bad login. at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.VirtuosoConnection.(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.Driver.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at java.sql.DriverManager.getConnection(DriverManager.java:571) ~[na:1.7.0_80] at java.sql.DriverManager.getConnection(DriverManager.java:215) ~[na:1.7.0_80] at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] at com.jolbox.bonecp.BoneCP.(BoneCP.java:305) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] ... 24 common frames omitted

############################################################################## CAS logs ##############################################################################

2017-05-16 10:41:41,561 INFO [org.openiot.security.oauth.OpenIoTServicesManagerImpl] - Reloading registered services. 2017-05-16 10:41:41,562 INFO [org.openiot.security.oauth.lsm.LSMServiceRegistryDaoImpl] - Reloading registered services ... 2017-05-16 10:41:41,563 INFO [org.openiot.security.oauth.lsm.LSMOAuthManager] - Using endpoint: http://localhost:8890/sparql 2017-05-16 10:41:41,568 INFO [org.openiot.security.oauth.OpenIoTServicesManagerImpl] - Loaded 0 services. 2017-05-16 10:41:46,559 ERROR [org.jasig.cas.support.oauth.web.OAuth20AuthorizeController] - Unknown clientId : openiot-security-manager-app

premjayaraman commented 7 years ago

check your virtuoso login information in the openiot.properties file.

that seems to be the issue

On Tue, May 16, 2017 at 5:48 PM, asad26 notifications@github.com wrote:

Hi,

Thank you for your reply. Find below are the logs of lsm-server and cas.

############################################################ ################## Lsm-server logs ############################################################ ################## 10:32:32.625 [http--127.0.0.1-8080-4] INFO o.o.lsm.pooling.ConnectionManager

  • Loading property file 10:32:32.627 [http--127.0.0.1-8080-4] INFO o.o.lsm.pooling.ConnectionManager
  • loading database server driver virtuoso.jdbc4.Driver 10:32:32.634 [http--127.0.0.1-8080-4] ERROR o.o.lsm.pooling.ConnectionManager
  • Error making pool: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:virtuoso://localhost:1111/log_enable=2, username = dba. Terminating connection pool. Original Exception: ------ virtuoso.jdbc4.VirtuosoException: Bad login. at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) at virtuoso.jdbc4.VirtuosoConnection.(Unknown Source) at virtuoso.jdbc4.Driver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:215) at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) at com.jolbox.bonecp.BoneCP.(BoneCP.java:305) at org.openiot.lsm.pooling.ConnectionManager.init( ConnectionManager.java:75) at org.openiot.lsm.manager.SensorManager.(SensorManager.java:71) at org.openiot.lsm.http.OauthServletHelper.feedToServer( OauthServletHelper.java:18) at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:82) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:329) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:248) at net.bull.javamelody.MonitoringFilter.doFilter( MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter( MonitoringFilter.java:179) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:161) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke( WebNonTxEmCloserValve.java:50) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke( SecurityContextAssociationValve.java:153) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:155) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:368) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:877) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler. process(Http11Protocol.java:671) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) at java.lang.Thread.run(Thread.java:745)

at com.jolbox.bonecp.BoneCP.(BoneCP.java:312) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] at org.openiot.lsm.pooling.ConnectionManager.init(ConnectionManager.java:75) ~[classes:na] at org.openiot.lsm.manager.SensorManager.(SensorManager.java:71) [classes:na] at org.openiot.lsm.http.OauthServletHelper.feedToServer(OauthServletHelper.java:18) [classes:na] at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:82) [classes:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) [javamelody-core-1.45.0.jar:1.45.0] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) [javamelody-core-1.45.0.jar:1.45.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar!/:na] at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar!/:7.1.1.Final] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar!/:7.1.1.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar!/:na] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]

Caused by: virtuoso.jdbc4.VirtuosoException: Bad login. at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.VirtuosoConnection.(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.Driver.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at java.sql.DriverManager.getConnection(DriverManager.java:571) ~[na:1.7.0_80] at java.sql.DriverManager.getConnection(DriverManager.java:215) ~[na:1.7.0_80] at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] at com.jolbox.bonecp.BoneCP.(BoneCP.java:305) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] ... 24 common frames omitted 10:32:32.840 [http--127.0.0.1-8080-4] INFO o.openiot.lsm.manager.SensorManager

  • insert triples into graph http://localhost/OpenIoT/OAuth# 10:32:32.841 [http--127.0.0.1-8080-4] WARN o.openiot.lsm.manager.SensorManager
  • Fail to insert triples into graph http://localhost/OpenIoT/OAuth# java.lang.NullPointerException: null at org.openiot.lsm.manager.SensorManager.insertTriplesToGraph(SensorManager.java:122) ~[classes:na] at org.openiot.lsm.http.OauthServletHelper.feedToServer(OauthServletHelper.java:41) [classes:na] at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:82) [classes:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) [javamelody-core-1.45.0.jar:1.45.0] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) [javamelody-core-1.45.0.jar:1.45.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar!/:na] at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar!/:7.1.1.Final] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke( SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar! /:7.1.1.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler. process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar!/:na] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80] 10:32:32.901 [http--127.0.0.1-8080-4] INFO o.o.lsm.pooling.ConnectionManager
  • Loading property file 10:32:32.903 [http--127.0.0.1-8080-4] INFO o.o.lsm.pooling.ConnectionManager
  • loading database server driver virtuoso.jdbc4.Driver 10:32:32.909 [http--127.0.0.1-8080-4] ERROR o.o.lsm.pooling.ConnectionManager
  • Error making pool: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:virtuoso://localhost:1111/log_enable=2, username = dba. Terminating connection pool. Original Exception: ------ virtuoso.jdbc4.VirtuosoException: Bad login. at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) at virtuoso.jdbc4.VirtuosoConnection.(Unknown Source) at virtuoso.jdbc4.Driver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:215) at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) at com.jolbox.bonecp.BoneCP.(BoneCP.java:305) at org.openiot.lsm.pooling.ConnectionManager.init( ConnectionManager.java:75) at org.openiot.lsm.manager.SensorManager.(SensorManager.java:71) at org.openiot.lsm.http.OauthServletHelper.updateOnServer( OauthServletHelper.java:110) at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:329) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:248) at net.bull.javamelody.MonitoringFilter.doFilter( MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter( MonitoringFilter.java:179) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:161) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke( WebNonTxEmCloserValve.java:50) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke( SecurityContextAssociationValve.java:153) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:155) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:368) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:877) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler. process(Http11Protocol.java:671) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) at java.lang.Thread.run(Thread.java:745)

at com.jolbox.bonecp.BoneCP.(BoneCP.java:312) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] at org.openiot.lsm.pooling.ConnectionManager.init(ConnectionManager.java:75) ~[classes:na] at org.openiot.lsm.manager.SensorManager.(SensorManager.java:71) [classes:na] at org.openiot.lsm.http.OauthServletHelper.updateOnServer(OauthServletHelper.java:110) [classes:na] at org.openiot.lsm.http.OauthServlet.doPost(OauthServlet.java:91) [classes:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar!/:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) [javamelody-core-1.45.0.jar:1.45.0] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) [javamelody-core-1.45.0.jar:1.45.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar!/:na] at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar!/:7.1.1.Final] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar!/:7.1.1.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar!/:na] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar!/:na] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]

Caused by: virtuoso.jdbc4.VirtuosoException: Bad login. at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.VirtuosoConnection.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.VirtuosoConnection.(Unknown Source) ~[virtjdbc4-4.jar:na] at virtuoso.jdbc4.Driver.connect(Unknown Source) ~[virtjdbc4-4.jar:na] at java.sql.DriverManager.getConnection(DriverManager.java:571) ~[na:1.7.0_80] at java.sql.DriverManager.getConnection(DriverManager.java:215) ~[na:1.7.0_80] at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] at com.jolbox.bonecp.BoneCP.(BoneCP.java:305) ~[bonecp-0.7.1.RELEASE.jar:0.7.1.RELEASE] ... 24 common frames omitted

############################################################ ################## CAS logs ############################################################ ##################

2017-05-16 10:41:41,561 INFO [org.openiot.security.oauth.OpenIoTServicesManagerImpl]

  • Reloading registered services. 2017-05-16 10:41:41,562 INFO [org.openiot.security.oauth.lsm.LSMServiceRegistryDaoImpl]
  • Reloading registered services ... 2017-05-16 10:41:41,563 INFO [org.openiot.security.oauth.lsm.LSMOAuthManager]
  • Using endpoint: http://localhost:8890/sparql 2017-05-16 10:41:41,568 INFO [org.openiot.security.oauth.OpenIoTServicesManagerImpl]
  • Loaded 0 services. 2017-05-16 10:41:46,559 ERROR [org.jasig.cas.support.oauth.web.OAuth20AuthorizeController]
  • Unknown clientId : openiot-security-manager-app

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OpenIotOrg/openiot/issues/130#issuecomment-301703298, or mute the thread https://github.com/notifications/unsubscribe-auth/ACCs_0ta_CMKI1BAhxdIUGobGErUi3z2ks5r6VTXgaJpZM4IlIJM .