jetty

jetty and Oracle Connection Pooling

孤者浪人 提交于 2019-12-12 05:42:03
问题 I am currently moving my Oracle Datasource pool creation from my Spring config to a jetty config, but I am getting the error below [WARNING] Config error at My Datasource config in Spring looks like @Bean public DataSource dataSource() throws IllegalStateException, SQLException { PoolDataSource dataSource = PoolDataSourceFactory.getPoolDataSource(); dataSource.setConnectionFactoryClassName(env.getRequiredProperty(DB_CONNECTION_FACTORY_CLASS_NAME)); dataSource.setURL(env.getRequiredProperty

What Connection is this?

♀尐吖头ヾ 提交于 2019-12-12 05:17:56
问题 So I'm following tutorial of Face detection using HTML5, javascript, webrtc, websockets, Jetty and OpenCV. Not exactly like that, but more or less like that (Like, I don't use the face detection thingy). I use Eclipse to implement it. There's these parts (I simplified it) private Connection connection; public void onOpen(Connection connection) { this.connection = connection; this.connection.setMaxBinaryMessageSize(1024 * 512); } public void onMessage(byte[] data, int offset, int length) { try

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present

雨燕双飞 提交于 2019-12-12 05:14:15
问题 I Am not able to fetch data from Rest Server.Following Error is coming: "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access." Response is coming as "0", This is not hitting the Rest Method also. Rest APT: @POST @Timed @Path("updateScore") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response updateScore

Unable to load java script files in Jetty webapplication

淺唱寂寞╮ 提交于 2019-12-12 05:08:00
问题 I have a very simple webapp where I am trying to plot graphs using flot javascript library. My JSP file goes this way where I am importing the required *.js files as follows. Relative to the hello.jsp file at WEB-INF/pages/hello.jsp, scripts directory with the relevant .js files are at ../../scripts (i.e. directly under ROOT) <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf

Wicket Jetty integration with Start.java from quickstart stopped working

拟墨画扇 提交于 2019-12-12 04:58:58
问题 I just checked out my (working) wicket project to a new development machine and all of a sudden I get this error whenever I try to start jetty. java.lang.NoClassDefFoundError: net/unbewaff/Start Caused by: java.lang.ClassNotFoundException: net.unbewaff.Start at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

ShutdownHandler is giving 400 in Embedded Jetty

。_饼干妹妹 提交于 2019-12-12 04:31:54
问题 these versions of libraries are used <java.version>1.8</java.version> <javax.websockets.version>1.1</javax.websockets.version> <jetty.version>9.3.8.v20160314</jetty.version> <jersey.version>2.22.2</jersey.version> <jgit.version>4.3.0.201604071810-r</jgit.version> <json.version>20160212</json.version> <junit.version>4.12</junit.version> <slf4j.version>1.7.12</slf4j.version> <maven.shade.version>2.4.1</maven.shade.version> embedded Jetty is used like that Server server = new Server(Settings

Deploying a Maven web project on Jetty

你说的曾经没有我的故事 提交于 2019-12-12 04:21:00
问题 when I try to run my project on Jetty I get this exception: java.lang.ClassNotFoundException: Default The full stack: Launching Jetty with port 8080, context / and webapp path src/main/webapp 2011-07-19 16:49:56.832:INFO::Logging to STDERR via org.mortbay.log.StdErrLog 2011-07-19 16:49:56.841:INFO::jetty-6.1.26 2011-07-19 16:49:57.181:WARN::EXCEPTION java.lang.ClassNotFoundException: Default at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native

jetty 9 add websockets handler to handler list

不羁岁月 提交于 2019-12-12 04:08:51
问题 All handlers in that example work apart from the websockets handler WebSocketHandler wsHandler = new WebSocketHandler() { @Override public void configure(WebSocketServletFactory factory) { factory.register(WebsocketsService.class); } }; HandlerList handlers = new HandlerList(); handlers.setHandlers(new Handler[] { resource_handler, servletContextHandler, wsHandler, new DefaultHandler() }); server.setHandler(handlers); it fails with WebSocket connection to 'ws://localhost:8080/' failed: Error

jetty9,spring4.2,hibernate5,omnifaces2.2,can't work - “CDI BeanManager instance is not available in JNDI.”

橙三吉。 提交于 2019-12-12 04:04:57
问题 The application can't startup correctory,the root cause is: java.lang.IllegalStateException: CDI BeanManager instance is not available in JNDI. at org.omnifaces.config.BeanManager.<init>(BeanManager.java:106) at org.omnifaces.config.BeanManager.<clinit>(BeanManager.java:49) at org.omnifaces.application.OmniApplication.<init>(OmniApplication.java:69) at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89) at org.omnifaces.application

Kafka PubSub Connector: Jetty ALPN/NPN has not been properly configured

自闭症网瘾萝莉.ら 提交于 2019-12-12 03:58:33
问题 I am using kafka_2.11-0.10.2.1 and the pubsub connector provided by google here. All I care to do is push data from a Kafka Topic to a PubSub one using a standalone connector. I followed all steps as I should have: Produced the cps-kafka-connector.jar Added the cps-sink-connector.properties file in kafka's config directory. The file looks like this: name=CPSConnector connector.class=com.google.pubsub.kafka.sink.CloudPubSubSinkConnector tasks.max=10 topics=kafka_topic cps.topic=pubsub_topic