01:01.51 | *** join/#tomcat roadt (n=roadt@61.191.27.34) |
01:13.15 | *** join/#tomcat kanai (n=kanai@124.32.114.226) |
01:19.20 | *** join/#tomcat Kira (n=chatzill@210.176.243.218) |
01:25.01 | Kira | Hello. I am running Tomcat 6.0.16 with JRE 6 update 7 on Windows XP Pro SP3 (and another instance with JRE 6 update 5 on Gentoo). |
01:26.22 | Kira | If I want to require client-authenticated TLS for the access to a web application, where do I set it? At the application context level, the servlet level, or the servlet container level? |
01:32.14 | *** join/#tomcat saiful (n=chatzill@202.79.193.50) |
01:35.49 | roadt | Kira i think what you are finding is <security-constraint> in web.xml (webapp deploy description). |
01:36.19 | Kira | roadt: let me check that out. :D |
01:36.20 | roadt | Kira you can refer to servlet specification SRV.12.5 |
01:42.16 | jasonb | Here's a tough Java question: How does one do a deep copy of a Java object's values to another existing instance? |
01:43.07 | jasonb | The thing that makes my question tough is: I didn't say "clone" anywhere in my question. I said "copy". For some reason, all google turns up are articles where people are saying "copy" when they mean "clone". |
01:48.33 | Kira | can't seem to locate the reference for the webapp deployment descriptor. |
01:51.49 | roadt | jasonb clone ,copy are different. agree. but what's the exactly differnce between them ? |
01:53.12 | jasonb | roadt: clone() returns a newly created instance with values copied into it, whereas the copy method I'm asking about would copy values into an existing instance that I already have. |
01:53.59 | Kira | jasonb: unless you have a requirement for the reference to your copy target to not change, it doesn't seem to make a difference. |
01:54.15 | jasonb | Kira: That's exactly the requirement I have. |
01:54.27 | jasonb | Kira: So, they're quite a bit different. |
01:54.32 | roadt | jasonb i mean interface CopyInable { void copyIn(Object obj); } vs. interface Clonable .. |
01:55.24 | roadt | jasonb in app construction or hierarchy, they seems only little difference. |
01:55.29 | jasonb | roadt: I want a utility method I can call to do it.. via reflection. |
01:55.52 | jasonb | roadt: I don't want to construct anything. |
01:56.00 | jasonb | roadt: I want to copy. |
01:56.04 | Kira | Does reflection tell you whether an object is immutable? |
01:56.13 | jasonb | Yes. |
01:56.13 | roadt | jasonb copyIn()method is bad? (just like clone() in std jdk) |
01:56.42 | jasonb | roadt: Where is copyIn()? It's not part of java.lang.Object.. |
01:57.09 | roadt | jasonb i or you define it. interface CopyInable { void copyIn(Object obj); } |
01:57.44 | roadt | jasonb i can't see how bad it is to define a interface for copy. |
01:58.05 | jasonb | roadt: It's unacceptable. |
01:58.31 | jasonb | roadt: All of the values I want to copy, they could be copied via reflection, so no modification of these classes is necessary. |
01:58.59 | jasonb | roadt: And, I didn't want to spend a bunch of time writing a reflection copy utility, especially if others have needed it. |
01:59.16 | jasonb | will look through Apache commons to see if someone wrote one in there. |
02:00.05 | roadt | jasonb yep. maybe apache-common-bean worth a try. |
02:01.27 | jasonb | Yeah.. I was just looking at that.. |
02:01.37 | jasonb | There's a BeanUtils.copyProperties() that *might* do it. |
02:03.08 | roadt | i recall you must keep the structure of instance is the same, if you use copyProperties. |
02:03.19 | Kira | hmm |
02:03.37 | Kira | Is the Servlet Specification 2.5 really just a maintenance release of 2.4? |
02:04.44 | roadt | Kira i don't know. i only focus on servelt 2.4. it's enough for me.. |
02:04.47 | jasonb | Kira: Kind of. There are always new features, and fixes. |
02:05.10 | jasonb | Kira: I do like 2.5 best, and I use only 2.5. There are new features in it that I really like. |
02:05.36 | jasonb | roadt: The structure of the source object is exactly the same as the destination object in my use case, so it might work fine. |
02:06.02 | Kira | The thing is, there seems to be no PDF file for 2.5 at the JCP website. |
02:06.04 | Kira | http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index.html |
02:06.30 | Kira | that was the "maintenance release" page |
02:06.36 | Kira | and it has a link to the "final release" |
02:06.47 | Kira | but the "final release" turns out to be 2.4... |
02:07.07 | jasonb | Kira: No, there's a 2.5 PDF.. let me get you the link. |
02:09.03 | Kira | jasonb: found it. :D |
02:12.31 | jasonb | It's not easy to find. |
02:23.53 | *** join/#tomcat kaos01 (n=kaos01@turing.une.edu.au) |
02:49.13 | Kira | oh crap |
02:49.36 | Kira | Does Tomcat 6 support the Java EE specification (in addition to Servlet 2.5, that is)? |
02:53.58 | jasonb | Kira: Tomcat supports the "web container" portions of the Java EE specification set. |
02:54.43 | jasonb | Kira: It supports Java Servlets, JSP, and has its own implementation of a JNDI naming context. |
02:54.57 | Kira | jasonb: so it doesn't support the <security-constraint> element of the deployment descriptor? |
02:55.05 | jasonb | Kira: It does. |
02:55.30 | jasonb | Kira: Anything that goes into a web.xml file, Tomcat can deal with it. |
02:56.18 | Kira | ok, so even the <login-config> element. |
02:56.24 | jasonb | Yes. |
02:57.03 | Kira | I thought some of these were not part of the "web container" portion of the specification set. |
02:58.57 | jasonb | Kira: Well, if you had some examples, I could say whether Tomcat supports them, but if it's in the Java Servlet Specification, Tomcat supports it, or it's explicitly marked optional in the spec. |
02:59.19 | jasonb | Some things that are marked optional, Tomcat doesn't support, or doesn't support 100%. But, those are things that are seldomly used. |
02:59.26 | jasonb | (and usually not that useful) |
03:00.00 | jasonb | You should assume that Tomcat 6 supports everything that you could put in web.xml. |
03:00.20 | Kira | I see. |
03:02.00 | jasonb | Well, time to head home. Have fun with it. :) |
03:02.09 | Kira | ciao. :D |
03:08.15 | Kira | I'm still trying to figure out how to force client-certificate https with the access to certain URLs or servlets using web.xml. |
03:27.07 | *** join/#tomcat blue_asterisk (n=blue_ast@70.230.201.79) |
03:39.10 | *** join/#tomcat acidjnk (i=acid@pD9509B2C.dip0.t-ipconnect.de) |
04:24.19 | *** join/#tomcat karstensrage (n=chatzill@76.21.8.74) |
04:25.02 | karstensrage | Apache Tomcat/6.0-snapshot diablo-1.5.0-b01 |
04:25.12 | karstensrage | FreeBSD 6.1-RELEASE |
04:25.58 | karstensrage | am I using a Servlet 2.4+ container? |
04:34.37 | *** join/#tomcat kanai_ (n=kanai@124.32.114.226) |
04:46.48 | *** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
04:48.05 | lyken | yes |
04:48.19 | lyken | although ive never seen that jdk before |
05:10.31 | *** join/#tomcat vikumar (n=Vimal@202.80.58.211) |
05:35.12 | *** join/#tomcat jasonb_ (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
05:48.09 | *** join/#tomcat bindaas (n=bindaas@59.96.160.210) |
05:48.27 | *** join/#tomcat shashi_ (n=shashi@125.16.213.2) |
06:13.32 | *** join/#tomcat wandana (n=chatzill@131.181.88.232) |
06:13.37 | wandana | Hello Everyone |
06:14.12 | wandana | I would like to avoid installing tomcat as a service |
06:14.32 | wandana | So I just unpack it and run startup.bat |
06:14.38 | wandana | That works fine |
06:15.02 | wandana | But of course, when I log out tomcat is stopped too |
06:15.45 | wandana | How can I run tomcat and log off my computer without installing tomcat as a service? |
06:22.17 | jasonb | wandana: There is just one way I know to do that: Run Linux. |
06:23.16 | wandana | Hey jasonb, well, unfortunately I need to run it with windows |
06:23.37 | jasonb | wandana: Then unfortunately there is no way to do what you're asking to do. |
06:23.52 | wandana | So, I need to install it as a service :( |
06:24.12 | jasonb | Microsoft says you have to. |
06:24.23 | wandana | KillBill |
06:24.26 | jasonb | But, lucky you, there are other operating systems you could run. :) |
06:25.19 | wandana | Yes, but since I have to develop an installer where tomcat is part of and which needs to run even if the user log off, ... |
06:25.23 | wandana | Damn |
06:25.48 | wandana | Actually I want to avoid installing it as a service |
06:26.01 | wandana | What to do if tomcat5 is already on the system? |
06:26.12 | wandana | I cannot install tomcat6 as a service |
06:26.16 | wandana | then |
06:26.42 | wandana | Even the apache tomcat installer does not support that |
06:27.03 | wandana | So, the client would need to get rid of tomcat5 |
06:27.10 | wandana | Really bad |
06:28.17 | jasonb | There are ways to install it yourself such that you can name it whatever you want.. and so that it won't conflict. |
06:28.34 | *** join/#tomcat Kira_ (n=chatzill@210.176.243.218) |
07:08.15 | *** join/#tomcat ufk (n=ufk@bzq-79-180-108-42.red.bezeqint.net) |
07:20.50 | *** join/#tomcat ufk (n=ufk@bzq-79-180-108-42.red.bezeqint.net) |
07:22.09 | *** join/#tomcat bindaas (n=bindaas@59.96.166.244) |
07:27.09 | *** join/#tomcat malic1 (n=malick@132.229.118.115) |
07:34.27 | *** join/#tomcat ufk_ (n=ufk@bzq-219-151-204.static.bezeqint.net) |
07:39.32 | *** join/#tomcat magentar (n=magentar@213-10.206-83.static-ip.oleane.fr) |
07:59.41 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
08:06.23 | *** join/#tomcat saiful (n=chatzill@202.79.193.50) |
08:08.09 | Kira | What keystore types does tomcat support? |
08:08.29 | *** join/#tomcat pucko_ (i=andreas@81-234-246-21-o933.tbon.telia.com) |
08:08.30 | *** join/#tomcat magentar_ (n=magentar@213-10.206-83.static-ip.oleane.fr) |
08:12.25 | *** part/#tomcat snyff (n=snyff@sd-9760.dedibox.fr) |
08:19.10 | *** join/#tomcat KermitTheFragger (n=KermitTh@118-197.bbned.dsl.internl.net) |
09:07.19 | ufk | is there memcache for jsp ? |
09:33.31 | malic1 | hello all I have this message in my catalina.out "WARNING: JSF1033: Resource injection is DISABLED." what is the purpose of resource injection why should this be enabled I've heard that if your web.xml of your web applicaion is using version 2.4 it should instead be version 2.5 to enable Resource injection |
09:34.02 | malic1 | I tried to modify my web.xml file to match version 2.5 but still I get this warning  JSF1033: Resource injection is DISABLED |
09:34.10 | malic1 | what is the purpose of resource injection |
09:46.35 | malic1 | I see there is a bug in the tomcat in this thread http://issues.apache.org/bugzilla/show_bug.cgi?id=40820 |
10:18.06 | *** join/#tomcat Internat (n=nf@123-243-184-161.static.tpgi.com.au) |
11:03.50 | *** part/#tomcat bindaas (n=bindaas@59.96.166.244) |
11:11.31 | *** join/#tomcat denisbr (n=denis@189.8.192.4) |
11:11.34 | denisbr | Hello for all |
11:15.41 | denisbr | I'm using tomcat with apache, and I have the url server:8080/application , How I do for remove the 8080 in url, for access using server/application only ? |
11:17.30 | *** part/#tomcat Kira (n=chatzill@210.176.243.218) |
11:32.42 | vanksi | is it possible to allocate more than 1024m of memory for the jvm? |
11:47.57 | *** join/#tomcat shashi (n=shashi@125.16.213.2) |
12:12.14 | *** join/#tomcat russell^^ (n=russell@62.189.191.130) |
12:29.40 | *** part/#tomcat clajo04_ (n=clajo04_@cpe-72-229-214-63.nyc.res.rr.com) |
12:38.05 | *** join/#tomcat bindaas (n=bindaas@59.94.96.96) |
13:00.05 | *** join/#tomcat dvayanu (n=dvayanu@host-62-245-224-138.customer.m-online.net) |
13:00.52 | *** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl) |
13:05.34 | *** join/#tomcat cbriancon (n=cedr@mtd203.teledetection.fr) |
13:11.54 | *** join/#tomcat Kira (n=chatzill@n219079030135.netvigator.com) |
13:12.10 | cbriancon | hi everyone, I have a problem on Tomcat 6.0.16 to get a JNDI Resource I've declared in the server.xml configuration file... |
13:12.11 | Kira | Does this channel have a bot? I forget. |
13:12.20 | Kira | ~MemoryRealm |
13:12.48 | cbriancon | I'm using Linux Ubuntu |
13:14.25 | cbriancon | I've defined in the server.xml file a Resource tag in the <DefaultContext>, and in the web.xml of my webapp, I've defined a <resource-ref> tag |
13:14.35 | cbriancon | as specified in the tomcat6 book |
13:15.40 | cbriancon | but in my webapp in Java, when I try to get the context resource, it just give me a NamingException |
13:15.54 | cbriancon | which means this resource is not known |
13:16.08 | cbriancon | has someone meet this problem ? |
13:17.50 | cbriancon | my tomcat runs on a JDK6 (if it can help) |
13:22.31 | cbriancon | I just want to connect to my database using the parameters I've specified in the JNDI resource... |
13:32.45 | *** part/#tomcat denisbr (n=denis@189.8.192.4) |
13:33.28 | *** join/#tomcat Mediii (n=Mediii@mtd203.teledetection.fr) |
13:33.57 | malic1 | hello I've searched numerous forums and did some tweaks but I have a tomcat security or JSF problem http://pastebin.com/maf7537f I don't know how I could explicitly disable the security stuff to avoid a error listenerStart and warning JSF1033: Resource injection is DISABLED. |
13:37.25 | malic1 | I have in my web application lib dir: commons-beanutils-1.7.0.jar, commons-logging-1.0.4.jar, jhighlight-1.0.jar, jsf-impl-1.2_04-p02.jar, nekohtml-0.9.5.jar, richfaces-ui-3.2.0.GA.jar, commons-collections-3.2.jar, el-api-1.0.jar, jsf-api-1.2_04-p02.jar , jstl-1.0.jar , richfaces-api-3.2.0.GA.jar,xercesImpl-2.4.0.jar, commons-digester-1.8.jar ,el-impl-1.0.jar , jsf-facelets-1.1.11a.jar, mysql-connector-java-5.1.5-bin.jar,richfaces-impl-3.2.0.GA |
13:40.54 | malic1 | I tried to work instead with: jsf-api-1.1_02.jar  jsf-facelets-1.1.11a.jar jsf-impl-1.1_02.jar but these jsf1.1 versions didn't help me somehow I need to explicitly tell tomcat to allow resource injection so I also modified my web.xml file to match: <!--<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/n |
13:41.35 | malic1 | But things still fail how can I explicitly tell Tomcat to enable resource injection |
14:00.45 | *** join/#tomcat newboy (i=c31af706@gateway/web/ajax/mibbit.com/x-f25afef9891831d9) |
14:05.19 | MHSL | malic1, i've told you the version must be 2.5 not 2.4 |
14:05.35 | MHSL | why are you still using 2.4? what's the point of me telling you this yesterday? |
14:06.27 | MHSL | cbriancon, i've never known that is <DefaultContext> is there such thing on tomcat doc? |
14:07.29 | malic1 | MHSL |
14:07.48 | malic1 | if you look at the code you see I've commented out the version 2.4 |
14:07.59 | malic1 | and activated version 2.5 |
14:08.19 | MHSL | i dont see 2.5 from the one you paste above |
14:08.23 | malic1 | with the tags <!-- --> |
14:08.28 | newboy | guys, anyone know what this means? |
14:08.32 | newboy | http://pastebin.com/d2c88001b |
14:08.36 | malic1 |  <web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> |
14:09.39 | malic1 | is this wron MHSL |
14:10.38 | MHSL | newboy, check your hibernate config file and check whether you have this class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager |
14:11.28 | newboy | ok, i'll look, MHSL, I have this app in a folder called xwikiv2 but it would normally be in a folder called wiki |
14:11.53 | newboy | would this confuse tomcat i.e. so it wouldn't know where to get the migration manager class? |
14:12.48 | MHSL | no shouldnt be, all webapp specific jar files should be under WEB-INF/lib |
14:13.06 | MHSL | and WEB-INF/classes for other classes |
14:13.30 | MHSL | malic1, that looks fine |
14:13.43 | newboy | yes, thats right |
14:16.11 | MHSL | malic1, which version of tomcat are you using? |
14:17.19 | malic1 | but its not solving the problem MHSL i chanced the web.xml file in /usr/local/metware-platform/platform/WEB-INF/ this unpacked dir I try to deploy without war symlinking its context xml file which is named platform.xml I use version 5.5 MHSL |
14:17.29 | *** join/#tomcat randrewj (n=raj-user@user-160ur05.cable.mindspring.com) |
14:17.33 | MHSL | malic1, and what's your jsf version |
14:17.41 | MHSL | nvm it's on the log |
14:18.26 | malic1 | MHSL do you mean this catalina.out message: INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for context 'metware-core' |
14:18.56 | MHSL | malic1, another thing, tomcat 5 doesnt support servlet spec 2.5, only 2.4 |
14:19.02 | MHSL | you have to use tomcat 6 |
14:19.15 | MHSL | see the comparison http://tomcat.apache.org/ |
14:20.17 | cbriancon | MHSL: the <DefaultContext> is defined in the apache tomcat 6 book, in the JNDI Resources chapter. It says : 1) Add a <Resource> tag in the <Context> element (in META-INF/context.xml) of the webapp, or in a <DefaultContext> subelement of the <Host> element (in the server.xml file)... 2) ensure that a <resource-ref> element is defined in the web.xml ... |
14:20.21 | malic1 | but the deployment was tested by other programmers and its running on older versions of tomcat thanx MHSL I'll check |
14:21.04 | MHSL | cbriancon, let me check the doc |
14:21.56 | MHSL | hm there is DefaultContext link, but the link goes to 404 |
14:22.24 | MHSL | cbriancon, another thing, what's your webapp context path? |
14:22.47 | newboy | MHSL: when it says "Could not create a DBCP pool." what does that mean, is that a type of database? |
14:22.59 | MHSL | newboy, no, dbcp is database connection pool |
14:23.16 | newboy | ok, |
14:23.18 | MHSL | newboy, it should be configuration problem |
14:23.32 | newboy | yeah, just not sure how to rectify |
14:23.33 | newboy | it |
14:23.48 | MHSL | check the hibernate config file |
14:24.00 | MHSL | hibernate.cfg.xml by default (if i'm not wrong) |
14:24.14 | cbriancon | MHSL: what do you mean by my webapp context path ? the webapp name? |
14:24.51 | MHSL | cbriancon, how are you deploying your webapp? |
14:25.07 | cbriancon | it is a maven project |
14:25.13 | cbriancon | that build a WAR |
14:25.41 | MHSL | what's the war name? |
14:25.48 | cbriancon | constellation |
14:26.36 | MHSL | cbriancon, so you put the war file to tomcat webapps folder? |
14:26.38 | cbriancon | so you think the <DefaultContext> tag is not the good one ? |
14:26.52 | cbriancon | I use the manager interface |
14:27.01 | cbriancon | to deploy it into tomcat6 |
14:27.06 | MHSL | oh ok |
14:27.12 | MHSL | cbriancon, i never use it myself |
14:28.23 | MHSL | and there is not much documentation about it on tomcat website, since the link goes to 404 |
14:28.26 | cbriancon | ok I think I've found something interesting while we were talking |
14:28.48 | cbriancon | in java I do : final DataSource ds = (DataSource) ctx.lookup("Coverages"); |
14:28.53 | cbriancon | but it fails |
14:28.59 | MHSL | what's your resource name? |
14:29.03 | MHSL | usually it's jdbc/name |
14:29.07 | cbriancon | but if I do final DataSource ds1 = (DataSource) ctx.lookup("java:/comp/env/Coverages"); |
14:29.22 | cbriancon | it does not lead to a NamingException |
14:29.25 | MHSL | and yes you need this prefix java:/comp/env |
14:29.33 | cbriancon | just Coverages the resource name |
14:29.35 | cbriancon | I've defined |
14:29.56 | cbriancon | I don't really understand why it is required, this prefix :) |
14:30.03 | MHSL | http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html |
14:30.14 | cbriancon | yeah I'm on this page ^^ |
14:30.37 | MHSL | When accessing the datasource programmatically, remember to prepend java:/comp/env to your JNDI lookup |
14:30.51 | cbriancon | ohh |
14:30.58 | cbriancon | good thing to know |
14:31.10 | MHSL | ^ from that page |
14:31.37 | cbriancon | thanks for your answer, I will keep trying in this way |
14:32.09 | newboy | MHSL: the problem was that I forgot to put the database .jar in the lib folder |
14:32.12 | newboy | thanks |
14:32.49 | *** part/#tomcat newboy (i=c31af706@gateway/web/ajax/mibbit.com/x-f25afef9891831d9) |
14:43.28 | malic1 | MHSL I have a question I have a situation where previous developers have created 3 interdependent projects 1 bigmet which connects to a mysql db with help of a database.ini file 2 metbeans and 3 metweb I don't get all the feedback I need from the previous developers but I guess that the database.ini allows communication with the middle tier and metweb needs to communicate with metbeans and bigmet afaik I can ant build the bigmet and metbeans but I must be |
14:44.11 | malic1 | this metweb needs to communicate with bigmet and metbeans what is generally done to achieve this by programmers |
14:52.54 | malic1 | (04:18:57 PM) MHSL: malic1, another thing, tomcat 5 doesnt support servlet spec 2.5, only 2.4 |
14:53.29 | malic1 | MHSL my catalina.out sayd: INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for context 'metware-core' |
14:53.42 | malic1 | this means I'm using version 2.4 or not ? |
15:00.17 | malic1 | I'm totally confusing things |
15:00.23 | malic1 | specs servlets |
15:00.33 | malic1 | ignore me |
15:02.52 | MHSL | that doesnt say anything, that's the jsf version |
15:03.20 | MHSL | malic1, to be able to use resource injection you need to use servlet spec 2.5, as mentioned on the website i gave you yesterday (if you even read it) |
15:03.37 | Kira | How do I force certain parts of my web application to accept POST requests only? It's not done by editing the web.xml, is it? |
15:05.11 | malic1 | MHSL I had to reboot my sys constantly I logged the talk with you partially (04:47:48 PM) MHSL: malic1, with the resource injection problem, can you check the webapp web.xml whether it's using version 2.5 |
15:05.21 | malic1 | but lost the website do you still have it for me |
15:05.59 | malic1 | do you mean this one: http://forums.java.net/jive/thread.jspa?threadID=17933&tstart=0 |
15:08.46 | MHSL | malic1, just open and see for yourself |
15:09.17 | MHSL | Kira, never see that kind of configuration before |
15:13.05 | *** join/#tomcat akohli (n=akohli@78.16.78.91) |
15:14.51 | akohli | hi! is it possible to setup incoming filters across all deployed apps and not configured per app? kind of like a container filter or service filter? |
15:15.04 | cbriancon | MHSL: if it interests you, I've succeeded :) You was right saying the <DefaultContext> tag is not good, in fact the definition of the JNDI resource has to be done in context.xml file, not in the server.xml one ^^ |
15:16.12 | cbriancon | now I've my connection to the database, thanks a lot |
15:21.28 | MHSL | cbriancon, that's good, although for your information (according to jasonb) it's completely fine to put your jndi resource in server.xml if it's fine for you to restart your tomcat everytime you need to do some changes to your database resource |
15:22.13 | Kira | switching computer |
15:22.14 | Kira | brb |
15:22.16 | *** part/#tomcat malic1 (n=malick@132.229.118.115) |
15:22.19 | *** part/#tomcat Kira (n=chatzill@n219079030135.netvigator.com) |
15:23.11 | MHSL | cbriancon, although personally I also prefer to put any webapp specific config in context.xml rather than server.xml, which is supposed to define global configs |
15:23.24 | cbriancon | oh really? I am interest to know where to put the Resource tag in the server.xml file, since under the <GlobalNamingResources> it has not work |
15:24.43 | cbriancon | but putting this resource in the tomcat/conf/context.xml file will allow all webservice to use it too, is it right ? |
15:25.06 | MHSL | cbriancon, |
15:25.06 | MHSL | <PROTECTED> |
15:25.07 | MHSL | <PROTECTED> |
15:25.18 | MHSL | cbriancon, http://tomcat.apache.org/tomcat-6.0-doc/config/globalresources.html |
15:25.40 | MHSL | i believe you need ResourceLink in your context to use the global resource |
15:25.50 | MHSL | i didnt see this before, i think they just updated the doc |
15:26.05 | MHSL | or i missed it |
15:26.19 | cbriancon | it is weird, since it works for me without defining this ResourceLink tag |
15:26.27 | *** join/#tomcat Kira (n=chatzill@n219079030135.netvigator.com) |
15:26.51 | cbriancon | I've just put a <resource-ref> in the web.xml file of my webapp |
15:26.59 | MHSL | cbriancon, that's if you're using GlobalNamingResources |
15:27.11 | MHSL | not declaring Resource in your context |
15:27.48 | cbriancon | ahah ok, I see I've mixed several things |
15:27.57 | MHSL | check the page above |
15:28.08 | MHSL | it's clearer now |
15:35.54 | Kira | On a related note to my earlier question about forcing the http request method: forcing the use of HTTPS, on the other hand, can be done by using <security-constraint> in web.xml, right? |
15:42.19 | *** join/#tomcat blue_asterisk (n=blue_ast@adsl-69-224-126-31.dsl.sndg02.pacbell.net) |
15:51.14 | MHSL | Kira, yes you can |
15:52.18 | MHSL | Kira, i think you can use this <transport-guarantee>CONFIDENTIAL</transport-guarantee> |
15:52.27 | MHSL | i never tried it, so you can try it out |
16:04.41 | jasonb | Yes, that's the way, and it works. |
16:05.25 | jasonb | heads to work |
16:05.55 | Kira | alright |
16:05.57 | Kira | thanks guys |
16:06.10 | Kira | I'll catch some sleep now |
16:06.25 | *** part/#tomcat Kira (n=chatzill@n219079030135.netvigator.com) |
16:33.22 | *** join/#tomcat pfn (n=pfnguyen@hanhuy.com) |
16:40.48 | *** join/#tomcat jasonb (n=jasonb@75.144.23.117) |
16:56.26 | *** join/#tomcat Charles (n=kuqq2005@59.41.106.87) |
16:58.43 | jasonb | Tomcat 6.0.18 has been officially voted stable today, and the release will be announced shortly. |
17:01.25 | Charles | Hello, can someone tell me how can I configurate jsp for iis? |
17:02.55 | *** join/#tomcat karstensrage (n=chatzill@75-55-199-5.mobitv.com) |
17:03.41 | Charles | I have tried to find answer in google, however, I can not find the current answer? |
17:06.42 | Charles | Anybody here? |
17:10.34 | karstensrage | whats up? |
17:11.44 | Charles | Could you please tell me how can I setup tomcat for iis? |
17:13.56 | karstensrage | iis? |
17:14.00 | karstensrage | iis is a webserver? |
17:14.02 | karstensrage | iirc |
17:15.21 | Charles | yeah, the default webserver in windows |
17:16.23 | Charles | by the way, where are you from |
17:16.42 | karstensrage | earth how about you? |
17:17.07 | Charles | me too |
17:18.03 | Charles | tomcat for iis, do you know how to configurate? |
17:24.06 | *** join/#tomcat akohli (n=akohli@78.16.138.117) |
17:24.29 | karstensrage | what about jfgi? |
17:24.55 | karstensrage | oh |
17:25.05 | karstensrage | when I jfgi the second link seems promising |
17:25.19 | karstensrage | http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html |
17:25.34 | karstensrage | maybe your google-fu is lacking |
17:47.04 | jasonb | likes the jfgi acronym :) |
17:47.18 | karstensrage | too |
17:55.28 | *** join/#tomcat magentar (n=magentar@213-10.206-83.static-ip.oleane.fr) |
18:21.41 | *** join/#tomcat Guschtel (n=guschtel@unaffiliated/Guschtel) |
18:25.10 | Guschtel | hi, i'm using tomcat-6.0.10 with Java 1.6.0_00 on SunOS. I'm trying to deploy a liferay app to tomcat and i've set common.loader ind catalina.properties to include ${catalina.home}/lib/ext/*.jar but in the logs tomcat complains on startup that it doesn't find classes which are in this jars. Is there any way i can debug this further why tomcat doesn't load them? |
18:32.02 | *** join/#tomcat bindaas (n=bindaas@59.94.100.67) |
18:33.04 | Guschtel | it seems to work fine when i copy all jars from lib/ext to lib/ |
18:33.05 | *** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr) |
18:33.11 | Guschtel | but i don't really like this... |
19:04.37 | *** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-65-116.dynamic.mnet-online.de) |
19:27.48 | *** join/#tomcat rhonabwy (n=rhonabwy@dslb-088-065-131-140.pools.arcor-ip.net) |
19:32.58 | Guschtel | anyone knows if common.loader still works in tomcat 6? |
19:37.54 | jasonb | It does if you configure it properly in catalina.properties. |
19:38.43 | Guschtel | hm |
19:39.07 | Guschtel | common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/ext/*.jar <- i can't see anything wrong? |
19:41.32 | jasonb | It should actually be ${catalina.base} instead of ${catalina.home}. |
19:41.42 | jasonb | It may not make a difference in your case. |
19:42.23 | jasonb | But, also, if you're trying to separate out a common loader from the regular loader, then you don't want to add the same dirs to the path of the common loader, you want to add different paths. |
19:42.43 | Guschtel | i just added the last part, thats why i took catalina.home |
19:44.16 | jasonb | You should really make it more like ${catalina.base}/common/lib,${catalina.base}/common/lib/*.jar,${catalina.base}/common/classes |
19:44.39 | jasonb | The whole ext/*.jar thing should just be removed.. and you should put all jars in common/lib/. |
19:44.42 | Guschtel | ok i'll try that |
19:45.17 | jasonb | Don't forget to mkdir -p common/lib and mkdir -p common/classes |
19:46.00 | jasonb | You might also remind the liferay guys that Tomcat 6 is the latest stable version of Tomcat. :) |
19:46.27 | jasonb | heads to lunch |
19:46.39 | Guschtel | I'm using tomcat 6, the thing is that i'm not using one of the liferays bundles |
19:46.47 | Guschtel | bc i have other apps running on that tomcat |
19:48.00 | Guschtel | wohoo, with base its works |
19:48.05 | Guschtel | jasonb, you just made my day |
19:48.15 | jasonb | Guschtel: I'm glad it works. |
19:48.19 | Guschtel | thanks :) |
19:48.56 | jasonb | You're welcome. |
20:32.54 | *** part/#tomcat bindaas (n=bindaas@59.94.100.67) |
20:44.14 | *** join/#tomcat akohli (n=akohli@213-202-176-70.bas504.dsl.esat.net) |
20:49.53 | *** join/#tomcat Bob___ (n=Bob@66-17-52-1.biz.snlo.arrival.net) |
21:14.26 | *** join/#tomcat malick_mobile_ (n=mobile@ip230-68-210-87.adsl2.static.versatel.nl) |
21:18.29 | *** join/#tomcat malick_mobile__ (n=mobile@ip230-68-210-87.adsl2.static.versatel.nl) |
21:27.38 | *** join/#tomcat vikumar (n=Vimal@59.160.127.178) |
21:28.13 | *** join/#tomcat malick_mobile__ (n=mobile@ip230-68-210-87.adsl2.static.versatel.nl) |
21:39.13 | *** part/#tomcat Guschtel (n=guschtel@unaffiliated/Guschtel) |
22:13.35 | *** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr) [NETSPLIT VICTIM] |
22:13.35 | *** join/#tomcat diLLec (n=dillec@dillec.biz) [NETSPLIT VICTIM] |
22:13.35 | *** join/#tomcat ohsix (i=ohsix@66.220.111.222) [NETSPLIT VICTIM] |
23:36.45 | *** join/#tomcat MHSL (i=Linux@cm3.eta6.maxonline.com.sg) |