[Installation] Session expired: please login again - Core: null

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Installation] Session expired: please login again - Core: null

Prigent Nicolas
Hi,

I try to install Syncope on my virtual machine (debian) by following
wiki documentation.
I did : 1°) Create a new Syncope project
2°) Run Syncope in real environments

Everything seems to be ok.
So, I go to http://localhost:8080/syncope-console, and I get a message :
"Alert : Session expired: please login again."
But I can't log in with my admin account ...
http://i44.tinypic.com/zuko3r.png

Something goes wrong at this point : Console:
1.0.0-incubating-SNAPSHOT; Core: null

Do you have any idea why Core is null ?

-----
After this command : mvn clean package
-Dbundles.directory=/opt/syncope/bundles
-Dlog.directory=/opt/syncope/log

I got :

[INFO] Building war: /var/www/localdomain/console/target/syncope-console.war
[INFO] Building war: /var/www/localdomain/core/target/syncope.war
[INFO] Apache Syncope sample project ..................... SUCCESS [4.936s]
[INFO] Apache Syncope sample project core ................ SUCCESS [34.689s]
[INFO] Apache Syncope sample project console ............. SUCCESS [17.962s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

I copied war files into ../tomcat/webapps.

Thanks for your help

----
Nicolas
Reply | Threaded
Open this post in threaded view
|

Re: [Installation] Session expired: please login again - Core: null

ilgrosso
Administrator
On 23/04/2012 14:24, Prigent Nicolas wrote:
Hi,

I try to install Syncope on my virtual machine (debian) by following
wiki documentation.
I did : 1°) Create a new Syncope project
2°) Run Syncope in real environments

Everything seems to be ok.
So, I go to http://localhost:8080/syncope-console, and I get a message :
"Alert : Session expired: please login again."
But I can't log in with my admin account ...
http://i44.tinypic.com/zuko3r.png

Something goes wrong at this point : Console:
1.0.0-incubating-SNAPSHOT; Core: null

Do you have any idea why Core is null ?

Just guessing, but it seems that your console application does not know how to contact core application.

Probably there is a bug in the wiki page [1]: it is important that you provide in console's configuration.properties the base URL where the core application is reachable.

Based on the URL you reported above (http://localhost:8080/syncope-console), the value for baseURL in your case should be

http://localhost:8080/syncope/rest/

Once done, rebuild and redeploy.

Please let us know if it works, now.
Regards.

[1] https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-Othersetuptasks
-- 
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/
Reply | Threaded
Open this post in threaded view
|

Re: [Installation] Session expired: please login again - Core: null

Prigent Nicolas
Here is my "console/src/main/resources/configuration.properties" :

scheme=http
host=localhost
port=8080
path=/syncope/core/rest/
version=${project.version}
baseURL=http://localhost:8080/syncope/core/rest/

I tried with this configuration but it doesn't work.
I think, something is missing in my configuration...

404 error appears in my console.log :


WARN  org.springframework.web.client.RestTemplate - GET request for
"http://localhost:8080/syncope/core/rest/user/request/create/allowed"
resulted in 404 (Introuvable); invoking error handler
ERROR org.apache.syncope.console.SyncopeRequestCycleListener - Exception found
org.apache.wicket.WicketRuntimeException: Can't instantiate page using
constructor 'public
org.apache.syncope.console.pages.Login(org.apache.wicket.request.mapper.parameter.PageParameters)'
and argument ''. Might be it doesn't exist, may be it is not visible
(public).
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:196)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:77)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:47)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:103)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.request.handler.PageProvider.resolvePageInstance(PageProvider.java:264)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:165)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
~[wicket-core-1.5.5.jar:1.5.5]
        at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167)
~[wicket-core-1.5.5.jar:1.5.5]

Thanks.
Nicolas


2012/4/23 Francesco Chicchiriccò <[hidden email]>:

> On 23/04/2012 14:24, Prigent Nicolas wrote:
>
> Hi,
>
> I try to install Syncope on my virtual machine (debian) by following
> wiki documentation.
> I did : 1°) Create a new Syncope project
> 2°) Run Syncope in real environments
>
> Everything seems to be ok.
> So, I go to http://localhost:8080/syncope-console, and I get a message :
> "Alert : Session expired: please login again."
> But I can't log in with my admin account ...
> http://i44.tinypic.com/zuko3r.png
>
> Something goes wrong at this point : Console:
> 1.0.0-incubating-SNAPSHOT; Core: null
>
> Do you have any idea why Core is null ?
>
>
> Just guessing, but it seems that your console application does not know how
> to contact core application.
>
> Probably there is a bug in the wiki page [1]: it is important that you
> provide in console's configuration.properties the base URL where the core
> application is reachable.
>
> Based on the URL you reported above (http://localhost:8080/syncope-console),
> the value for baseURL in your case should be
>
> http://localhost:8080/syncope/rest/
>
> Once done, rebuild and redeploy.
>
> Please let us know if it works, now.
> Regards.
>
> [1]
> https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-Othersetuptasks
>
> --
> Francesco Chicchiriccò
>
> Apache Cocoon PMC and Apache Syncope PPMC Member
> http://people.apache.org/~ilgrosso/
Reply | Threaded
Open this post in threaded view
|

Re: [Installation] Session expired: please login again - Core: null

ilgrosso
Administrator
On 23/04/2012 16:04, Prigent Nicolas wrote:
> Here is my "console/src/main/resources/configuration.properties" :
>
> scheme=http
> host=localhost
> port=8080
> path=/syncope/core/rest/
> version=${project.version}
> baseURL=http://localhost:8080/syncope/core/rest/

It should be (note 'path' + baseURL is not necessary any more, I will
remove it from the wiki page):

scheme=http
host=localhost
port=8080
path=/syncope/rest/
version=${project.version}

Regards.

2012/4/23 Francesco Chicchiriccò <[hidden email]>:

>> On 23/04/2012 14:24, Prigent Nicolas wrote:
>>
>> Hi,
>>
>> I try to install Syncope on my virtual machine (debian) by following
>> wiki documentation.
>> I did : 1°) Create a new Syncope project
>> 2°) Run Syncope in real environments
>>
>> Everything seems to be ok.
>> So, I go to http://localhost:8080/syncope-console, and I get a message :
>> "Alert : Session expired: please login again."
>> But I can't log in with my admin account ...
>> http://i44.tinypic.com/zuko3r.png
>>
>> Something goes wrong at this point : Console:
>> 1.0.0-incubating-SNAPSHOT; Core: null
>>
>> Do you have any idea why Core is null ?
>>
>>
>> Just guessing, but it seems that your console application does not know how
>> to contact core application.
>>
>> Probably there is a bug in the wiki page [1]: it is important that you
>> provide in console's configuration.properties the base URL where the core
>> application is reachable.
>>
>> Based on the URL you reported above (http://localhost:8080/syncope-console),
>> the value for baseURL in your case should be
>>
>> http://localhost:8080/syncope/rest/
>>
>> Once done, rebuild and redeploy.
>>
>> Please let us know if it works, now.
>> Regards.
>>
>> [1]
>> https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-Othersetuptasks
--
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/

Reply | Threaded
Open this post in threaded view
|

Re: [Installation] Session expired: please login again - Core: null

ilgrosso
Administrator
On 23/04/2012 16:08, Francesco Chicchiriccò wrote:

> On 23/04/2012 16:04, Prigent Nicolas wrote:
>> Here is my "console/src/main/resources/configuration.properties" :
>>
>> scheme=http
>> host=localhost
>> port=8080
>> path=/syncope/core/rest/
>> version=${project.version}
>> baseURL=http://localhost:8080/syncope/core/rest/
> It should be (note 'path' + baseURL is not necessary any more, I will
> remove it from the wiki page):
>
> scheme=http
> host=localhost
> port=8080
> path=/syncope/rest/
> version=${project.version}

Hi,
any update on this?

Regards.

> 2012/4/23 Francesco Chicchiriccò<[hidden email]>:
>>> On 23/04/2012 14:24, Prigent Nicolas wrote:
>>>
>>> Hi,
>>>
>>> I try to install Syncope on my virtual machine (debian) by following
>>> wiki documentation.
>>> I did : 1°) Create a new Syncope project
>>> 2°) Run Syncope in real environments
>>>
>>> Everything seems to be ok.
>>> So, I go to http://localhost:8080/syncope-console, and I get a message :
>>> "Alert : Session expired: please login again."
>>> But I can't log in with my admin account ...
>>> http://i44.tinypic.com/zuko3r.png
>>>
>>> Something goes wrong at this point : Console:
>>> 1.0.0-incubating-SNAPSHOT; Core: null
>>>
>>> Do you have any idea why Core is null ?
>>>
>>>
>>> Just guessing, but it seems that your console application does not know how
>>> to contact core application.
>>>
>>> Probably there is a bug in the wiki page [1]: it is important that you
>>> provide in console's configuration.properties the base URL where the core
>>> application is reachable.
>>>
>>> Based on the URL you reported above (http://localhost:8080/syncope-console),
>>> the value for baseURL in your case should be
>>>
>>> http://localhost:8080/syncope/rest/
>>>
>>> Once done, rebuild and redeploy.
>>>
>>> Please let us know if it works, now.
>>> Regards.
>>>
>>> [1]
>>> https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-Othersetuptasks
--
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/

Reply | Threaded
Open this post in threaded view
|

Re: [Installation] Session expired: please login again - Core: null

Prigent Nicolas
My /syncope application doesn't exist. I don't know why.
I have only /syncope-console/ and no /syncope/rest.
On tomcat web interface in "application manager", /syncope-console is
started but /syncope/ is stopped (can't be started)

Log file :
"GET /syncope/rest/user/request/create/allowed HTTP/1.1" 404 1085
"GET /syncope/rest/user/request/create/allowed HTTP/1.1" 404 1085
"GET /syncope/rest HTTP/1.1" 404 1001

--
Nicolas

2012/4/24 Francesco Chicchiriccò <[hidden email]>:

> On 23/04/2012 16:08, Francesco Chicchiriccň wrote:
>>
>> On 23/04/2012 16:04, Prigent Nicolas wrote:
>>>
>>> Here is my "console/src/main/resources/configuration.properties" :
>>>
>>> scheme=http
>>> host=localhost
>>> port=8080
>>> path=/syncope/core/rest/
>>> version=${project.version}
>>> baseURL=http://localhost:8080/syncope/core/rest/
>>
>> It should be (note 'path' + baseURL is not necessary any more, I will
>> remove it from the wiki page):
>>
>> scheme=http
>> host=localhost
>> port=8080
>> path=/syncope/rest/
>> version=${project.version}
>
>
> Hi,
> any update on this?
>
> Regards.
>
>> 2012/4/23 Francesco Chicchiriccň<[hidden email]>:
>>
>>>> On 23/04/2012 14:24, Prigent Nicolas wrote:
>>>>
>>>> Hi,
>>>>
>>>> I try to install Syncope on my virtual machine (debian) by following
>>>> wiki documentation.
>>>> I did : 1°) Create a new Syncope project
>>>> 2°) Run Syncope in real environments
>>>>
>>>> Everything seems to be ok.
>>>> So, I go to http://localhost:8080/syncope-console, and I get a message :
>>>> "Alert : Session expired: please login again."
>>>> But I can't log in with my admin account ...
>>>> http://i44.tinypic.com/zuko3r.png
>>>>
>>>> Something goes wrong at this point : Console:
>>>> 1.0.0-incubating-SNAPSHOT; Core: null
>>>>
>>>> Do you have any idea why Core is null ?
>>>>
>>>>
>>>> Just guessing, but it seems that your console application does not know
>>>> how
>>>> to contact core application.
>>>>
>>>> Probably there is a bug in the wiki page [1]: it is important that you
>>>> provide in console's configuration.properties the base URL where the
>>>> core
>>>> application is reachable.
>>>>
>>>> Based on the URL you reported above
>>>> (http://localhost:8080/syncope-console),
>>>> the value for baseURL in your case should be
>>>>
>>>> http://localhost:8080/syncope/rest/
>>>>
>>>> Once done, rebuild and redeploy.
>>>>
>>>> Please let us know if it works, now.
>>>> Regards.
>>>>
>>>> [1]
>>>>
>>>> https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-Othersetuptasks
>
> --
> Francesco Chicchiriccň
>
>
> Apache Cocoon PMC and Apache Syncope PPMC Member
> http://people.apache.org/~ilgrosso/
>
Reply | Threaded
Open this post in threaded view
|

Re: [Installation] Session expired: please login again - Core: null

ilgrosso
Administrator
On 26/04/2012 11:37, Prigent Nicolas wrote:
> My /syncope application doesn't exist. I don't know why.
> I have only /syncope-console/ and no /syncope/rest.
> On tomcat web interface in "application manager", /syncope-console is
> started but /syncope/ is stopped (can't be started)
>
> Log file :
> "GET /syncope/rest/user/request/create/allowed HTTP/1.1" 404 1085
> "GET /syncope/rest/user/request/create/allowed HTTP/1.1" 404 1085
> "GET /syncope/rest HTTP/1.1" 404 1001

It seems that the deployment of syncope.war did not succeed: you should
check Tomcat logs (catalina.out, ...) for understanding why.

Regards.

> 2012/4/24 Francesco Chicchiriccò<[hidden email]>:
>> On 23/04/2012 16:08, Francesco Chicchiriccň wrote:
>>> On 23/04/2012 16:04, Prigent Nicolas wrote:
>>>> Here is my "console/src/main/resources/configuration.properties" :
>>>>
>>>> scheme=http
>>>> host=localhost
>>>> port=8080
>>>> path=/syncope/core/rest/
>>>> version=${project.version}
>>>> baseURL=http://localhost:8080/syncope/core/rest/
>>> It should be (note 'path' + baseURL is not necessary any more, I will
>>> remove it from the wiki page):
>>>
>>> scheme=http
>>> host=localhost
>>> port=8080
>>> path=/syncope/rest/
>>> version=${project.version}
>>
>> Hi,
>> any update on this?
>>
>> Regards.
>>
>>> 2012/4/23 Francesco Chicchiriccň<[hidden email]>:
>>>
>>>>> On 23/04/2012 14:24, Prigent Nicolas wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I try to install Syncope on my virtual machine (debian) by following
>>>>> wiki documentation.
>>>>> I did : 1°) Create a new Syncope project
>>>>> 2°) Run Syncope in real environments
>>>>>
>>>>> Everything seems to be ok.
>>>>> So, I go to http://localhost:8080/syncope-console, and I get a message :
>>>>> "Alert : Session expired: please login again."
>>>>> But I can't log in with my admin account ...
>>>>> http://i44.tinypic.com/zuko3r.png
>>>>>
>>>>> Something goes wrong at this point : Console:
>>>>> 1.0.0-incubating-SNAPSHOT; Core: null
>>>>>
>>>>> Do you have any idea why Core is null ?
>>>>>
>>>>>
>>>>> Just guessing, but it seems that your console application does not know
>>>>> how
>>>>> to contact core application.
>>>>>
>>>>> Probably there is a bug in the wiki page [1]: it is important that you
>>>>> provide in console's configuration.properties the base URL where the
>>>>> core
>>>>> application is reachable.
>>>>>
>>>>> Based on the URL you reported above
>>>>> (http://localhost:8080/syncope-console),
>>>>> the value for baseURL in your case should be
>>>>>
>>>>> http://localhost:8080/syncope/rest/
>>>>>
>>>>> Once done, rebuild and redeploy.
>>>>>
>>>>> Please let us know if it works, now.
>>>>> Regards.
>>>>>
>>>>> [1]
>>>>>
>>>>> https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-Othersetuptasks
>> --
>> Francesco Chicchiriccň
>>
>>
>> Apache Cocoon PMC and Apache Syncope PPMC Member
>> http://people.apache.org/~ilgrosso/
>>


--
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/

Reply | Threaded
Open this post in threaded view
|

Re: [Installation] Session expired: please login again - Core: null

Prigent Nicolas
Ok, I found the problem thanks to Catalina.out :

1 - I did not have jar file for mysql-connector-java in my Tomcat /lib.
GRAVE: Error listenerStart
org.apache.catalina.core.StandardContext startInternal
GRAVE: Erreur de démarrage du contexte [/syncope] suite aux erreurs précédentes
(I downloaded it on www.mysql.com)

2 - I did not create syncope database.
(com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
database 'syncope')

Now I can Log on web interface and core is not null.

Thanks for your help.

--
Nicolas

2012/4/26 Francesco Chicchiriccò <[hidden email]>:

> On 26/04/2012 11:37, Prigent Nicolas wrote:
>>
>> My /syncope application doesn't exist. I don't know why.
>> I have only /syncope-console/ and no /syncope/rest.
>> On tomcat web interface in "application manager", /syncope-console is
>> started but /syncope/ is stopped (can't be started)
>>
>> Log file :
>> "GET /syncope/rest/user/request/create/allowed HTTP/1.1" 404 1085
>> "GET /syncope/rest/user/request/create/allowed HTTP/1.1" 404 1085
>> "GET /syncope/rest HTTP/1.1" 404 1001
>
>
> It seems that the deployment of syncope.war did not succeed: you should
> check Tomcat logs (catalina.out, ...) for understanding why.
>
> Regards.
>
>
>> 2012/4/24 Francesco Chicchiriccò<[hidden email]>:
>>>
>>> On 23/04/2012 16:08, Francesco Chicchiriccň wrote:
>>>>
>>>> On 23/04/2012 16:04, Prigent Nicolas wrote:
>>>>>
>>>>> Here is my "console/src/main/resources/configuration.properties" :
>>>>>
>>>>> scheme=http
>>>>> host=localhost
>>>>> port=8080
>>>>> path=/syncope/core/rest/
>>>>> version=${project.version}
>>>>> baseURL=http://localhost:8080/syncope/core/rest/
>>>>
>>>> It should be (note 'path' + baseURL is not necessary any more, I will
>>>> remove it from the wiki page):
>>>>
>>>> scheme=http
>>>> host=localhost
>>>> port=8080
>>>> path=/syncope/rest/
>>>> version=${project.version}
>>>
>>>
>>> Hi,
>>> any update on this?
>>>
>>> Regards.
>>>
>>>> 2012/4/23 Francesco Chicchiriccň<[hidden email]>:
>>>>
>>>>>> On 23/04/2012 14:24, Prigent Nicolas wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I try to install Syncope on my virtual machine (debian) by following
>>>>>> wiki documentation.
>>>>>> I did : 1°) Create a new Syncope project
>>>>>> 2°) Run Syncope in real environments
>>>>>>
>>>>>> Everything seems to be ok.
>>>>>> So, I go to http://localhost:8080/syncope-console, and I get a message
>>>>>> :
>>>>>> "Alert : Session expired: please login again."
>>>>>> But I can't log in with my admin account ...
>>>>>> http://i44.tinypic.com/zuko3r.png
>>>>>>
>>>>>> Something goes wrong at this point : Console:
>>>>>> 1.0.0-incubating-SNAPSHOT; Core: null
>>>>>>
>>>>>> Do you have any idea why Core is null ?
>>>>>>
>>>>>>
>>>>>> Just guessing, but it seems that your console application does not
>>>>>> know
>>>>>> how
>>>>>> to contact core application.
>>>>>>
>>>>>> Probably there is a bug in the wiki page [1]: it is important that you
>>>>>> provide in console's configuration.properties the base URL where the
>>>>>> core
>>>>>> application is reachable.
>>>>>>
>>>>>> Based on the URL you reported above
>>>>>> (http://localhost:8080/syncope-console),
>>>>>> the value for baseURL in your case should be
>>>>>>
>>>>>> http://localhost:8080/syncope/rest/
>>>>>>
>>>>>> Once done, rebuild and redeploy.
>>>>>>
>>>>>> Please let us know if it works, now.
>>>>>> Regards.
>>>>>>
>>>>>> [1]
>>>>>>
>>>>>>
>>>>>> https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-Othersetuptasks
>>>
>>> --
>>> Francesco Chicchiriccň
>>>
>>>
>>> Apache Cocoon PMC and Apache Syncope PPMC Member
>>> http://people.apache.org/~ilgrosso/
>>>
>
>
> --
> Francesco Chicchiriccò
>
>
> Apache Cocoon PMC and Apache Syncope PPMC Member
> http://people.apache.org/~ilgrosso/
>