facebook

Aplication works with Tomcat (started in IDE) but not alone

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #256563 Reply

    Ulf Bergmann
    Participant

    Hi,
    when I run an JSP application with the Tomcat started in the IDE I have no problem, but if I start Tomcat outside the IDE I have an error.
    My application use RMI to conect to a server java application. Before the reported error many messages are sent to the server with no problems.

    I am using:
    Eclipse 3.2.0
    MyEclipse 5.0 Milestone 2
    Tomcat 5.5

    The exception that I receive is:
    _________________________________
    java.rmi.MarshalException: error marshalling arguments; nested exception is:
    java.net.SocketException: Software caused connection abort: socket write
    error
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at ime.sodc.server.SODCServer_Stub.insertDataAndReturnId(SODCServer_Stub
    .java:526)
    at principia.dao.PrincipiaDAO.insertOrUpdate(PrincipiaDAO.java:32)
    at principia.atendimento.business.UpdateAtendimentoBusiness.run(UpdateAt
    endimentoBusiness.java:20)
    at principia.command.TransactionCommandRunner.runCommand(TransactionComm
    andRunner.java:17)
    at principia.atendimento.facade.AtendimentoFacadeImpl.runBusiness(Atendi
    mentoFacadeImpl.java:154)
    at principia.atendimento.facade.AtendimentoFacadeImpl.updateAtendimento(
    AtendimentoFacadeImpl.java:306)
    at principia.atendimento.action.SalvarOcorrenciaAction.executeImpl(Salva
    rOcorrenciaAction.java:27)
    at principia.atendimento.action.PrincipiaAction.execute(PrincipiaAction.
    java:36)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:419)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:224)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
    4)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)

    ________________

    Thanks, Ulf Bergmann

    #256702

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    If everything is working inside of MyEclipse but not outside of it, I have to think that you have some sort of configuration error with your default startup of Tomcat. Double check your Tomcat connector settings under MyEclipse and make sure you are duplicating any customizations there in your Tomcat startup scripts.

    #256708

    Ulf Bergmann
    Participant

    I discover the real problem. When using Tomcat with RMI in Windows there is a bug when the Tomcat instalation dir have a space in the name (like “c:\Program File\Apache Software Foundation\Tomcat 5.5”). I instaled Tomcat in another location without space in the name and it works fine.

    Thanks for your answer.
    Ulf

    #256718

    Riyad Kalla
    Member

    Ulf, thanks for following up, glad it’s working now.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Aplication works with Tomcat (started in IDE) but not alone

You must be logged in to post in the forum log in