Results 1 to 2 of 2

Thread: Multiple web app problem

  1. #1
    Join Date
    Aug 2004
    Posts
    25

    Default Multiple web app problem

    Hi all,

    I ve a strange problem ... :

    I develop 2 web apps "A" and "B" (so I have 2 .war files) .
    When A is deployed alone it works well and this is the same for B.
    But when A is deployed and I decided to deployed B and test it in the same time, I ve an error :
    Code:
    java.lang.ClassCastException
    	controller.QuoteController.onSubmit(QuoteController.java:28)
    	org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:202)
    	org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:236)
    	org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:121)
    	org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
    	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:485)
    	org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:342)
    	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:328)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    This error occurs when I m testing B but it refers to a class which is in A! :shock: :shock:

    To not have this error, I have to undeploy the web app A and when I do it, the web app B works well then ....

    Have someone already had this problem?
    We are a football tribe!

  2. #2
    Join Date
    Aug 2004
    Posts
    25

    Default well

    Hi,

    I ve deleted the class in Web App A which have the quite same name that a class in my web app B (QuoteController), this class was not useful in A so this wasn't a problem.
    I think that there was a missconfusion (from me and my configuration files, from spring or from my app server) about the controller which as the same name in A and B ...

    Anyway, all works well now but I hope I will not have this error again :?
    We are a football tribe!

Similar Threads

  1. Multiple Authentication problem
    By dhainlin in forum Security
    Replies: 5
    Last Post: May 27th, 2006, 10:21 AM
  2. Replies: 1
    Last Post: Jul 5th, 2005, 03:48 AM
  3. Multiple Pages
    By afida in forum Swing
    Replies: 12
    Last Post: Feb 16th, 2005, 08:42 AM
  4. multiple class binding problem
    By radone in forum Web
    Replies: 0
    Last Post: Feb 3rd, 2005, 06:09 AM
  5. Lazy Load Problem when Doing UnitTest
    By yoshi in forum Data
    Replies: 7
    Last Post: Sep 29th, 2004, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •