Did anyone happen to have any insight into these questions below?
Ø
The only thing I can think of is that web.xml is being read in twice? Is that a possibility? If so, would reading it the second time through overwrite
what was read in the first time or would we get this error
I’ll be digging into this issue again today, I appreciate any information you guys might have!
Cheers,
Brian
From: jetty-dev-bounces@xxxxxxxxxxx [mailto:jetty-dev-bounces@xxxxxxxxxxx]
On Behalf Of Brian Cox
Sent: Friday, May 12, 2017 2:15 PM
To: Jetty @ Eclipse developer discussion list
Subject: Re: [jetty-dev] upgrade help
Great, I’ll check it out, thanks!
One more thing that I have run into. It seems similar to an old bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=459490)
where error-page page tags are being duplicated.
In my WEB-INF/web.xml I have:
<error-page>
<error-code>404</error-code>
<location>/error.do</location>
</error-page>
This is not defined anywhere else, including the webdefaults.xml. In fact I have changed the <error-code> and <location> values in web.xml to make sure that
what I am using in *only* defined in web.xml.
At runtime I get:
Caused by:
java.lang.IllegalStateException: Duplicate error-page 404 at /error.do
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitErrorPage(StandardDescriptorProcessor.java:1146)
... 41 common frames omitted
The only thing I can think of is that web.xml is being read in twice? Is that a possibility? If so, would reading it the second time through overwrite what
was read in the first time or would we get this error?
Thanks in advance for any help you can offer!
Brian
From:
jetty-dev-bounces@xxxxxxxxxxx [mailto:jetty-dev-bounces@xxxxxxxxxxx]
On Behalf Of Joakim Erdfelt
Sent: Thursday, May 11, 2017 1:52 PM
To: Jetty @ Eclipse developer discussion list
Subject: Re: [jetty-dev] upgrade help
You might find using jetty-home-<version>.tar.gz to be easier (and smaller)
On Thu, May 11, 2017 at 9:57 AM, Brian Cox <bcox@xxxxxxx> wrote:
Greg (and Joakim earlier),
This helped so much, thank you! I was headed down the wrong path with the jetty-all-…-uber.jar, but
using the jetty-distribution package was what I should have been using. We are doing embedded work and after taking the cdi*.jar files out of the project and making a couple of tweaks, it looks like things are working much better.
Thank you guys for the support!
Brian
From:
jetty-dev-bounces@xxxxxxxxxxx [mailto:jetty-dev-bounces@xxxxxxxxxxx]
On Behalf Of Greg Wilkins
Sent: Thursday, May 11, 2017 1:18 AM
To: Jetty @ Eclipse developer discussion list
Subject: Re: [jetty-dev] upgrade help
You should not have to grab updated versions of jars. If you are doing embedded work , then just use maven and it will resolve dependencies for you or if you want a stand alone
server then the jetty-home or jetty-distribution packages come with all the dependencies needed for a base server and the module system downloads compatible jars for any enabled features that needs more.
Note that 8 to 9 was a particularly big change in APIs and configuration, so there may be a bit of work updating an embedded application. If you are not using maven or a distro,
then I suggest removing all org.eclipse.jetty jars and the servlet API and replacing them with the jars from jetty-home. Then work from there.
On 10 May 2017 at 23:40, Brian Cox <bcox@xxxxxxx> wrote:
Hi All,
I recently joined a new group doing, for the first time in a long time, Java and I am working with jetty for the first time. My first task has been
upgrading the project’s use of jetty 8.1.7 to something more current. I recently grabbed 9.4.4 and seem to be running into one issue after another.
So I am going to start with a seriously newbie question. I’ve been grabbing updated versions of related jar files (servlet-api, javax.servlet.jsp,
etc) and I have run into NoClassFoundExceptions, IllegalStateExceptions, etc and then today have hit:
Problem accessing /jaguar/admin/. Reason:
Server Error
Caused by:
javax.servlet.ServletException: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6199: Generated servlet error:
package javax.servlet does not exist
PWC6199: Generated servlet error:
package javax.servlet.http does not exist
...
…
…
when loading a page.
So I’m backing up, starting over to make sure I have the right versions of everything to pair up with jetty 9.4.4.
Is there someplace that documents which jars I need to have installed to work with jsp 2.3?
Thanks for your help and your patience!
Brian
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
--
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev