How Can jBilling Help You?
Who’s Using jBilling?

“I can certainly recommend jBilling.”
Kevin Nelson
Web Conferencing Central
See all testimonials >

building from source

Hi !

I am using jdk 1.6.0_20, jbilling-2_1_1, jbilling-2_1_1-src and Ant 1.8.1

I followed these steps :
building-from-source

at the end of the build I have "Build Successful" but when I try to launch startup.bat there are some errors appearing in the server log and the url http://localhost:8080/billing returns 404 but i can login to the drools guvnor : http://localhost:8080/drools-guvnor/
I didn't change any source I only run ant for testing the build from the source and before building jbilling worked perfectly.

does anyone have the same problem ?

Thanks
Xavier

here is some lines of server.log :

"2010-06-30 16:58:59,593 16244 INFO [org.apache.activemq.broker.TransportConnector] (main:) Connector vm://localhost Started
2010-06-30 16:59:06,816 23467 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-0:) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1cf8de2 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
2010-06-30 16:59:06,816 23467 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-0:) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1cf8de2 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
2010-06-30 16:59:06,826 23477 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-0:) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1cf8de2 -- APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 3
Active Threads: 3
Active Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@477b4e (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@f0691c (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@184be29 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
Pending Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1e0799a
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4f7bc2
Pool thread stack traces:
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)


2010-06-30 16:59:06,826 23477 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-0:) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1cf8de2 -- APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 3
Active Threads: 3
Active Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@477b4e (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@f0691c (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@184be29 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
Pending Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1e0799a
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4f7bc2
Pool thread stack traces:
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)


2010-06-30 16:59:19,773 36424 WARN [org.hibernate.util.JDBCExceptionReporter] (main:) SQL Error: 0, SQLState: null
2010-06-30 16:59:19,775 36426 ERROR [org.hibernate.util.JDBCExceptionReporter] (main:) An attempt by a client to checkout a Connection has timed out.
2010-06-30 16:59:19,782 36433 WARN [org.hibernate.util.JDBCExceptionReporter] (main:) SQL Error: 0, SQLState: null
2010-06-30 16:59:19,784 36435 ERROR [org.hibernate.util.JDBCExceptionReporter] (main:) An attempt by a client to checkout a Connection has timed out.
2010-06-30 16:59:19,796 36447 FATAL [com.sapienter.jbilling] (main:) Internal error: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:599)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy8.getCurrencySymbolsMap(Unknown Source)
at com.sapienter.jbilling.client.util.JBillingListener.contextInitialized(JBillingListener.java:60)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
.............

 
xavier wrote 1 year 30 weeks ago

solved this issue

I edited conf\jbilling-database.xml, after building from the source it wasn't still configured with hypersonic database connection information but with postgre. I changed to hypersonic and it worked.

Xavier

 
xavier wrote 1 year 30 weeks ago

Hello Vikas

Hello Vikas,

does not jbilling run on hypersonic by default ? When I tested jbilling for the first time I didn't start any database server before (or even after) bin/startup.bat. Since I don't modify any sources jbilling should again runs on hypersonic after building with ant.

Xavier

 
vb1900 wrote 1 year 30 weeks ago

Hello Xavier

To me it looks like you haven't started your database server before you started your tomcat.

It is also not clear from the trace, which database you're using.

Can you also post if you're past this problem?

-Vikas

Please register or login to post a comment.