~james-page/ubuntu/natty/tomcat6/fix-662588

« back to all changes in this revision

Viewing changes to native/connector/BUILDING

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2010-01-23 19:40:38 UTC
  • mfrom: (2.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100123194038-0tnrf6kiy0wrjrw9
Tags: 6.0.20-dfsg1-1
* Fix debian/orig-tar.sh to exclude binary only standard.jar and jstl.jar.
  (Closes: #528119)
* Upload a cleaned tarball.
* Add ${misc:Depends} in debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
================================================================================
2
 
  Licensed to the Apache Software Foundation (ASF) under one or more
3
 
  contributor license agreements.  See the NOTICE file distributed with
4
 
  this work for additional information regarding copyright ownership.
5
 
  The ASF licenses this file to You under the Apache License, Version 2.0
6
 
  (the "License"); you may not use this file except in compliance with
7
 
  the License.  You may obtain a copy of the License at
8
 
 
9
 
      http://www.apache.org/licenses/LICENSE-2.0
10
 
 
11
 
  Unless required by applicable law or agreed to in writing, software
12
 
  distributed under the License is distributed on an "AS IS" BASIS,
13
 
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 
  See the License for the specific language governing permissions and
15
 
  limitations under the License.
16
 
================================================================================
17
 
 
18
 
  Building from source package:
19
 
  configure --with-apr=apr_install_location --with-ssl=openssl_install_location
20
 
  make
21
 
 
22
 
  Building from the cvs tree:
23
 
  sh buildconf --with-apr=apr_source_location.
24
 
  configure --with-apr=apr_install_location --with-ssl=openssl_install_location
25
 
  make
26
 
 
27
 
  Testing the build:
28
 
  The make should produce a .so file named libtcnative-1.so.
29
 
  Build the jar containing the examples by
30
 
  cd ..
31
 
  ant jar
32
 
  Run one of the example (the echo one):
33
 
  ant echo-example
34
 
 
35
 
  Using it in Tomcat:
36
 
  1 - In <Connector> use of conf/server.xml:
37
 
    protocol="org.apache.coyote.http11.Http11AprProtocol"
38
 
  2 - In bin/setenv.sh add the following: 
39
 
    CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=tclib_location"
40
 
    In my machine I am using:
41
 
    /home/jfclere/tomcat-connectors/jni/native/.libs for tclib_location
42
 
 
43
 
NOTES:
44
 
  - configure --disable-openssl: Configure without ssl support.
45
 
  - To use it in Tomcat you may have to add in bin/setenv.sh:
46
 
    LD_LIBRARY_PATH=openssl_install_location/lib; export LD_LIBRARY_PATH
47
 
    (use ldd ./.libs/libtcnative-1.so to check it).
48
 
  - quick testing: openssl s_client -connect localhost:8443
49
 
  - For MAC OS X you must manually add a link
50
 
    cd ${tcnative installdir}
51
 
    ln -d libtcnative-1.dylib libtcnative-1.jnilib