Page 1 of 1

Admin Page not loaded

Posted: Sun Feb 17, 2013 8:38 am
by sunil
Hi

I installed the Broadleaf framework. I am able to see the home page of shop. But when I go to admin page I am not able to access it. I know it is accessed by https. I set the setting for my chrome browser but am still not able to access it using the https. I know i have to deactivate the security settings from applicationcontest security xml file. I do not know from where i have to change the security file admin/site and what i have to change? I do some google search about spring security and found that

<sec:intercept-url> is related to https security therefore I removed the followding code from the admin sercurity xml

Code: Select all

<sec:intercept-url pattern="/" requires-channel="any" />
      <sec:intercept-url pattern="/**" requires-channel="any" />


Code: Select all

<sec:filter-security-metadata-source>
            <sec:intercept-url pattern="/admin.html*" access="PERMISSION_OTHER_DEFAULT" />
            <sec:intercept-url pattern="/dynamic.entity.service" access="PERMISSION_OTHER_DEFAULT" />
         </sec:filter-security-metadata-source>


Please suggest me how I deactivate the spring security ?

Thanks
Sunil

Re: Admin Page not loaded

Posted: Sun Feb 17, 2013 9:52 am
by phillipuniverse
What port are you going to? The admin runs on port 8444 for https and 8443 on http. By default, all traffic in the admin is forced to use https, so you will have to go to https://localhost:8444/admin for it to work.

To answer your specific question, you might want to instead only use http for the admin (although not recommended). If so, You should change all of the 'requires-channel' properties to either 'any' (which means it will accept https or http) or just http.

Re: Admin Page not loaded

Posted: Sun Feb 17, 2013 11:10 am
by sunil
Thanks for reply. I am checking port number you specified. I will change https to any in spring security. One thing more when I run the jetty-stop task then I got following errors.

Code: Select all

[0] Inside the definition for plugin 'jetty-maven-plugin' specify the following:
 <configuration>
   ...
   <stopKey>VALUE</stopKey>
 </configuration>.
 [1] Inside the definition for plugin 'jetty-maven-plugin' specify the following:
 <configuration>
   ...
  <stopPort>VALUE</stopPort>
] </configuration>.


please tell me what I have to do for the above error?

Thanks

Re: Admin Page not loaded

Posted: Sun Feb 17, 2013 12:46 pm
by sunil
Hi,
I changed the 'https' to any in application security spring files I am able to see the Login screen when I click on login link on site

but not able to see the admin screen I used 8443 for http and 8444 for https. I also used the screen 8081 as mention in GetStarted tutorial.

What I did
First I start the site
then I start admin jetty task

Please tell me what I have to do to run the admin page thanks

Re: Admin Page not loaded

Posted: Sun Feb 17, 2013 4:53 pm
by phillipuniverse
I'm still not exactly understanding what your full process is. This is what it should be:

  • run ant task 'jetty-demo' on site
  • run ant task 'jetty-demo' on admin
  • go to https://localhost:8444/admin in your browser
  • login to the admin application with admin/admin
  • see all of the admin

After doing all of this, which part goes wrong? Are you not seeing the admin login page at all?

Re: Admin Page not loaded

Posted: Sun Feb 17, 2013 9:24 pm
by sunil
Sorry, If my question is ambiguous. Yes I am not getting admin Login page at all :( .I followed all steps as you mention in your above post. For my local system I try to access without "https" but not accessable.

for https i tried 8444 port
for http i tried 8443 and 8081 port

In both ways I am not seeing admin login page at all. If further explain is require please tell

Thanks

Re: Admin Page not loaded

Posted: Mon Feb 18, 2013 12:24 am
by phillipuniverse
What if you specify the HTML file explicitly: https://localhost:8444/admin/admin.html? Is there anything in the logs that said it was unsuccessful in starting up?

Re: Admin Page not loaded

Posted: Mon Feb 18, 2013 1:56 am
by sunil
I did not get any info on eclipse console and in breadleaf.log. One thing i note that when I run jetty demo task for admin and site for both following message is printing

[INFO] Started Jetty Server
2013-02-17 22:42:21.396:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080

but in Get Started tutorial I see that jetty server should print following message for admin console
[artifact:mvn] [INFO] Started Jetty Server
[artifact:mvn] 2013-02-17 22:42:21.396:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8081

I want to say that in both cases port is 8080. if this is the problem how can I solve it?
If there is any another log where I have to see please tell me.


Thanks

Re: Admin Page not loaded

Posted: Mon Feb 18, 2013 9:30 am
by sunil
Hi

I resolve that problem, problem is in my windows registery. Not accepting SSL by browsers

Thanks for your response and now I am going to study admin panel

Sunil
India