Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: fffeee on May 04, 2012, 01:53:25 PM



Title: RPC fails to connect!
Post by: fffeee on May 04, 2012, 01:53:25 PM
RPC fails to connect!

If I tunnel the bitcoin rpc port 8332 to my local maschine and deploy my application with netbeans (glassfish server) it works and connects fine!!
But when I deploy the application on my webserver (tomcat) it doesnt work and shows this error:

"HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 15 in the generated java file
Only a type can be imported. bitcoin.BitcoinHandler resolves to a package"

Is there someone who can help me?

Thans in advance


Title: Re: RPC fails to connect!
Post by: fffeee on May 04, 2012, 03:16:55 PM
Is that the wrong board here?


Title: Re: RPC fails to connect!
Post by: Pieter Wuille on May 04, 2012, 03:38:42 PM
Seems your source code is not compatible with JSP.


Title: Re: RPC fails to connect!
Post by: fffeee on May 04, 2012, 03:40:31 PM
So why the application run on a glassfish server?


Title: Re: RPC fails to connect!
Post by: fffeee on May 04, 2012, 05:59:40 PM
I think there could be a tomcat problem.. Tomcat doesnt really know where to look for the source packages and libs..

Does somebody know what to do now?


Title: Re: RPC fails to connect!
Post by: DeathAndTaxes on May 04, 2012, 06:06:42 PM
No can't help you on that but your development box and your final server should be as close to identical as possible.
Developing under one environment and then deploying it to another one is just a recipe for disaster.


Title: Re: RPC fails to connect!
Post by: fffeee on May 04, 2012, 07:17:18 PM
I know.. that was stupid..

but does someone know how to handle this?


Title: Re: RPC fails to connect!
Post by: fffeee on May 05, 2012, 01:27:44 PM
Nothing new?


Title: Re: RPC fails to connect!
Post by: fffeee on May 05, 2012, 08:19:43 PM
Is a web.xml in the structure of a tomcat webapp necessary for every app? (No matter what kind..?!?)


Title: Re: RPC fails to connect!
Post by: Pieter Wuille on May 05, 2012, 10:17:57 PM
This really has nothing to do with bitcoin. Maybe you can post something in the market section if you want to pay for programming help.