tomcat6

Java: using endpoint to publish webservice to tomcat server

我的梦境 提交于 2019-11-27 12:13:45
i am creating a simple SOAP web service. i am to ensure that it runs on a tomcat web service. im trying to implement this with JAX-WS (see code) my question is: does the Endpoint.publish use the tomcat server to host this or is it a mini glassfish kind of server? should i be extending UnicastRemoveObject or something similiar instead? ideally it would be able to be packaged into a .WAR and dropped in the directory and just work. It doesn't seem to work with my installed tomcat server as is because it says the port is already in use. I'm using Ubuntu karmic with the tomcat6 package installed,

Why are my JSP changes are not reflected without restarting Tomcat?

岁酱吖の 提交于 2019-11-27 12:05:18
I am editing JSP files which are residing directly inside tomcat/webapps/myapp/WEB-INF , but to see the changes, I have to restart the server. As far as I know, JSP changes don't require you to restart the server. The only configuration I found which is related to automatic reloading is reloadable = "true" Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. I used this attribute in the context.xml , but still the problem persists. What could be the other possible reason of

How to set level logging to DEBUG in Tomcat?

岁酱吖の 提交于 2019-11-27 11:17:21
I would like to set level logging to DEBUG in tomcat but in console nevertheless only INFO and WARN output. Could anybody tell me what's wrong? My C:\tomcat\logging.properties: # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional DEBUGrmation regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http:/

Oracle JDBC : invalid username/password (ora-01017)

只愿长相守 提交于 2019-11-27 09:45:49
I have a strange problem with jdbc connection to an oracle database server. We've applications on a tomcat server running. These application use an oracle database. All applications use the same credentials. Applications running fine the whole day. At night there is no activity. In the morning we get a few (2 or 3) ORA-01017 (invalid username/password) errors when the applications trying to reconnect themselves to the database. Then reconnection works and the applications will operate normal. This works for some days (around 5 days) and then one or more of the application block! All

The network adapter could not establish the connection - Oracle 11g

纵饮孤独 提交于 2019-11-27 08:59:56
I wrote a servlet program and I want it to connect to my Oracle database but its giving me an error. I am using Eclipse Helios, Tomcat 6.0.37, Oracle 11g (11.2.0.1.0), ojdbc6.jar(added in run configuration of the Server project). I am able to connect to the database through the SQL Plus interface and even can start a connection from Eclipse's database development perspective. But when i am trying to connect through my servlet I am getting the error. For my servlet i am using the port number 9090 and for the database the default 1521. java.sql.SQLException: The Network Adapter could not

Is there a way to enforce a deployment order in tomcat6?

筅森魡賤 提交于 2019-11-27 08:55:33
I have 3 wars in my webapp folder. Two of them are built on services of the third one. I'm in a testing environment, i.e. I don't have control over their architectures, so I'm no able to change a thing. So... Question : Is there a way to enforce a deployment order in tomcat? I've ran into one question here in stackoverflow, but there's no solution. Well, actually the guy suggests that changing the name of the webapps to an alphabetical order would help. However, I'm not willing to do that everytime I need to test those and different wars. I'm positive that there's a way of doing that

Exception about flash in Mojarra JSF

試著忘記壹切 提交于 2019-11-27 08:28:05
I upgraded to Mojarra JSF 2.2.1 (from 2.1.22) and since then for each of my requests I'm having an exception in console: GRAVE: JSF1094: Could not decode flash data from incoming cookie value /?. Processing will continue, but the flash is unavailable for this request. com.sun.faces.lifecycle.InvokeApplicationPhase execute Request finishes succesfully when I'm not using flash scope on it. However, as I'm using this scope for FacesMessages , if I put a message here, I have a NullPointerException and the navigation flow is interrupted: GRAVE: El Servlet.service() para servlet Faces Servlet lanzó

AbstractMethodError on deploying Spring 4.0 in Tomcat 6

匆匆过客 提交于 2019-11-27 07:45:58
I am getting below exception on deploying Spring 4.0.1 app in Tomcat 6.0.37: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#0': Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider; at

Simple primefaces application not working

情到浓时终转凉″ 提交于 2019-11-27 07:09:00
问题 I am trying to build simple JSF application using primefaces but somehow primefaces components are not getting rendered properly. I dont understand what is going wrong. I am trying to display following Facelet file : <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.prime.com.tr/ui"> <h:head> <link type="text/css" rel="stylesheet" href="/Themes

Centrally secure all tomcat webapps using BASIC authentication

五迷三道 提交于 2019-11-27 06:06:52
问题 I have a Tomcat 6 server containing three webapps: a custom one as ROOT, Jenkins and Nexus. I would like to secure all three centrally (server.xml?) using BASIC authentication. How can I achieve this without modifying or configuring the webapps themselves? 回答1: First I tried (without success) to include the BasicAuthenticator valve in conf/context.xml . This didn't seem to have any effect. Finally I got it to work (secured all webapps) by adding this snippet to conf/web.xml : <security