You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ashu agarwal <as...@rediffmail.com> on 2008/05/23 17:03:36 UTC

error : java.lang.RuntimeException: Object not initialized.

Hi,

This is the first time I am posting to this forum so please excuse me if I
didn’t follow any posting conventions:)

I have a war file which I deployed in my tomcat 5.5. The application is
working fine. Now I have to do the same procedure on a different computer. I
installed tomcat 5.5 and java 1.5 there and deployed the war file. I see the
first page of the application but on clicking any other page I get the
following error:

SEVERE: java.lang.RuntimeException: Object not initialized. This manager
should
be initialized in the boot server phase.        at
com.agencyport.trandef.TransactionDefinitionManager.getTransaction(Tr
ansactionDefinitionManager.java:580)
        at
com.agencyport.trandef.TransactionDefinitionManager.getCollectionName
For(TransactionDefinitionManager.java:517)
        at
com.agencyport.servlets.base.APCommand.setTransactionNameRelatedInfo(
APCommand.java:929)
        at
com.agencyport.servlets.base.APCommand.initControlData(APCommand.java
:1073)
        at
com.agencyport.servlets.base.CMDBaseDisplayFTDE.process(CMDBaseDispla
yFTDE.java:90)
        at
com.agencyport.servlets.base.FrontServlet.processRequest(FrontServlet
.java:104)
        at
com.agencyport.servlets.base.FrontServlet.doGet(FrontServlet.java:47)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:174)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:874)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:689)
        at java.lang.Thread.run(Thread.java:595)
 

When I goto http://localhost:8080, I get the tomcat page. I do not have the
source code of the application, but I know that there is no problem in the
war file.
I have no idea what could be the issue. I would highly appreciate any help
in this matter. 

Thanks a lot,
Ashu 

-- 
View this message in context: http://www.nabble.com/error-%3A-java.lang.RuntimeException%3A-Object-not-initialized.-tp17427607p17427607.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: error : java.lang.RuntimeException: Object not initialized.

Posted by ashu agarwal <as...@rediffmail.com>.
Hi,
This has been resolved. I just increased the memory in tomcat and its
working fine. Wonder why it didn't throw an out of memory exception instead?
Thanks anyways!

-Ashu


ashu agarwal wrote:
> 
> Hi,
> 
> This is the first time I am posting to this forum so please excuse me if I
> didn’t follow any posting conventions:)
> 
> I have a war file which I deployed in my tomcat 5.5. The application is
> working fine. Now I have to do the same procedure on a different computer.
> I installed tomcat 5.5 and java 1.5 there and deployed the war file. I see
> the first page of the application but on clicking any other page I get the
> following error:
> 
> SEVERE: java.lang.RuntimeException: Object not initialized. This manager
> should
> be initialized in the boot server phase.        at
> com.agencyport.trandef.TransactionDefinitionManager.getTransaction(Tr
> ansactionDefinitionManager.java:580)
>         at
> com.agencyport.trandef.TransactionDefinitionManager.getCollectionName
> For(TransactionDefinitionManager.java:517)
>         at
> com.agencyport.servlets.base.APCommand.setTransactionNameRelatedInfo(
> APCommand.java:929)
>         at
> com.agencyport.servlets.base.APCommand.initControlData(APCommand.java
> :1073)
>         at
> com.agencyport.servlets.base.CMDBaseDisplayFTDE.process(CMDBaseDispla
> yFTDE.java:90)
>         at
> com.agencyport.servlets.base.FrontServlet.processRequest(FrontServlet
> .java:104)
>         at
> com.agencyport.servlets.base.FrontServlet.doGet(FrontServlet.java:47)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:269)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:188)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:174)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:127)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:117)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:108)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
> a:174)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :874)
>         at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
> rocessConnection(Http11BaseProtocol.java:665)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
> int.java:528)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
> lowerWorkerThread.java:81)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:689)
>         at java.lang.Thread.run(Thread.java:595)
>  
> 
> When I goto http://localhost:8080, I get the tomcat page. I do not have
> the source code of the application, but I know that there is no problem in
> the war file.
> I have no idea what could be the issue. I would highly appreciate any help
> in this matter. 
> 
> Thanks a lot,
> Ashu 
> 
> 

-- 
View this message in context: http://www.nabble.com/error-%3A-java.lang.RuntimeException%3A-Object-not-initialized.-tp17427607p17430119.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Using key signed by Verisign in Tomcat (mini howto)

Posted by VeriSignTechSupport <jm...@verisign.com>.
Hi Chris,

I am a Technical Support Rep at VeriSign.  I apologize if you are unable to
find any documentation regarding the installation of the intermediate
certificate for Tomcat.  

Once you have the VeriSign Intermediate CA certificate, you can run this
command to import it into your keystore:

keytool -import -alias intermediateCA -keystore <your_keystore_filename>
-trustcacerts -file intermediateCA.cer
 
NOTE: The alias name, "intermediateCA" in this command is different than the
alias name used during the generation of the private key and CSR.

After the intermediate certificate is installed, you import the SSL
certificate into the same keystore / alias where you generated the private
key.  

We also have this information documented on our site.  You will also find
these instructions on our Support Page:

https://knowledge.verisign.com/support/ssl-certificates-support/index?page=content&id=AR234
https://knowledge.verisign.com/support/ssl-certificates-support/index?page=content&id=AR234 


Hopefully, this helps.

Thank You,

Jonathan

VeriSign Technical Support



Parker, Chris-2 wrote:
> 
> I'm sending this email because I've spent the last day and a half
> putting together the bread crumbs necessary to get a signed key from
> Verisign to work with Tomcat.  I never found one place that has all the
> necessary information regarding how to deal with Verisign's use of
> intermediate keys.  The funny thing is all this stuff is straightforward
> (once known).  So here are the steps in one place - in the hopes that it
> might help someone in the future.
> 
> 
> 
> Step 1:
> Our server was not yet using SSL, so we needed to generate a new key and
> keystore. 
> 
> keytool -genkey -alias tomcat -keyalg rsa -keypass secret -storepass
> secret -keystore keystore.key
> 
> This generates a new keystore.  Be sure to use "-keyalg rsa" as the
> default algorithm is dsa, and Verisign will not accept dsa.  Also, it's
> important to remember the alias, "tomcat" in this case.  When we receive
> the signed certificate we'll need to apply it to that alias.  That's how
> clients will know that our private key has been "signed".  Be sure to
> respond to all the prompts correctly, using the proper FQDN of the
> server.  This stuff is well documented - all over the place - so no
> point in duplicating it here.
> 
> 
> 
> Step 2:
> Next we need to generate a certificate signing request.
> 
> keytool -certreq -alias tomcat -file keystore.csr -keypass secret
> -storepass secret -keystore keystore.key
> 
> Be sure to use "tomcat" as the alias again so that the correct private
> key is referenced.  Send the file "keystore.csr" to Verisign for
> signature.  Again, this part is well documented.
> 
> 
> 
> Step 3 THIS IS THE TRICKY PART:
> The certificate you get back from Verisign is signed using an
> intermediate key that needs to be included in your keystore in order to
> properly sign your key.  So far as I can tell, that key is not a part of
> anything natively included with Java's "cacerts".
>  3a) The intermediate key is available at
> http://www.verisign.com/support/install2/intermediate.html
>  3b) Copy the key from there to your clipboard
>  3c) Open the text editor of your choice and paste the contents of that
> key to a new document
>  3d) Open the certificate Verisign sent you (in response to your
> request) in the editor of your choice and copy it's contents
>  3e) Paste that into the same document as the intermediate key - after
> the intermediate key
>  3f) Save that document as an all new certificate (I called mine
> "signed.cer")
> 
> 
> 
> Step 4:
> Sign your alias with the certificate you created yourself.
> 
> keytool -import -trustcacerts -alias tomcat -file signed.cer -keypass
> secret -storepass secret -keystore keystore.key
> 
> Note that once again we use the same alias.  We need to do this so that
> the private key in that alias is "signed", as opposed to just having the
> certificates a part of the contents.  Note also that I used the file
> "signed.cer" that I created myself to sign the key, NOT the certificate
> sent by Verisign.
> 
> 
> As I say, I'm sending this in the hopes that it will help someone else
> down the road.  :)
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/error-%3A-java.lang.RuntimeException%3A-Object-not-initialized.-tp17427607p17441760.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Using key signed by Verisign in Tomcat (mini howto)

Posted by "Parker, Chris" <Ch...@cdcr.ca.gov>.
I'm sending this email because I've spent the last day and a half
putting together the bread crumbs necessary to get a signed key from
Verisign to work with Tomcat.  I never found one place that has all the
necessary information regarding how to deal with Verisign's use of
intermediate keys.  The funny thing is all this stuff is straightforward
(once known).  So here are the steps in one place - in the hopes that it
might help someone in the future.



Step 1:
Our server was not yet using SSL, so we needed to generate a new key and
keystore. 

keytool -genkey -alias tomcat -keyalg rsa -keypass secret -storepass
secret -keystore keystore.key

This generates a new keystore.  Be sure to use "-keyalg rsa" as the
default algorithm is dsa, and Verisign will not accept dsa.  Also, it's
important to remember the alias, "tomcat" in this case.  When we receive
the signed certificate we'll need to apply it to that alias.  That's how
clients will know that our private key has been "signed".  Be sure to
respond to all the prompts correctly, using the proper FQDN of the
server.  This stuff is well documented - all over the place - so no
point in duplicating it here.



Step 2:
Next we need to generate a certificate signing request.

keytool -certreq -alias tomcat -file keystore.csr -keypass secret
-storepass secret -keystore keystore.key

Be sure to use "tomcat" as the alias again so that the correct private
key is referenced.  Send the file "keystore.csr" to Verisign for
signature.  Again, this part is well documented.



Step 3 THIS IS THE TRICKY PART:
The certificate you get back from Verisign is signed using an
intermediate key that needs to be included in your keystore in order to
properly sign your key.  So far as I can tell, that key is not a part of
anything natively included with Java's "cacerts".
 3a) The intermediate key is available at
http://www.verisign.com/support/install2/intermediate.html
 3b) Copy the key from there to your clipboard
 3c) Open the text editor of your choice and paste the contents of that
key to a new document
 3d) Open the certificate Verisign sent you (in response to your
request) in the editor of your choice and copy it's contents
 3e) Paste that into the same document as the intermediate key - after
the intermediate key
 3f) Save that document as an all new certificate (I called mine
"signed.cer")



Step 4:
Sign your alias with the certificate you created yourself.

keytool -import -trustcacerts -alias tomcat -file signed.cer -keypass
secret -storepass secret -keystore keystore.key

Note that once again we use the same alias.  We need to do this so that
the private key in that alias is "signed", as opposed to just having the
certificates a part of the contents.  Note also that I used the file
"signed.cer" that I created myself to sign the key, NOT the certificate
sent by Verisign.


As I say, I'm sending this in the hopes that it will help someone else
down the road.  :)


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org