Page 1 of 1

Error running the admin

Posted: Sat Dec 22, 2012 2:53 pm
by Ramneek
Hi,

I have been trying to get the admin running but nothing seems to work. I always get the following error when try to access the link - http://localhost:8080/admin

HTTP ERROR 404
Problem accessing /admin. Reason:

Not Found

In the eclipse console I get the following messages -
[ERROR] 22:36:08 Ejb3Configuration - Container is providing a null PersistenceUnitRootUrl: discovery impossible
...
[ WARN] 01:16:29 PageNotFound - No mapping found for HTTP request with URI [/admin] in DispatcherServlet with name 'mycompany'

Any ideas on where I could be going wrong.

Thank you,
Ramneek

Re: Error running the admin

Posted: Sat Dec 22, 2012 3:01 pm
by denis
Are you sure that you hit the correct port?

I believe that the admin listen on port 8081 by default : can you try this URL : http://localhost:8081/admin

Re: Error running the admin

Posted: Sat Dec 22, 2012 3:14 pm
by Ramneek
yups I tried it - http://localhost:8081/admin
This just gives me page not found error.

Also when I run the jetty-demo for the admin ant build it gives me the following message in the end -
[artifact:mvn] 2012-12-22 22:36:31.589:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
[artifact:mvn] [INFO] Started Jetty Server

So I am assuming it tries to listen on port 8080 only!

Re: Error running the admin

Posted: Sun Dec 23, 2012 7:14 pm
by phillipuniverse
The admin does not listen on port 8080 by default. It listens on port 8081 for http and 8444 for https. I would verify that you are actually running jetty-demo from the admin build.xml file (assuming that you haven't made any changes for it to listen on port 8080) and then try going to the https url: https://localhost:8444/admin.

Re: Error running the admin

Posted: Tue Dec 25, 2012 4:59 am
by Ramneek
Yups got it! The problem was cos of the fix suggested in the following topic - http://forum.broadleafcommerce.org/viewtopic.php?f=15&t=670. I had the same problem "Error configuring: org.mortbay.jetty:jetty-maven-plugin. Reason: ERROR: Cannot override read-only parameter: contextPath in goal: jetty:run" and so I had made the following changes in the admin/pom.xml and in the site/pom.xml:

Code: Select all

<configuration>
    <webAppConfig>
        <webAppSourceDirectory>${webappDirectory}</webAppSourceDirectory>
        ...
    </webAppConfig>
</configuration>


However, I think we need to make the following changes instead:

Code: Select all

<configuration>
    ...
    <webAppConfig>
        <contextPath>...</contextPath>
    </webAppConfig>
    ...
</configuration>


Thank you,
Ramneek