Page 1 of 1

Deploying Broadleaf to IBM Websphere

Posted: Thu Aug 22, 2013 11:29 pm
by b4bblefish
Hi All,

In the FAQs it states that Broadleaf has been tested as compatible with websphere. If any of you have experience deploying it to websphere any help with the following issues would be greatly appreciated :x

So far the only thing I have done differently from the standard deploy is change the db from hsqldb to PostgreSQL and that has been tested working in Jetty and the connections are good in Websphere.

I get the following errors on startup on my application server:

Code: Select all

[8/23/13 0:16:00:362 EDT] 00000044 DSConfigHelpe W   DSRA0174W: Warning: GenericDataStoreHelper is being used.
[8/23/13 0:16:00:375 EDT] 00000044 DSConfigHelpe W   DSRA0174W: Warning: GenericDataStoreHelper is being used.
[8/23/13 0:16:00:526 EDT] 00000044 Enhance       W   CWWJP9991W: openjpa.Enhance: Warn: An exception was thrown while attempting to perform class file transformation on "org.broadleafcommerce.core.payment.domain.BankAccountPaymentInfoImpl":
      Exception : org.apache.openjpa.util.MetaDataException
     org.apache.openjpa.util.MetaDataException: "org.broadleafcommerce.core.payment.domain.BankAccountPaymentInfoImpl.id" declares generator name "BankPaymentId", but uses the AUTO generation type.  The only valid generator names under AUTO are "uuid-hex" and "uuid-string".
[8/23/13 0:16:00:598 EDT] 00000044 SystemOut     O [ERROR] 00:16:00 ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPersistenceUnitManager' while setting bean property 'persistenceUnitManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitManager' defined in resource loaded from byte array: Invocation of init method failed; nested exception is java.lang.RuntimeException:  org.apache.openjpa.util.MetaDataException: "org.broadleafcommerce.core.payment.domain.BankAccountPaymentInfoImpl.id" declares generator name "BankPaymentId", but uses the AUTO generation type.  The only valid generator names under AUTO are "uuid-hex" and "uuid-string".


for creating several of the beans.

In addition I am getting the following error going to localhost:

Code: Select all

Error 500: javax.servlet.ServletException: Filter [springSecurityFilterChain]: could not be initialized


I have also tried changing the context root to something like /broadleaf and remapping the filters in web.xml, but that just gives a 404 error instead when i go to localhost/broadleaf.

Thanks for taking the time to look and any help is awesome :D

Re: Deploying Broadleaf to IBM Websphere

Posted: Fri Aug 23, 2013 2:09 pm
by b4bblefish
Update got past the initial errors creating beans. Needed to specify a persistence provider.

org.hibernate.ejb.HibernatePersistence

for Application Server -> Container Services -> Default Java Persistence API settings.

Now I have

Code: Select all

[8/23/13 11:32:42:050 EDT] 00000044 JPAPUnitInfo  E   CWWJP0015E: An error occurred in the org.hibernate.ejb.HibernatePersistence persistence provider when it attempted to create the container entity manager factory for the blSecurePU persistence unit. The following error occurred: java.lang.NullPointerException
   at org.hibernate.engine.jdbc.internal.TypeInfoExtracter.extractTypeInfo(TypeInfoExtracter.java:85)


And onto the apache solr errors...

Code: Select all

[8/23/13 11:32:57:484 EDT] 00000050 SystemOut     O [ERROR] 11:32:57 SolrCore - java.lang.NullPointerException
   at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:179)
   at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
   at org.apache.solr.core.SolrCore.execute(SolrCore.java:1699)
   at org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:63)
   at org.apache.solr.core.SolrCore$5.call(SolrCore.java:1479)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
   at java.util.concurrent.FutureTask.run(FutureTask.java:149)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
   at java.lang.Thread.run(Thread.java:772)

[8/23/13 11:32:57:489 EDT] 00000044 SystemOut     O [ERROR] 11:32:57 CoreContainer - Unable to create core: primary
org.apache.solr.common.SolrException: org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.()V