Page 1 of 1

Unable to create/update in admin

Posted: Tue Feb 18, 2014 11:23 pm
by Shrod1951
Hi,
I deployed my broadleaf project to amazon ec2 (apache enabled) and run it with standalone tomcat. But, when I want to create/update product, it gives me error/redirect me to localhost.
Example : http://localhost:8080/admin/product/1.

Where am I configure wrongly?
By the way, I had no problem while running with Jetty even on ec2 (apache enabled).

Thanks,
ShroDxD.

Re: Unable to create/update in admin

Posted: Wed Feb 19, 2014 9:39 pm
by Shrod1951
Waah! Still no answer for this question? Anyone?

Thanks,
ShrodDxD

Re: Unable to create/update in admin

Posted: Thu Feb 20, 2014 1:37 pm
by phillipuniverse
What version of Broadleaf are you on? Is there something in your Tomcat server.xml that has something about localhost? Can you inspect the form html that is output and see if the action is localhost:8080?

Re: Unable to create/update in admin

Posted: Sat Feb 22, 2014 3:16 pm
by Shrod1951
Hi,
Sorry for late answer due to not with my Macbook this few days.
The broadleaf version I'm on is 3.0 .
I thinks it should had no problem with html code because I got no problem with jetty.
This is the server.xml

Code: Select all

<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />

    <Resource
   auth="Container"
   driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
   maxActive="2"
   maxIdle="1"
   maxWait="-1"
   name="jdbc/web"
   type="javax.sql.DataSource"
   url="jdbc:derby:flexeraDB;create=true"
    />
  </GlobalNamingResources>
  <Service name="Catalina">

    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

    <Engine name="Catalina" defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.LockOutRealm">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
    </Engine>
  </Service>
</Server>


Thanks,
ShrodDxD