I'm working on a project using Freemarker and Spring running on Jetty. It will involve displaying characters from many different countries so I'm trying to set the encoding to UTF-8. However, no matter what I do, it remains ISO-8859-1. I tried to create a filter in my web.xml and I've tried putting this
response.setCharacterEncodin...
I'm developing an iPhone app that has a network component. I'm developing the app in Java (Google App Engine actually), running on port 8080. And it works, when I test my app in the iPhone simulator.
But now I am trying to test on the device, and I can't hit my Jetty instance. I can certainly access my Mac via the iPhone because I'm a...
Hello guys.
I've been struggling with Jetty 7 and its support for JSP and JSTL.
My JSP file:
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@taglib prefix="c" uri="http://java.sun....
I have upgraded a CXF web service implementation from Apache CXF 2.0.12 to 2.2.7 and now I can't connect from a remote computer.
http://localhost:9000/Data?wsdl
works on the installed computer.
http://computername:9000/Data?wsdl
from a remote computer does not work anymore (worked before upgrade).
The service is configured in cod...
It looks as though in 2003 or so NCSARequestLog would pick up the system time zone using TimeZone.getDefault().getID(), but in more recent versions it seems as though it's hard-coded to GMT, unless you override it in jetty.xml or programmatically.
If true, this kind of annoying, since it means if you don't want GMT logging you have to e...
I have a web-application written in java.
I would like to run integration tests on a embedded jetty server.
For that purpose I have a maven project (just for running integration tests).
For deploying I use cargo-maven2-plugin. But while jetty startup I receive following:
java.lang.ClassCastException: org.mortbay.jetty.webapp.WebIn...
Let's say I want to allow my developers to upload their war files to a web app (not the application server itself) running on our intranet and that web app would then run those wars as if they were separate apps deployed individually in our J2EE container.
In other words, we are not actually deploying the wars as separate apps in the c...
Looks like Jetty team wanted to do some spring cleaning between versions 6 and 7, and it looks as if one useful system property, "jetty.lib" either does not exist, does not work, or just has changed in an unspecified way so as to make my jetty 6 set up work easily with Jetty 7.
I tried searching through Jetty 7 docs, but about the only ...
Hi all,
I want to setup jetty with jetty-blazeds extension. Everything looks fine but when I run maven to get the dependencies, I get:
UNRESOLVED DEPENDENCIES
com.adobe.flex#flex-messaging-core;3.2.0: not found
com.adobe.flex#flex-messaging-common;3.2.0: not found
I've tried many repositories but no success. I am wondering has anyo...
I often work in Eclipse, but recently switched to TextMate, which is, in my opinion, the best text editor out there, barring perhaps VIM or something like that (but I find the learning curve too steep to jump into that quite yet).
The disadvantage is I don't really know how to run Maven & Jetty w/out using Eclipse. The engineers at wor...
I built a restful ajax app using Java and servlets. When making POST requests, I send json in the body, but when making GET requests, I rely solely on the URL. While testing, I made it so that the app gets the raw request body using HttpServletRequest.getReader on each request, no matter what. What I found was that extremely rarely and s...
Hi,
I have a project with 3 artifacts:
common - entities, business logic. no UI code
webapp-a - a public web app
webapp-b - an admin web app
webapp-a and webapp-b depend on common. common is configured to deploy to a local maven repo.
so far so good.
I have IntelliJ configured so that each artifact is a separate module. Module ...
Hi all,
This is a bit unorthodox but I'm trying to figure out if there's a way to access files stored in the src tree of my applications apk in Android. I'm trying to use i-Jetty (Jetty implementation for Android) and rather than use it as a separate application and manually download my war file, I'd rather just bake i-jetty in.
How...
I'm embedding Jetty in a similar manner as described here. When the RequestLogHandler can't open the specified logfile, it throws an exception which is unfortunately caught by org.eclipse.jetty.server.Server and swallowed (but logged first, at least). This means that there's no obvious way for me to tell if the log handler was started co...
I have one web app works perfectly under linux with jetty-6.1.22. However, when I tried to run it under windows, it throws an exception right at the initialization:
java.lang.IllegalArgumentException: name
at sun.misc.URLClassPath$Loader.findResource(Unknown Source)
at sun.misc.URLClassPath.findResource(Unknown Source)
...
Hi guys, I was wondering if is it possible to deploy a jar file in Jetty?
If not, are there applications servers who can do so?
I am beginner. I am asking this question because all the docs that i have found, it seems that we can only deploy war archive in application servers. Is that true?
...
I saw this test showing Jetty 7's performance drops drastically when switched from blocking IO to NIO (95% drop):
http://wiki.apache.org/HttpComponents/HttpCoreBenchmark
Is this a known issue? Have you experienced it first hand? Should I be avoiding NIO on Jetty?
...
Using Jetty 7.0.2, I am unable to set a custom session cookie path.
I am hosting multiple sites on the same server using apache to proxy requests to the proper context. (replaced http as htp as stackoverflow thinks my multiple links might be spam)
<VirtualHost *:80>
ServerName context.domain.com
ProxyRequests On
ProxyPreserveHo...
I've set up a simple Eclipse 3.5/Jetty 6.1 web app which returns hello world. It works. This is on Windows and uses the "Jetty Generic Server Adapter". I have auto deployment working so that it deploys after changes periodically.
How do I go about setting it up so that if I change any static content it doesn't have to redeploy i.e I ...
I am using Jetty web server, and while loading JSP page, its getting loaded from cache and not from the server. my updated jsp page is not getting reflected. I was deleted my file and checked out from CVS also. There is no use, the same result came again.
What will be the reason ?
Thanks in advance.
...