Problem in running OFBiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem in running OFBiz

Pal Infocom Technologies-2
Hello friends,

I checked out the code of OFBIZ from one of OUR client's SVN. But when i tried to run it using the command: ./ant run, i got the following error--:

---------------------------------------------------------------------------------
Error initializing endpoint
     [java] java.io.IOException: Invalid keystore format
---------------------------------------------------------------------------------


NOTE: The ofbiz i am using has been modified by many other developers,not in my knowledge.

I am using Java Version 1.5.0.

I also tried by generating new keystore file but all in vain. Is there anyone who can help me in this regard.Its urgent.

Here is the full stack trace:-->

 [java] 2009-08-24 12:22:01,145 (main) [
Http11BaseProtocol.java:141:ERROR] Error initializing endpoint
     [java] java.io.IOException: Invalid keystore format
     [java]     at
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:632)
     [java]     at java.security.KeyStore.load(KeyStore.java:1150)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:287)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
     [java] org.ofbiz.base.start.StartupException: Cannot init()
catalina-container (Protocol handler initialization failed:
java.io.IOException: Invalid keystore format)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:192)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] org.ofbiz.base.container.ContainerException: Protocol
handler initialization failed: java.io.IOException: Invalid keystore format
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:211)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] LifecycleException:  Protocol handler initialization failed:
java.io.IOException: Invalid keystore format
     [java]     at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
     [java]     at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] org.ofbiz.base.container.ContainerException: Protocol
handler initialization failed: java.io.IOException: Invalid keystore format
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:211)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] LifecycleException:  Protocol handler initialization failed:
java.io.IOException: Invalid keystore format
     [java]     at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
     [java]     at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] LifecycleException:  Protocol handler initialization failed:
java.io.IOException: Invalid keystore format
     [java]     at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
     [java]     at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:99)
     [java]     at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:295)
     [java]     at
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
     [java]     at
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
     [java]     at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] Java Result: 99

--
Best regards,

Ajay S
Pal Infocom Technologies
Mohali (India)
Portland (USA)
Reply | Threaded
Open this post in threaded view
|

Re: Problem in running OFBiz

Pal Infocom Technologies-2
Hello all,

I have found the solution to the problem that i have posted below.

Generate the ssl keystore using the following command: keytool -genkey -alias tomcat -keyalg RSA -keystore <keystore filename>

e.g keytool -genkey -alias tomcat -keyalg RSA -keystore ofbizssl.jks


It will ask for the password . Use password  "changeit" or any other you want .

Further more information will be asked regarding your company like Full Name, Organisation Unit, Organisation Name,State andCity. Provide all the information of your choice. Now it will ask for confirmation. Type yes and enter. Then it will again prompt for password .. Provide the same password as before. The keystore file will be generated in the same directory. Now open the ofbiz-container.xml file. In the tomcat container  look for Https connector and specify the property keystore file  with your keystore file location and keystore pass with your password.

Code will successfully execute.  

If you have some query regarding Ofbiz, feel free to write us on ofbiz@palinfocom.net

--
Best regards,

Ajay S
Pal Infocom Technologies
Mohali (India)
Portland (USA)


Pal InfoCom Technologies wrote
Hello friends,

I checked out the code of OFBIZ from one of OUR client's SVN. But when i tried to run it using the command: ./ant run, i got the following error--:

---------------------------------------------------------------------------------
Error initializing endpoint
     [java] java.io.IOException: Invalid keystore format
---------------------------------------------------------------------------------


NOTE: The ofbiz i am using has been modified by many other developers,not in my knowledge.

I am using Java Version 1.5.0.

I also tried by generating new keystore file but all in vain. Is there anyone who can help me in this regard.Its urgent.

Here is the full stack trace:-->

 [java] 2009-08-24 12:22:01,145 (main) [
Http11BaseProtocol.java:141:ERROR] Error initializing endpoint
     [java] java.io.IOException: Invalid keystore format
     [java]     at
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:632)
     [java]     at java.security.KeyStore.load(KeyStore.java:1150)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:287)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
     [java] org.ofbiz.base.start.StartupException: Cannot init()
catalina-container (Protocol handler initialization failed:
java.io.IOException: Invalid keystore format)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:192)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] org.ofbiz.base.container.ContainerException: Protocol
handler initialization failed: java.io.IOException: Invalid keystore format
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:211)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] LifecycleException:  Protocol handler initialization failed:
java.io.IOException: Invalid keystore format
     [java]     at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
     [java]     at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] org.ofbiz.base.container.ContainerException: Protocol
handler initialization failed: java.io.IOException: Invalid keystore format
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:211)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] LifecycleException:  Protocol handler initialization failed:
java.io.IOException: Invalid keystore format
     [java]     at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
     [java]     at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] LifecycleException:  Protocol handler initialization failed:
java.io.IOException: Invalid keystore format
     [java]     at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
     [java]     at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java]     at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:99)
     [java]     at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:295)
     [java]     at
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
     [java]     at
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
     [java]     at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
     [java]     at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
     [java]     at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
     [java]     at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
     [java]     at
org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
     [java] Java Result: 99

--
Best regards,

Ajay S
Pal Infocom Technologies
Mohali (India)
Portland (USA)
Reply | Threaded
Open this post in threaded view
|

Re: Problem in running OFBiz

c.schinzer
Ajay,


just to be clear here. The above issue is not an ofbiz issue, but rather a
Tomcat one in order to provide a default ssl certificate for https
conversation, correct?
Note that a self-generated certificate will possibly still cause issues when
you expose it to a public IP because then the URL of the site needs to match
the URL for the ssl certificate.

Regards


Carsten


2009/8/25 Pal InfoCom Technologies <[hidden email]>

>
> Hello all,
>
> I have found the solution to the problem that i have posted below.
>
> Generate the ssl keystore using the following command: keytool -genkey
> -alias tomcat -keyalg RSA -keystore <keystore filename>
>
> e.g keytool -genkey -alias tomcat -keyalg RSA -keystore ofbizssl.jks
>
>
> It will ask for the password . Use password  "changeit" or any other you
> want . :working:
>
> Further more information will be asked regarding your company like Full
> Name, Organisation Unit, Organisation Name,State andCity. Provide all the
> information of your choice. Now it will ask for confirmation. Type yes and
> enter. Then it will again prompt for password .. Provide the same password
> as before. The keystore file will be generated in the same directory. Now
> open the ofbiz-container.xml file. In the tomcat container  look for Https
> connector and specify the property keystore file  with your keystore file
> location and keystore pass with your password.
>
> Code will successfully execute. :jumping:
>
> If you have some query regarding Ofbiz, feel free to write us on
> [hidden email]
>
> --
> Best regards,
>
> Ajay S
> Pal Infocom Technologies
> Mohali (India)
> Portland (USA)
>
>
>
> Pal InfoCom Technologies wrote:
> >
> > Hello friends,
> >
> > I checked out the code of OFBIZ from one of OUR client's SVN. But when i
> > tried to run it using the command: ./ant run, i got the following
> error--:
> >
> >
> ---------------------------------------------------------------------------------
> > Error initializing endpoint
> >      [java] java.io.IOException: Invalid keystore format
> >
> ---------------------------------------------------------------------------------
> >
> >
> > NOTE: The ofbiz i am using has been modified by many other developers,not
> > in my knowledge.
> >
> > I am using Java Version 1.5.0.
> >
> > I also tried by generating new keystore file but all in vain. Is there
> > anyone who can help me in this regard.Its urgent.
> >
> > Here is the full stack trace:-->
> >
> >  [java] 2009-08-24 12:22:01,145 (main) [
> > Http11BaseProtocol.java:141:ERROR] Error initializing endpoint
> >      [java] java.io.IOException: Invalid keystore format
> >      [java]     at
> > sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:632)
> >      [java]     at java.security.KeyStore.load(KeyStore.java:1150)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:287)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
> >      [java] org.ofbiz.base.start.StartupException: Cannot init()
> > catalina-container (Protocol handler initialization failed:
> > java.io.IOException: Invalid keystore format)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:192)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] org.ofbiz.base.container.ContainerException: Protocol
> > handler initialization failed: java.io.IOException: Invalid keystore
> > format
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:211)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] LifecycleException:  Protocol handler initialization failed:
> > java.io.IOException: Invalid keystore format
> >      [java]     at
> > org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
> >      [java]     at
> >
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] org.ofbiz.base.container.ContainerException: Protocol
> > handler initialization failed: java.io.IOException: Invalid keystore
> > format
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:211)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] LifecycleException:  Protocol handler initialization failed:
> > java.io.IOException: Invalid keystore format
> >      [java]     at
> > org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
> >      [java]     at
> >
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] LifecycleException:  Protocol handler initialization failed:
> > java.io.IOException: Invalid keystore format
> >      [java]     at
> > org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
> >      [java]     at
> >
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:99)
> >      [java]     at
> >
> org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:295)
> >      [java]     at
> >
> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
> >      [java]     at
> > org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
> >      [java]     at
> >
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] Java Result: 99
> >
> > --
> > Best regards,
> >
> > Ajay S
> > Pal Infocom Technologies
> > Mohali (India)
> > Portland (USA)
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-in-running-OFBiz-tp25112065p25132943.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


--

Best

Carsten Schinzer

Waisenhausstr. 53a
80637 München
Germany
Reply | Threaded
Open this post in threaded view
|

Re: Problem in running OFBiz

Pal Infocom Technologies-2
Hello Carsten,

Thanks for your prompt response. Yes, you are correct, we have to create the SSL for the public site too, to solve the problem completely. We will keep this thing in mind.

Thanks once again.

--
Best regards,
Ajay S
Pal Infocom Technologies,
Mohali (India)
Portland (USA)


Carsten Schinzer wrote
Ajay,


just to be clear here. The above issue is not an ofbiz issue, but rather a
Tomcat one in order to provide a default ssl certificate for https
conversation, correct?
Note that a self-generated certificate will possibly still cause issues when
you expose it to a public IP because then the URL of the site needs to match
the URL for the ssl certificate.

Regards


Carsten


2009/8/25 Pal InfoCom Technologies <ofbiz@palinfocom.net>

>
> Hello all,
>
> I have found the solution to the problem that i have posted below.
>
> Generate the ssl keystore using the following command: keytool -genkey
> -alias tomcat -keyalg RSA -keystore <keystore filename>
>
> e.g keytool -genkey -alias tomcat -keyalg RSA -keystore ofbizssl.jks
>
>
> It will ask for the password . Use password  "changeit" or any other you
> want . :working:
>
> Further more information will be asked regarding your company like Full
> Name, Organisation Unit, Organisation Name,State andCity. Provide all the
> information of your choice. Now it will ask for confirmation. Type yes and
> enter. Then it will again prompt for password .. Provide the same password
> as before. The keystore file will be generated in the same directory. Now
> open the ofbiz-container.xml file. In the tomcat container  look for Https
> connector and specify the property keystore file  with your keystore file
> location and keystore pass with your password.
>
> Code will successfully execute. :jumping:
>
> If you have some query regarding Ofbiz, feel free to write us on
> ofbiz@palinfocom.net
>
> --
> Best regards,
>
> Ajay S
> Pal Infocom Technologies
> Mohali (India)
> Portland (USA)
>
>
>
> Pal InfoCom Technologies wrote:
> >
> > Hello friends,
> >
> > I checked out the code of OFBIZ from one of OUR client's SVN. But when i
> > tried to run it using the command: ./ant run, i got the following
> error--:
> >
> >
> ---------------------------------------------------------------------------------
> > Error initializing endpoint
> >      [java] java.io.IOException: Invalid keystore format
> >
> ---------------------------------------------------------------------------------
> >
> >
> > NOTE: The ofbiz i am using has been modified by many other developers,not
> > in my knowledge.
> >
> > I am using Java Version 1.5.0.
> >
> > I also tried by generating new keystore file but all in vain. Is there
> > anyone who can help me in this regard.Its urgent.
> >
> > Here is the full stack trace:-->
> >
> >  [java] 2009-08-24 12:22:01,145 (main) [
> > Http11BaseProtocol.java:141:ERROR] Error initializing endpoint
> >      [java] java.io.IOException: Invalid keystore format
> >      [java]     at
> > sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:632)
> >      [java]     at java.security.KeyStore.load(KeyStore.java:1150)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:287)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
> >      [java] org.ofbiz.base.start.StartupException: Cannot init()
> > catalina-container (Protocol handler initialization failed:
> > java.io.IOException: Invalid keystore format)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:192)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] org.ofbiz.base.container.ContainerException: Protocol
> > handler initialization failed: java.io.IOException: Invalid keystore
> > format
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:211)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] LifecycleException:  Protocol handler initialization failed:
> > java.io.IOException: Invalid keystore format
> >      [java]     at
> > org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
> >      [java]     at
> >
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] org.ofbiz.base.container.ContainerException: Protocol
> > handler initialization failed: java.io.IOException: Invalid keystore
> > format
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:211)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] LifecycleException:  Protocol handler initialization failed:
> > java.io.IOException: Invalid keystore format
> >      [java]     at
> > org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
> >      [java]     at
> >
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] LifecycleException:  Protocol handler initialization failed:
> > java.io.IOException: Invalid keystore format
> >      [java]     at
> > org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
> >      [java]     at
> >
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java]     at
> >
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:99)
> >      [java]     at
> >
> org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:295)
> >      [java]     at
> >
> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
> >      [java]     at
> > org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
> >      [java]     at
> >
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
> >      [java]     at
> >
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:209)
> >      [java]     at
> >
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
> >      [java]     at
> > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
> >      [java]     at
> > org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
> >      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
> >      [java]     at org.ofbiz.base.start.Start.main(Start.java:396)
> >      [java] Java Result: 99
> >
> > --
> > Best regards,
> >
> > Ajay S
> > Pal Infocom Technologies
> > Mohali (India)
> > Portland (USA)
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-in-running-OFBiz-tp25112065p25132943.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


--

Best

Carsten Schinzer

Waisenhausstr. 53a
80637 München
Germany