Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to get reference to object in embedding app from JSP or servlet

that smells like a classloader issue, the MyClass probably exists in
two places (one in the system classloader and one from the war maybe?)
and the jvm is telling you that they are not compatible


jesse mcconnell

On Thu, Sep 9, 2010 at 03:33,  <mb175@xxxxxxxxx> wrote:
> Hello
> We have an application and we need to create some simple web to work with it. We embedded Jetty and created web application with some servlets and JSPs. In our application there are some objects which represent bussines logic and I need to use them from JSP but I don't how to get reference to it.
> I tried to set necessary object as attribute in ServletContext but when I use it in JSP I get " cannot be cast to".
> Can somebody give me some advice how to do it? Or I might be on totally wrong way (I am new in development of web applications) so I would appreciate if you tell me the right way I should do my app.
> Thanks
> Martin
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx

Back to the top