From owner-freebsd-java@FreeBSD.ORG Sun Dec 4 11:34:45 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3D2216A41F for ; Sun, 4 Dec 2005 11:34:45 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEC2E43D46 for ; Sun, 4 Dec 2005 11:34:44 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp4-g19.free.fr (Postfix) with SMTP id 8B4804AB9C for ; Sun, 4 Dec 2005 12:34:43 +0100 (CET) Message-ID: <001801c5f8c6$b89b3680$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: Date: Sun, 4 Dec 2005 12:34:42 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: java sqlite on FreeBSD 6.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 11:34:45 -0000 Hello, I want to use Java/Tomcat with Sqlite. But I cannot compile the driver under FreeBSD 6.0. Can you give some small help ? Or some web link to compile it under FreeBSD ? Many Thanks in advance Fr=E9d=E9ric install jdk1.4.10: working good (from ports jdk14 after refresh with = cvsup) install tomcat 5.5.12: working good installed sqlite-3.2.7 from www.sqlite.org: (re-compile src): working = good javasqlite-20050608 from = http://www.ch-werner.de/javasqlite/overview-summary.html This is the website for the sqlite driver in Java It use in OpenOffice ... ./configure checking build system type... i386-unknown-freebsd6.0 checking host system type... i386-unknown-freebsd6.0 checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking command to parse /usr/bin/nm -B output... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... = yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... freebsd6.0 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... yes creating libtool checking for a BSD-compatible install... /usr/bin/install -c checking for SQLite header and library... no configure: WARNING: SQLite2 header files and/or library not found checking for sqlite_function_type in -lsqlite... no checking for sqlite_open_aux_file in -lsqlite... no checking for sqlite_set_authorizer in -lsqlite... no checking for sqlite_trace in -lsqlite... no checking for sqlite_compile in -lsqlite... no checking for sqlite_progress_handler in -lsqlite... no checking for SQLite3 header and library... yes checking for usable SQLite... yes configure: WARNING: setting generic JNI include file directives! setting JNI include file directives: -I/usr/local/include = -I/usr/local/include/freebsd6.0 using JDBC driver from JDBC2x directory configure: creating ./config.status config.status: creating Makefile make /usr/local/bin/javac SQLite/Authorizer.java /usr/local/bin/javac SQLite/BusyHandler.java /usr/local/bin/javac SQLite/Callback.java /usr/local/bin/javac SQLite/Database.java /usr/local/bin/javac SQLite/Shell.java ./libtool gcc -I/usr/local/include -DHAVE_SQLITE2=3D0 = -DHAVE_SQLITE3=3D1 -o native/mkconst native/mkconst.c = /usr/local/lib/libsqlite3.la mkdir native/.libs gcc -I/usr/local/include -DHAVE_SQLITE2=3D0 -DHAVE_SQLITE3=3D1 -o = native/mkconst native/mkconst.c /usr/local/lib/libsqlite3.so = -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib native/mkconst > SQLite/Constants.java /usr/local/bin/javac SQLite/Constants.java /usr/local/bin/javac SQLite/StringEncoder.java /usr/local/bin/javac SQLite/JDBCDriver.java /usr/local/bin/javac SQLite/JDBC2x/JDBCConnection.java /usr/local/bin/jar cmf manifest sqlite.jar SQLite/Authorizer.class = SQLite/BusyHandler.class SQLite/Callback.class SQLite/Database.class = SQLite/Exception.class SQLite/Shell.class SQLite/TableResult.class = SQLite/Function.class SQLite/FunctionContext.class = SQLite/Constants.class SQLite/Trace.class SQLite/Vm.class = SQLite/ProgressHandler.class SQLite/StringEncoder.class = SQLite/DBDump.class SQLite/JDBCDriver.class = SQLite/JDBC2x/JDBCConnection.class SQLite/JDBC2x/JDBCStatement.class = SQLite/JDBC2x/JDBCResultSet.class = SQLite/JDBC2x/JDBCResultSetMetaData.class = SQLite/JDBC2x/JDBCDatabaseMetaData.class = SQLite/JDBC2x/JDBCPreparedStatement.class = SQLite/JDBC2x/TableResultX.class SQLite/JDBC2x/DatabaseX.class /usr/local/bin/javah -jni -o native/sqlite_jni.h SQLite.Database = SQLite.Vm SQLite.FunctionContext .... .... native/sqlite_jni.h:111: error: syntax error before "jstring" native/sqlite_jni.h:112: error: syntax error before '*' token native/sqlite_jni.h:112: warning: type defaults to `int' in declaration = of `Java_SQLite_Database_version' native/sqlite_jni.h:112: warning: data definition has no type or storage = class native/sqlite_jni.h:119: error: syntax error before "jstring" native/sqlite_jni.h:120: error: syntax error before '*' token native/sqlite_jni.h:120: warning: type defaults to `int' in declaration = of `Java_SQLite_Database_dbversion' native/sqlite_jni.h:120: warning: data definition has no type or storage = class native/sqlite_jni.h:127: error: syntax error before "void" native/sqlite_jni.h:135: error: syntax error before "void" native/sqlite_jni.h:143: error: syntax error before "void" native/sqlite_jni.h:152: error: syntax error before '*' token native/sqlite_jni.h:152: warning: type defaults to `int' in declaration = of `Java_SQLite_Database_error_1string' native/sqlite_jni.h:152: warning: data definition has no type or storage = class native/sqlite_jni.h:159: error: syntax error before "void" native/sqlite_jni.h:167: error: syntax error before "void" native/sqlite_jni.h:175: error: syntax error before "void" native/sqlite_jni.h:184: error: syntax error before '*' token native/sqlite_jni.h:184: warning: type defaults to `int' in declaration = of `Java_SQLite_Database_is3' native/sqlite_jni.h:184: warning: data definition has no type or storage = class native/sqlite_jni.h:191: error: syntax error before "void" native/sqlite_jni.h:199: error: syntax error before "void" native/sqlite_jni.h:207: error: syntax error before "void" native/sqlite_jni.h:215: error: syntax error before "void" native/sqlite_jni.h:235: error: syntax error before '*' token native/sqlite_jni.h:235: warning: type defaults to `int' in declaration = of `Java_SQLite_Vm_step' native/sqlite_jni.h:235: warning: data definition has no type or storage = class native/sqlite_jni.h:242: error: syntax error before "jboolean" native/sqlite_jni.h:243: error: syntax error before '*' token native/sqlite_jni.h:243: warning: type defaults to `int' in declaration = of `Java_SQLite_Vm_compile' native/sqlite_jni.h:243: warning: data definition has no type or storage = class native/sqlite_jni.h:250: error: syntax error before "void" native/sqlite_jni.h:258: error: syntax error before "void" native/sqlite_jni.h:266: error: syntax error before "void" native/sqlite_jni.h:285: error: syntax error before "void" native/sqlite_jni.h:293: error: syntax error before "void" native/sqlite_jni.h:301: error: syntax error before "void" native/sqlite_jni.h:309: error: syntax error before "void" .... native/sqlite_jni.c: At top level: native/sqlite_jni.c:702: error: syntax error before "void" native/sqlite_jni.c:110: warning: 'seterr' defined but not used native/sqlite_jni.c:120: warning: 'setvmerr' defined but not used native/sqlite_jni.c:165: warning: 'globrefset' defined but not used native/sqlite_jni.c:214: warning: 'transfree' defined but not used native/sqlite_jni.c:222: warning: 'trans2iso' defined but not used native/sqlite_jni.c:331: warning: 'busyhandler3' defined but not used native/sqlite_jni.c:353: warning: 'progresshandler' defined but not used native/sqlite_jni.c:372: warning: 'callback' defined but not used native/sqlite_jni.c:625: warning: 'doclose' defined but not used *** Error code 1 Stop in /usr/local/sqlite/javasqlite-20050608. From owner-freebsd-java@FreeBSD.ORG Sun Dec 4 12:08:59 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4147016A41F for ; Sun, 4 Dec 2005 12:08:59 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AD6043D78 for ; Sun, 4 Dec 2005 12:08:45 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id jB4C8fZm066244; Sun, 4 Dec 2005 14:08:41 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.13.3/8.12.11) with ESMTP id jB4C8xXq034444; Sun, 4 Dec 2005 14:09:00 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <4392DC45.50402@ebs.gr> Date: Sun, 04 Dec 2005 14:08:37 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= References: <001801c5f8c6$b89b3680$0400a8c0@iava> In-Reply-To: <001801c5f8c6$b89b3680$0400a8c0@iava> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-java@freebsd.org Subject: Re: java sqlite on FreeBSD 6.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 12:08:59 -0000 Frédéric de la Goublaye wrote: [...] > install jdk1.4.10: working good (from ports jdk14 after refresh with cvsup) > install tomcat 5.5.12: working good > > installed sqlite-3.2.7 from www.sqlite.org: (re-compile src): working good Note that you can find a port for this in databases/sqlite3. [...] > configure: WARNING: setting generic JNI include file directives! > setting JNI include file directives: -I/usr/local/include -I/usr/local/include/freebsd6.0 This must be your problem. The configure script does not find the jdk header files. For jdk14 you should have -I/usr/local/jdk1.4.2/include -I/usr/local/jdk1.4.2/include/freebsd. > using JDBC driver from JDBC2x directory > configure: creating ./config.status > config.status: creating Makefile > > make > > /usr/local/bin/javac SQLite/Authorizer.java > /usr/local/bin/javac SQLite/BusyHandler.java > /usr/local/bin/javac SQLite/Callback.java > /usr/local/bin/javac SQLite/Database.java > /usr/local/bin/javac SQLite/Shell.java > ./libtool gcc -I/usr/local/include -DHAVE_SQLITE2=0 -DHAVE_SQLITE3=1 -o native/mkconst native/mkconst.c /usr/local/lib/libsqlite3.la > mkdir native/.libs > gcc -I/usr/local/include -DHAVE_SQLITE2=0 -DHAVE_SQLITE3=1 -o native/mkconst native/mkconst.c /usr/local/lib/libsqlite3.so -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib > native/mkconst > SQLite/Constants.java > /usr/local/bin/javac SQLite/Constants.java > /usr/local/bin/javac SQLite/StringEncoder.java > /usr/local/bin/javac SQLite/JDBCDriver.java > /usr/local/bin/javac SQLite/JDBC2x/JDBCConnection.java > /usr/local/bin/jar cmf manifest sqlite.jar SQLite/Authorizer.class SQLite/BusyHandler.class SQLite/Callback.class SQLite/Database.class SQLite/Exception.class SQLite/Shell.class SQLite/TableResult.class SQLite/Function.class SQLite/FunctionContext.class SQLite/Constants.class SQLite/Trace.class SQLite/Vm.class SQLite/ProgressHandler.class SQLite/StringEncoder.class SQLite/DBDump.class SQLite/JDBCDriver.class SQLite/JDBC2x/JDBCConnection.class SQLite/JDBC2x/JDBCStatement.class SQLite/JDBC2x/JDBCResultSet.class SQLite/JDBC2x/JDBCResultSetMetaData.class SQLite/JDBC2x/JDBCDatabaseMetaData.class SQLite/JDBC2x/JDBCPreparedStatement.class SQLite/JDBC2x/TableResultX.class SQLite/JDBC2x/DatabaseX.class > /usr/local/bin/javah -jni -o native/sqlite_jni.h SQLite.Database SQLite.Vm SQLite.FunctionContext > .... > .... > > native/sqlite_jni.h:111: error: syntax error before "jstring" > native/sqlite_jni.h:112: error: syntax error before '*' token > native/sqlite_jni.h:112: warning: type defaults to `int' in declaration of `Java_SQLite_Database_version' > native/sqlite_jni.h:112: warning: data definition has no type or storage class > native/sqlite_jni.h:119: error: syntax error before "jstring" > native/sqlite_jni.h:120: error: syntax error before '*' token > native/sqlite_jni.h:120: warning: type defaults to `int' in declaration of `Java_SQLite_Database_dbversion' > native/sqlite_jni.h:120: warning: data definition has no type or storage class > native/sqlite_jni.h:127: error: syntax error before "void" > native/sqlite_jni.h:135: error: syntax error before "void" > native/sqlite_jni.h:143: error: syntax error before "void" > native/sqlite_jni.h:152: error: syntax error before '*' token > native/sqlite_jni.h:152: warning: type defaults to `int' in declaration of `Java_SQLite_Database_error_1string' > native/sqlite_jni.h:152: warning: data definition has no type or storage class > native/sqlite_jni.h:159: error: syntax error before "void" > native/sqlite_jni.h:167: error: syntax error before "void" > native/sqlite_jni.h:175: error: syntax error before "void" > native/sqlite_jni.h:184: error: syntax error before '*' token > native/sqlite_jni.h:184: warning: type defaults to `int' in declaration of `Java_SQLite_Database_is3' > native/sqlite_jni.h:184: warning: data definition has no type or storage class > native/sqlite_jni.h:191: error: syntax error before "void" > native/sqlite_jni.h:199: error: syntax error before "void" > native/sqlite_jni.h:207: error: syntax error before "void" > native/sqlite_jni.h:215: error: syntax error before "void" > native/sqlite_jni.h:235: error: syntax error before '*' token > native/sqlite_jni.h:235: warning: type defaults to `int' in declaration of `Java_SQLite_Vm_step' > native/sqlite_jni.h:235: warning: data definition has no type or storage class > native/sqlite_jni.h:242: error: syntax error before "jboolean" > native/sqlite_jni.h:243: error: syntax error before '*' token > native/sqlite_jni.h:243: warning: type defaults to `int' in declaration of `Java_SQLite_Vm_compile' > native/sqlite_jni.h:243: warning: data definition has no type or storage class > native/sqlite_jni.h:250: error: syntax error before "void" > native/sqlite_jni.h:258: error: syntax error before "void" > native/sqlite_jni.h:266: error: syntax error before "void" > native/sqlite_jni.h:285: error: syntax error before "void" > native/sqlite_jni.h:293: error: syntax error before "void" > native/sqlite_jni.h:301: error: syntax error before "void" > native/sqlite_jni.h:309: error: syntax error before "void" > .... > native/sqlite_jni.c: At top level: > native/sqlite_jni.c:702: error: syntax error before "void" > native/sqlite_jni.c:110: warning: 'seterr' defined but not used > native/sqlite_jni.c:120: warning: 'setvmerr' defined but not used > native/sqlite_jni.c:165: warning: 'globrefset' defined but not used > native/sqlite_jni.c:214: warning: 'transfree' defined but not used > native/sqlite_jni.c:222: warning: 'trans2iso' defined but not used > native/sqlite_jni.c:331: warning: 'busyhandler3' defined but not used > native/sqlite_jni.c:353: warning: 'progresshandler' defined but not used > native/sqlite_jni.c:372: warning: 'callback' defined but not used > native/sqlite_jni.c:625: warning: 'doclose' defined but not used > *** Error code 1 > > Stop in /usr/local/sqlite/javasqlite-20050608. From owner-freebsd-java@FreeBSD.ORG Sun Dec 4 13:36:25 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 561C816A41F for ; Sun, 4 Dec 2005 13:36:25 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4E0D43D79 for ; Sun, 4 Dec 2005 13:36:22 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp5-g19.free.fr (Postfix) with SMTP id 99F3516FCD for ; Sun, 4 Dec 2005 14:36:21 +0100 (CET) Message-ID: <002901c5f8d7$b6b305d0$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: Date: Sun, 4 Dec 2005 14:36:20 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: java sqlite on FreeBSD 6.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 13:36:25 -0000 Thanks for your quick support. I am making some progress ... I copy jawt_md.h and jni_md.h from the sub directory = /usr/local/jdk1.4.2/include/freebsd/ to the directory /usr/local/jdk1.4.2/include/ I do not really know what I am doing but ... it is working. make ./libtool gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0 -I/usr/local/include = -I/usr/local/include -DHAVE_SQLITE2=3D1 -DHAVE_SQLITE3=3D1 = -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1 -DHAVE_SQLITE_TRACE=3D1 = -DHAVE_SQLITE_COMPILE=3D1 -DHAVE_SQLITE_PROGRESS_HANDLER=3D1 = native/sqlite_jni.c rm -f .libs/sqlite_jni.lo gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0 -I/usr/local/include = -I/usr/local/include -DHAVE_SQLITE2=3D1 -DHAVE_SQLITE3=3D1 = -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1 -DHAVE_SQLITE_TRACE=3D1 = -DHAVE_SQLITE_COMPILE=3D1 -DHAVE_SQLITE_PROGRESS_HANDLER=3D1 = native/sqlite_jni.c -fPIC -DPIC -o .libs/sqlite_jni.lo gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0 -I/usr/local/include = -I/usr/local/include -DHAVE_SQLITE2=3D1 -DHAVE_SQLITE3=3D1 = -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1 -DHAVE_SQLITE_TRACE=3D1 = -DHAVE_SQLITE_COMPILE=3D1 -DHAVE_SQLITE_PROGRESS_HANDLER=3D1 = native/sqlite_jni.c -o sqlite_jni.o >/dev/null 2>&1 mv -f .libs/sqlite_jni.lo sqlite_jni.lo ./libtool gcc -o libsqlite_jni.la sqlite_jni.lo -rpath /usr/local/lib = /usr/local/lib/libsqlite.a /usr/local/lib/libsqlite3.la *** Warning: Linking the shared library libsqlite_jni.la against the *** static library /usr/local/lib/libsqlite.a is not portable! rm -fr .libs/libsqlite_jni.la .libs/libsqlite_jni.* = .libs/libsqlite_jni.* gcc -shared sqlite_jni.lo -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath = -Wl,/usr/local/lib /usr/local/lib/libsqlite.a = /usr/local/lib/libsqlite3.so -lc -Wl,-soname -Wl,libsqlite_jni.so.0 -o = .libs/libsqlite_jni.so.0 (cd .libs && rm -f libsqlite_jni.so && ln -s libsqlite_jni.so.0 = libsqlite_jni.so) (cd .libs && rm -f libsqlite_jni.so && ln -s libsqlite_jni.so.0 = libsqlite_jni.so) ar cru .libs/libsqlite_jni.a /usr/local/lib/libsqlite.a sqlite_jni.o = /usr/local/lib/libsqlite.a ranlib .libs/libsqlite_jni.a creating libsqlite_jni.la (cd .libs && rm -f libsqlite_jni.la && ln -s ../libsqlite_jni.la = libsqlite_jni.la) #make test /usr/local/jdk1.4.2/bin/javac test.java # java test Unable to load sqlite: java.lang.UnsatisfiedLinkError: no sqlite_jni in = java.library.path Exception in thread "main" java.lang.UnsatisfiedLinkError: version at SQLite.Database.version(Native Method) at test.main(test.java:72) # java -jar sqlite.jar test Unable to load sqlite: java.lang.UnsatisfiedLinkError: no sqlite_jni in = java.library.path Exception in thread "main" java.lang.UnsatisfiedLinkError: open at SQLite.Database.open(Native Method) at SQLite.Shell.main(Shell.java:494) Have you any idear ?=20 Thanks Fr=E9d=E9ric ----- Original Message -----=20 From: "Fr=E9d=E9ric de la Goublaye" To: "Panagiotis Astithas" Sent: Sunday, December 04, 2005 2:05 PM Subject: Re: java sqlite on FreeBSD 6.0 > Ouah ! Thanks for your quick support >=20 > I reinstall sqlite3 with the ports >=20 > I tried this command: >=20 > ./configure --with-jdk=3D/usr/local/jdk1.4.2 >=20 > Now I have the message: >=20 > configure: WARNING: setting generic JNI include file directives! > setting JNI include file=20 > directives: -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0 >=20 > but the make gives this error: >=20 > make > ./libtool=20 > gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0=20 > -I/usr/local/include -I/usr/local/include -DHAVE_SQLITE2=3D1 = -DHAVE_SQLITE3=3D1=20 > -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1=20 > -DHAVE_SQLITE_TRACE=3D1 -DHAVE_SQLITE_COMPILE=3D1 = -DHAVE_SQLITE_PROGRESS_HANDLER=3D1=20 > native/sqlite_jni.c > rm -f .libs/sqlite_jni.lo > gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0=20 > -I/usr/local/include -I/usr/local/include -DHAVE_SQLITE2=3D1 = -DHAVE_SQLITE3=3D1=20 > -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1=20 > -DHAVE_SQLITE_TRACE=3D1 -DHAVE_SQLITE_COMPILE=3D1 = -DHAVE_SQLITE_PROGRESS_HANDLER=3D1=20 > native/sqlite_jni.c -fPIC -DPIC -o .libs/sqlite_jni.lo > In file included from native/sqlite_jni.h:2, > from native/sqlite_jni.c:20: > /usr/local/jdk1.4.2/include/jni.h:27:20: jni_md.h: No such file or = directory > In file included from native/sqlite_jni.h:2, > from native/sqlite_jni.c:20: > /usr/local/jdk1.4.2/include/jni.h:45: error: syntax error before = "jsize" > /usr/local/jdk1.4.2/include/jni.h:45: warning: type defaults to `int' = in=20 > declaration of `jsize' >=20 >=20 >=20 >=20 > ----- Original Message -----=20 > From: "Panagiotis Astithas" > To: "Fr=E9d=E9ric de la Goublaye" > Cc: > Sent: Sunday, December 04, 2005 1:08 PM > Subject: Re: java sqlite on FreeBSD 6.0 >=20 >=20 >> Fr=E9d=E9ric de la Goublaye wrote: >> >> [...] >> >> > install jdk1.4.10: working good (from ports jdk14 after refresh = with >> cvsup) >> > install tomcat 5.5.12: working good >> > >> > installed sqlite-3.2.7 from www.sqlite.org: (re-compile src): = working >> good >> >> Note that you can find a port for this in databases/sqlite3. >> >> [...] >> >>> configure: WARNING: setting generic JNI include file directives! >>> setting JNI include file=20 >>> directives: -I/usr/local/include -I/usr/local/include/freebsd6.0 >> >> This must be your problem. The configure script does not find the jdk = >> header files. For jdk14 you should=20 >> have -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd. >> >>> using JDBC driver from JDBC2x directory >>> configure: creating ./config.status >>> config.status: creating Makefile >>> >>> make >>> >>> /usr/local/bin/javac SQLite/Authorizer.java >>> /usr/local/bin/javac SQLite/BusyHandler.java >>> /usr/local/bin/javac SQLite/Callback.java >>> /usr/local/bin/javac SQLite/Database.java >>> /usr/local/bin/javac SQLite/Shell.java >>> ./libtool=20 >>> cc -I/usr/local/include -DHAVE_SQLITE2=3D0 -DHAVE_SQLITE3=3D1 -o=20 >>> native/mkconst native/mkconst.c /usr/local/lib/libsqlite3.la >>> mkdir native/.libs >>> gcc -I/usr/local/include -DHAVE_SQLITE2=3D0 -DHAVE_SQLITE3=3D1 -o=20 >>> native/mkconst native/mkconst.c=20 >>> /usr/local/lib/libsqlite3.so -Wl,--rpath -Wl,/usr/local/lib = -Wl,--rpath =20 >>> -Wl,/usr/local/lib >>> native/mkconst > SQLite/Constants.java >>> /usr/local/bin/javac SQLite/Constants.java >>> /usr/local/bin/javac SQLite/StringEncoder.java >>> /usr/local/bin/javac SQLite/JDBCDriver.java >>> /usr/local/bin/javac SQLite/JDBC2x/JDBCConnection.java >>> /usr/local/bin/jar cmf manifest sqlite.jar SQLite/Authorizer.class=20 >>> SQLite/BusyHandler.class SQLite/Callback.class = SQLite/Database.class=20 >>> SQLite/Exception.class SQLite/Shell.class SQLite/TableResult.class = >>> SQLite/Function.class SQLite/FunctionContext.class=20 >>> SQLite/Constants.class SQLite/Trace.class SQLite/Vm.class=20 >>> SQLite/ProgressHandler.class SQLite/StringEncoder.class=20 >>> SQLite/DBDump.class SQLite/JDBCDriver.class=20 >>> SQLite/JDBC2x/JDBCConnection.class = SQLite/JDBC2x/JDBCStatement.class=20 >>> SQLite/JDBC2x/JDBCResultSet.class=20 >>> SQLite/JDBC2x/JDBCResultSetMetaData.class=20 >>> SQLite/JDBC2x/JDBCDatabaseMetaData.class=20 >>> SQLite/JDBC2x/JDBCPreparedStatement.class=20 >>> SQLite/JDBC2x/TableResultX.class SQLite/JDBC2x/DatabaseX.class >>> /usr/local/bin/javah -jni -o native/sqlite_jni.h SQLite.Database=20 >>> SQLite.Vm SQLite.FunctionContext >>> .... >>> .... >>> >>> native/sqlite_jni.h:111: error: syntax error before "jstring" >>> native/sqlite_jni.h:112: error: syntax error before '*' token >>> native/sqlite_jni.h:112: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Database_version' >>> native/sqlite_jni.h:112: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:119: error: syntax error before "jstring" >>> native/sqlite_jni.h:120: error: syntax error before '*' token >>> native/sqlite_jni.h:120: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Database_dbversion' >>> native/sqlite_jni.h:120: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:127: error: syntax error before "void" >>> native/sqlite_jni.h:135: error: syntax error before "void" >>> native/sqlite_jni.h:143: error: syntax error before "void" >>> native/sqlite_jni.h:152: error: syntax error before '*' token >>> native/sqlite_jni.h:152: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Database_error_1string' >>> native/sqlite_jni.h:152: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:159: error: syntax error before "void" >>> native/sqlite_jni.h:167: error: syntax error before "void" >>> native/sqlite_jni.h:175: error: syntax error before "void" >>> native/sqlite_jni.h:184: error: syntax error before '*' token >>> native/sqlite_jni.h:184: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Database_is3' >>> native/sqlite_jni.h:184: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:191: error: syntax error before "void" >>> native/sqlite_jni.h:199: error: syntax error before "void" >>> native/sqlite_jni.h:207: error: syntax error before "void" >>> native/sqlite_jni.h:215: error: syntax error before "void" >>> native/sqlite_jni.h:235: error: syntax error before '*' token >>> native/sqlite_jni.h:235: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Vm_step' >>> native/sqlite_jni.h:235: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:242: error: syntax error before "jboolean" >>> native/sqlite_jni.h:243: error: syntax error before '*' token >>> native/sqlite_jni.h:243: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Vm_compile' >>> native/sqlite_jni.h:243: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:250: error: syntax error before "void" >>> native/sqlite_jni.h:258: error: syntax error before "void" >>> native/sqlite_jni.h:266: error: syntax error before "void" >>> native/sqlite_jni.h:285: error: syntax error before "void" >>> native/sqlite_jni.h:293: error: syntax error before "void" >>> native/sqlite_jni.h:301: error: syntax error before "void" >>> native/sqlite_jni.h:309: error: syntax error before "void" >>> .... >>> native/sqlite_jni.c: At top level: >>> native/sqlite_jni.c:702: error: syntax error before "void" >>> native/sqlite_jni.c:110: warning: 'seterr' defined but not used >>> native/sqlite_jni.c:120: warning: 'setvmerr' defined but not used >>> native/sqlite_jni.c:165: warning: 'globrefset' defined but not used >>> native/sqlite_jni.c:214: warning: 'transfree' defined but not used >>> native/sqlite_jni.c:222: warning: 'trans2iso' defined but not used >>> native/sqlite_jni.c:331: warning: 'busyhandler3' defined but not = used >>> native/sqlite_jni.c:353: warning: 'progresshandler' defined but not = used >>> native/sqlite_jni.c:372: warning: 'callback' defined but not used >>> native/sqlite_jni.c:625: warning: 'doclose' defined but not used >>> *** Error code 1 >>> >>> Stop in /usr/local/sqlite/javasqlite-20050608. >>=20 > From owner-freebsd-java@FreeBSD.ORG Sun Dec 4 13:59:03 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D434216A41F for ; Sun, 4 Dec 2005 13:59:03 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDB4E43D6B for ; Sun, 4 Dec 2005 13:59:02 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp4-g19.free.fr (Postfix) with SMTP id 626EB4AB4A for ; Sun, 4 Dec 2005 14:59:01 +0100 (CET) Message-ID: <004f01c5f8da$e130fc10$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: Date: Sun, 4 Dec 2005 14:59:00 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: java sqlite on FreeBSD 6.0 = FIXED X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 13:59:04 -0000 Well it is working on the console and with java/tomcat ! Yes !!!!!!!! I should write a FreeBSD javasqlite page somewhere ... java test WARNING: using non-UTF SQLite2 engine LIB version: 2.8.16 DB version: 3.2.7 ----- Original Message -----=20 From: Fr=E9d=E9ric de la Goublaye=20 To: freebsd-java@FreeBSD.org=20 Sent: Sunday, December 04, 2005 2:36 PM Subject: java sqlite on FreeBSD 6.0 Thanks for your quick support. I am making some progress ... I copy jawt_md.h and jni_md.h from the sub directory = /usr/local/jdk1.4.2/include/freebsd/ to the directory /usr/local/jdk1.4.2/include/ I do not really know what I am doing but ... it is working. make ./libtool gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0 -I/usr/local/include = -I/usr/local/include -DHAVE_SQLITE2=3D1 -DHAVE_SQLITE3=3D1 = -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1 -DHAVE_SQLITE_TRACE=3D1 = -DHAVE_SQLITE_COMPILE=3D1 -DHAVE_SQLITE_PROGRESS_HANDLER=3D1 = native/sqlite_jni.c rm -f .libs/sqlite_jni.lo gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0 -I/usr/local/include = -I/usr/local/include -DHAVE_SQLITE2=3D1 -DHAVE_SQLITE3=3D1 = -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1 -DHAVE_SQLITE_TRACE=3D1 = -DHAVE_SQLITE_COMPILE=3D1 -DHAVE_SQLITE_PROGRESS_HANDLER=3D1 = native/sqlite_jni.c -fPIC -DPIC -o .libs/sqlite_jni.lo gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0 -I/usr/local/include = -I/usr/local/include -DHAVE_SQLITE2=3D1 -DHAVE_SQLITE3=3D1 = -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1 -DHAVE_SQLITE_TRACE=3D1 = -DHAVE_SQLITE_COMPILE=3D1 -DHAVE_SQLITE_PROGRESS_HANDLER=3D1 = native/sqlite_jni.c -o sqlite_jni.o >/dev/null 2>&1 mv -f .libs/sqlite_jni.lo sqlite_jni.lo ./libtool gcc -o libsqlite_jni.la sqlite_jni.lo -rpath /usr/local/lib = /usr/local/lib/libsqlite.a /usr/local/lib/libsqlite3.la *** Warning: Linking the shared library libsqlite_jni.la against the *** static library /usr/local/lib/libsqlite.a is not portable! rm -fr .libs/libsqlite_jni.la .libs/libsqlite_jni.* = .libs/libsqlite_jni.* gcc -shared sqlite_jni.lo -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath = -Wl,/usr/local/lib /usr/local/lib/libsqlite.a = /usr/local/lib/libsqlite3.so -lc -Wl,-soname -Wl,libsqlite_jni.so.0 -o = .libs/libsqlite_jni.so.0 (cd .libs && rm -f libsqlite_jni.so && ln -s libsqlite_jni.so.0 = libsqlite_jni.so) (cd .libs && rm -f libsqlite_jni.so && ln -s libsqlite_jni.so.0 = libsqlite_jni.so) ar cru .libs/libsqlite_jni.a /usr/local/lib/libsqlite.a sqlite_jni.o = /usr/local/lib/libsqlite.a ranlib .libs/libsqlite_jni.a creating libsqlite_jni.la (cd .libs && rm -f libsqlite_jni.la && ln -s ../libsqlite_jni.la = libsqlite_jni.la) #make test /usr/local/jdk1.4.2/bin/javac test.java # java test Unable to load sqlite: java.lang.UnsatisfiedLinkError: no sqlite_jni = in java.library.path Exception in thread "main" java.lang.UnsatisfiedLinkError: version at SQLite.Database.version(Native Method) at test.main(test.java:72) # java -jar sqlite.jar test Unable to load sqlite: java.lang.UnsatisfiedLinkError: no sqlite_jni = in java.library.path Exception in thread "main" java.lang.UnsatisfiedLinkError: open at SQLite.Database.open(Native Method) at SQLite.Shell.main(Shell.java:494) Have you any idear ?=20 Thanks Fr=E9d=E9ric ----- Original Message -----=20 From: "Fr=E9d=E9ric de la Goublaye" To: "Panagiotis Astithas" Sent: Sunday, December 04, 2005 2:05 PM Subject: Re: java sqlite on FreeBSD 6.0 > Ouah ! Thanks for your quick support >=20 > I reinstall sqlite3 with the ports >=20 > I tried this command: >=20 > ./configure --with-jdk=3D/usr/local/jdk1.4.2 >=20 > Now I have the message: >=20 > configure: WARNING: setting generic JNI include file directives! > setting JNI include file=20 > directives: -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0 >=20 > but the make gives this error: >=20 > make > ./libtool=20 > gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0=20 > -I/usr/local/include -I/usr/local/include -DHAVE_SQLITE2=3D1 = -DHAVE_SQLITE3=3D1=20 > -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1=20 > -DHAVE_SQLITE_TRACE=3D1 -DHAVE_SQLITE_COMPILE=3D1 = -DHAVE_SQLITE_PROGRESS_HANDLER=3D1=20 > native/sqlite_jni.c > rm -f .libs/sqlite_jni.lo > gcc -c -Wall -O -fPIC -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd6.0=20 > -I/usr/local/include -I/usr/local/include -DHAVE_SQLITE2=3D1 = -DHAVE_SQLITE3=3D1=20 > -DHAVE_SQLITE_FUNCTION_TYPE=3D1 -DHAVE_SQLITE_OPEN_AUX_FILE=3D0 = -DHAVE_SQLITE_SET_AUTHORIZER=3D1=20 > -DHAVE_SQLITE_TRACE=3D1 -DHAVE_SQLITE_COMPILE=3D1 = -DHAVE_SQLITE_PROGRESS_HANDLER=3D1=20 > native/sqlite_jni.c -fPIC -DPIC -o .libs/sqlite_jni.lo > In file included from native/sqlite_jni.h:2, > from native/sqlite_jni.c:20: > /usr/local/jdk1.4.2/include/jni.h:27:20: jni_md.h: No such file or = directory > In file included from native/sqlite_jni.h:2, > from native/sqlite_jni.c:20: > /usr/local/jdk1.4.2/include/jni.h:45: error: syntax error before = "jsize" > /usr/local/jdk1.4.2/include/jni.h:45: warning: type defaults to = `int' in=20 > declaration of `jsize' >=20 >=20 >=20 >=20 > ----- Original Message -----=20 > From: "Panagiotis Astithas" > To: "Fr=E9d=E9ric de la Goublaye" > Cc: > Sent: Sunday, December 04, 2005 1:08 PM > Subject: Re: java sqlite on FreeBSD 6.0 >=20 >=20 >> Fr=E9d=E9ric de la Goublaye wrote: >> >> [...] >> >> > install jdk1.4.10: working good (from ports jdk14 after refresh = with >> cvsup) >> > install tomcat 5.5.12: working good >> > >> > installed sqlite-3.2.7 from www.sqlite.org: (re-compile src): = working >> good >> >> Note that you can find a port for this in databases/sqlite3. >> >> [...] >> >>> configure: WARNING: setting generic JNI include file directives! >>> setting JNI include file=20 >>> directives: -I/usr/local/include -I/usr/local/include/freebsd6.0 >> >> This must be your problem. The configure script does not find the = jdk=20 >> header files. For jdk14 you should=20 >> have -I/usr/local/jdk1.4.2/include = -I/usr/local/jdk1.4.2/include/freebsd. >> >>> using JDBC driver from JDBC2x directory >>> configure: creating ./config.status >>> config.status: creating Makefile >>> >>> make >>> >>> /usr/local/bin/javac SQLite/Authorizer.java >>> /usr/local/bin/javac SQLite/BusyHandler.java >>> /usr/local/bin/javac SQLite/Callback.java >>> /usr/local/bin/javac SQLite/Database.java >>> /usr/local/bin/javac SQLite/Shell.java >>> ./libtool=20 >>> cc -I/usr/local/include -DHAVE_SQLITE2=3D0 -DHAVE_SQLITE3=3D1 = -o=20 >>> native/mkconst native/mkconst.c /usr/local/lib/libsqlite3.la >>> mkdir native/.libs >>> gcc -I/usr/local/include -DHAVE_SQLITE2=3D0 -DHAVE_SQLITE3=3D1 -o=20 >>> native/mkconst native/mkconst.c=20 >>> /usr/local/lib/libsqlite3.so -Wl,--rpath -Wl,/usr/local/lib = -Wl,--rpath =20 >>> -Wl,/usr/local/lib >>> native/mkconst > SQLite/Constants.java >>> /usr/local/bin/javac SQLite/Constants.java >>> /usr/local/bin/javac SQLite/StringEncoder.java >>> /usr/local/bin/javac SQLite/JDBCDriver.java >>> /usr/local/bin/javac SQLite/JDBC2x/JDBCConnection.java >>> /usr/local/bin/jar cmf manifest sqlite.jar SQLite/Authorizer.class = >>> SQLite/BusyHandler.class SQLite/Callback.class = SQLite/Database.class=20 >>> SQLite/Exception.class SQLite/Shell.class = SQLite/TableResult.class=20 >>> SQLite/Function.class SQLite/FunctionContext.class=20 >>> SQLite/Constants.class SQLite/Trace.class SQLite/Vm.class=20 >>> SQLite/ProgressHandler.class SQLite/StringEncoder.class=20 >>> SQLite/DBDump.class SQLite/JDBCDriver.class=20 >>> SQLite/JDBC2x/JDBCConnection.class = SQLite/JDBC2x/JDBCStatement.class=20 >>> SQLite/JDBC2x/JDBCResultSet.class=20 >>> SQLite/JDBC2x/JDBCResultSetMetaData.class=20 >>> SQLite/JDBC2x/JDBCDatabaseMetaData.class=20 >>> SQLite/JDBC2x/JDBCPreparedStatement.class=20 >>> SQLite/JDBC2x/TableResultX.class SQLite/JDBC2x/DatabaseX.class >>> /usr/local/bin/javah -jni -o native/sqlite_jni.h SQLite.Database=20 >>> SQLite.Vm SQLite.FunctionContext >>> .... >>> .... >>> >>> native/sqlite_jni.h:111: error: syntax error before "jstring" >>> native/sqlite_jni.h:112: error: syntax error before '*' token >>> native/sqlite_jni.h:112: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Database_version' >>> native/sqlite_jni.h:112: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:119: error: syntax error before "jstring" >>> native/sqlite_jni.h:120: error: syntax error before '*' token >>> native/sqlite_jni.h:120: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Database_dbversion' >>> native/sqlite_jni.h:120: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:127: error: syntax error before "void" >>> native/sqlite_jni.h:135: error: syntax error before "void" >>> native/sqlite_jni.h:143: error: syntax error before "void" >>> native/sqlite_jni.h:152: error: syntax error before '*' token >>> native/sqlite_jni.h:152: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Database_error_1string' >>> native/sqlite_jni.h:152: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:159: error: syntax error before "void" >>> native/sqlite_jni.h:167: error: syntax error before "void" >>> native/sqlite_jni.h:175: error: syntax error before "void" >>> native/sqlite_jni.h:184: error: syntax error before '*' token >>> native/sqlite_jni.h:184: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Database_is3' >>> native/sqlite_jni.h:184: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:191: error: syntax error before "void" >>> native/sqlite_jni.h:199: error: syntax error before "void" >>> native/sqlite_jni.h:207: error: syntax error before "void" >>> native/sqlite_jni.h:215: error: syntax error before "void" >>> native/sqlite_jni.h:235: error: syntax error before '*' token >>> native/sqlite_jni.h:235: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Vm_step' >>> native/sqlite_jni.h:235: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:242: error: syntax error before "jboolean" >>> native/sqlite_jni.h:243: error: syntax error before '*' token >>> native/sqlite_jni.h:243: warning: type defaults to `int' in = declaration=20 >>> of `Java_SQLite_Vm_compile' >>> native/sqlite_jni.h:243: warning: data definition has no type or = storage=20 >>> class >>> native/sqlite_jni.h:250: error: syntax error before "void" >>> native/sqlite_jni.h:258: error: syntax error before "void" >>> native/sqlite_jni.h:266: error: syntax error before "void" >>> native/sqlite_jni.h:285: error: syntax error before "void" >>> native/sqlite_jni.h:293: error: syntax error before "void" >>> native/sqlite_jni.h:301: error: syntax error before "void" >>> native/sqlite_jni.h:309: error: syntax error before "void" >>> .... >>> native/sqlite_jni.c: At top level: >>> native/sqlite_jni.c:702: error: syntax error before "void" >>> native/sqlite_jni.c:110: warning: 'seterr' defined but not used >>> native/sqlite_jni.c:120: warning: 'setvmerr' defined but not used >>> native/sqlite_jni.c:165: warning: 'globrefset' defined but not = used >>> native/sqlite_jni.c:214: warning: 'transfree' defined but not used >>> native/sqlite_jni.c:222: warning: 'trans2iso' defined but not used >>> native/sqlite_jni.c:331: warning: 'busyhandler3' defined but not = used >>> native/sqlite_jni.c:353: warning: 'progresshandler' defined but = not used >>> native/sqlite_jni.c:372: warning: 'callback' defined but not used >>> native/sqlite_jni.c:625: warning: 'doclose' defined but not used >>> *** Error code 1 >>> >>> Stop in /usr/local/sqlite/javasqlite-20050608. >>=20 > From owner-freebsd-java@FreeBSD.ORG Sun Dec 4 14:31:42 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E48316A41F for ; Sun, 4 Dec 2005 14:31:42 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5E6F43D69 for ; Sun, 4 Dec 2005 14:31:41 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id jB4EVO1U040355; Sun, 4 Dec 2005 23:31:24 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 4 Dec 2005 23:31:24 +0900 From: Norikatsu Shigemura To: fredericdelagoublaye@free.fr Message-Id: <20051204233124.46e6cdfc.nork@FreeBSD.org> In-Reply-To: <4392DC45.50402@ebs.gr> References: <001801c5f8c6$b89b3680$0400a8c0@iava> <4392DC45.50402@ebs.gr> X-Mailer: Sylpheed version 2.1.8 (GTK+ 2.8.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Sun__4_Dec_2005_23_31_24_+0900_F9Vg5c2uoxtLNonO" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Sun, 04 Dec 2005 23:31:24 +0900 (JST) Cc: Panagiotis Astithas , freebsd-java@FreeBSD.org Subject: Re: java sqlite on FreeBSD 6.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 14:31:42 -0000 This is a multi-part message in MIME format. --Multipart=_Sun__4_Dec_2005_23_31_24_+0900_F9Vg5c2uoxtLNonO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 04 Dec 2005 14:08:37 +0200 Panagiotis Astithas wrote: > > configure: WARNING: setting generic JNI include file directives! > > setting JNI include file directives: -I/usr/local/include -I/usr/local/include/freebsd6.0 > This must be your problem. The configure script does not find the jdk > header files. For jdk14 you should have -I/usr/local/jdk1.4.2/include > -I/usr/local/jdk1.4.2/include/freebsd. Yes. Please configure with --with-jdk=/usr/local/jdk1.4.2 --without-sqlite, and apply attached patch. I considered to make javasqlite ports, but I give up:-). At least, there are 1 master port and 3 slave ports. I think that these relations have CONFLICT:-(. databases/javasqlite2-14 --with-jdk=/usr/local/jdk1.4.2 --without-sqlite3 databases/javasqlite2-15 --with-jdk=/usr/local/jdk1.4.2 --without-sqlite databases/javasqlite3-14 --with-jdk=/usr/local/jdk1.5.0 --without-sqlite3 databases/javasqlite3-15 --with-jdk=/usr/local/jdk1.5.0 --without-sqlite --Multipart=_Sun__4_Dec_2005_23_31_24_+0900_F9Vg5c2uoxtLNonO Content-Type: application/octet-stream; name="patch-configure" Content-Disposition: attachment; filename="patch-configure" Content-Transfer-Encoding: base64 LS0tIGNvbmZpZ3VyZS5vcmlnCU1vbiBNYXkgMTYgMTk6MDM6MzUgMjAwNQorKysgY29uZmlndXJl CVN1biBEZWMgIDQgMjM6MTg6MTMgMjAwNQpAQCAtNzQ4NSw2ICs3NDg1LDkgQEAKICAgICBsaW51 eCogKQogICAgICAgICBKTklJTkNMVURFPSItSSRKQVZBX0hPTUUvaW5jbHVkZSAtSSRKQVZBX0hP TUUvaW5jbHVkZS9saW51eCIKICAgICAgICAgOzsKKyAgICBmcmVlYnNkKiApCisgICAgICAgIEpO SUlOQ0xVREU9Ii1JJEpBVkFfSE9NRS9pbmNsdWRlIC1JJEpBVkFfSE9NRS9pbmNsdWRlL2ZyZWVi c2QiCisgICAgICAgIDs7CiAgICAgKikKICAgICAgICAgSk5JSU5DTFVERT0iLUkke0pBVkFfSE9N RX0vaW5jbHVkZSAtSSR7SkFWQV9IT01FfS9pbmNsdWRlLyR7YnVpbGRfb3N9IgogICAgICAgICB7 IGVjaG8gIiRhc19tZTokTElORU5POiBXQVJOSU5HOiBzZXR0aW5nIGdlbmVyaWMgSk5JIGluY2x1 ZGUgZmlsZSBkaXJlY3RpdmVzISIgPiY1Cg== --Multipart=_Sun__4_Dec_2005_23_31_24_+0900_F9Vg5c2uoxtLNonO-- From owner-freebsd-java@FreeBSD.ORG Mon Dec 5 11:02:13 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A76F16A420 for ; Mon, 5 Dec 2005 11:02:13 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2847C43D8B for ; Mon, 5 Dec 2005 11:02:03 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB5B23DF023935 for ; Mon, 5 Dec 2005 11:02:03 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB5B22pI023925 for freebsd-java@freebsd.org; Mon, 5 Dec 2005 11:02:02 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 5 Dec 2005 11:02:02 GMT Message-Id: <200512051102.jB5B22pI023925@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 11:02:13 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/05/13] ports/38018 java www/jakarta-tomcat4: make passing of JVM f [2002/05/13] ports/38020 java www/jakarta-tomcat4: stop tomcat via java o [2004/05/01] java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes o [2004/12/06] ports/74760 java java/javavmwrapper messes up amavisd-new o [2005/01/24] java/76631 java any port linux-*-jdk12 will core dump if o [2005/05/19] ports/81272 java JDK 1.5 port doesn't build. f [2005/06/13] java/82183 java Cannot install Java 1.5, lots of missing o [2005/09/29] java/86700 java SIGSEGV in native jdk15 8 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2003/09/16] ports/56928 java jce-aba port should install to $JAVA_HOME o [2004/08/11] java/70292 java jdk14 compile problem f [2004/11/24] ports/74344 java [proposal] tomcat41ctl: support for passi o [2004/12/16] ports/75143 java There is no way to specify jvm parameters o [2005/09/02] ports/85626 java java/jdk15 compile error o [2005/10/01] java/86804 java [PATCH] Install a desktop icon for the ja o [2005/10/17] java/87552 java Enable multi-job builds for CPP files in 7 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Dec 5 12:01:18 2005 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B0F416A41F for ; Mon, 5 Dec 2005 12:01:18 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FB1243D58 for ; Mon, 5 Dec 2005 12:01:16 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id jB5C1FZm070361 for ; Mon, 5 Dec 2005 14:01:15 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (pc158.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id jB5C1YsM073443 for ; Mon, 5 Dec 2005 14:01:35 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <43942C07.1030604@ebs.gr> Date: Mon, 05 Dec 2005 14:01:11 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: JBoss4 installation weirdness X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 12:01:18 -0000 As I found out the hard way today, jboss4 installs different things depending on whether it is being built using jdk14 or jdk15. In the latter case you get EJB3 stuff that (unfortunately for me) include old versions of commons-stuff which may create conflicts with a deployed app, thanks to the funky jboss classloader architecture. The binaries that jboss.com ships evidently contain stuff that you get when you build with jdk14. I'm not sure if it is possible or even reasonable to change the current behavior (I'm overriding JAVA_PREFERRED_PORTS), but perhaps we could add an informative message when building the port to inform the user. Cheers, Panagiotis From owner-freebsd-java@FreeBSD.ORG Mon Dec 5 13:57:27 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B4CC16A41F for ; Mon, 5 Dec 2005 13:57:27 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7969643D62 for ; Mon, 5 Dec 2005 13:57:25 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost [127.0.0.1]) by arabica.esil.univ-mrs.fr (8.13.4/8.13.4) with ESMTP id jB5DvEdn053352; Mon, 5 Dec 2005 14:57:14 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.4/8.13.4/Submit) id jB5DvErT053321; Mon, 5 Dec 2005 14:57:14 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Mon, 5 Dec 2005 14:57:13 +0100 From: Herve Quiroz To: Panagiotis Astithas Message-ID: <20051205135713.GA14943@arabica.esil.univ-mrs.fr> Mail-Followup-To: Panagiotis Astithas , freebsd-java@freebsd.org References: <43942C07.1030604@ebs.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43942C07.1030604@ebs.gr> User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@freebsd.org Subject: Re: JBoss4 installation weirdness X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 13:57:27 -0000 Hi Panagiotis, On Mon, Dec 05, 2005 at 02:01:11PM +0200, Panagiotis Astithas wrote: > As I found out the hard way today, jboss4 installs different things > depending on whether it is being built using jdk14 or jdk15. In the > latter case you get EJB3 stuff that (unfortunately for me) include old > versions of commons-stuff which may create conflicts with a deployed > app, thanks to the funky jboss classloader architecture. The binaries > that jboss.com ships evidently contain stuff that you get when you build > with jdk14. I don't know much about JBoss 4 but the common practice when ports install different stuff depending on JDK version is to use a PKGNAMESUFFIX to indicate the JDK version used (e.g. '-jdk14'). java/openjit is one good example. > I'm not sure if it is possible or even reasonable to change the current > behavior (I'm overriding JAVA_PREFERRED_PORTS), but perhaps we could add > an informative message when building the port to inform the user. I can think of two approaches here. Either we disallow Java 1.5 (since there seems to be trouble with it anyway, as you describe above), or we could just enforce JAVA_VERSION?=1.4 and let the user know that he may override JAVA_VERSION if he wants another JDK version. Indeed users don't always read the messages from the install log and the JDK that is picked up does not only depends on JAVA_PREFERRED_PORTS (it also depends on the JDKs that are installed at the time you install a port). So I think it's better to enforce a known-to-be-stable flavor of the port and allow the users who know what they do to request a different flavor. I also wondering what could happen if you use java/jdk15 to build the port and then java/jdk14 to run it... In case this causes trouble, it would confirm the fact that we need to enforce either "1.4" or "1.5" (thus no "1.4+"). Herve From owner-freebsd-java@FreeBSD.ORG Mon Dec 5 15:07:20 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED2F716A41F for ; Mon, 5 Dec 2005 15:07:20 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F61A43D46 for ; Mon, 5 Dec 2005 15:07:18 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id jB5F77Zm070966; Mon, 5 Dec 2005 17:07:07 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (pc158.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id jB5F7PHw077423; Mon, 5 Dec 2005 17:07:26 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <43945797.60001@ebs.gr> Date: Mon, 05 Dec 2005 17:07:03 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Herve Quiroz References: <43942C07.1030604@ebs.gr> <20051205135713.GA14943@arabica.esil.univ-mrs.fr> In-Reply-To: <20051205135713.GA14943@arabica.esil.univ-mrs.fr> Content-Type: multipart/mixed; boundary="------------000301030803050204030406" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@freebsd.org Subject: Re: JBoss4 installation weirdness X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 15:07:21 -0000 This is a multi-part message in MIME format. --------------000301030803050204030406 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Herve Quiroz wrote: > Hi Panagiotis, > > On Mon, Dec 05, 2005 at 02:01:11PM +0200, Panagiotis Astithas wrote: > >>As I found out the hard way today, jboss4 installs different things >>depending on whether it is being built using jdk14 or jdk15. In the >>latter case you get EJB3 stuff that (unfortunately for me) include old >>versions of commons-stuff which may create conflicts with a deployed >>app, thanks to the funky jboss classloader architecture. The binaries >>that jboss.com ships evidently contain stuff that you get when you build >>with jdk14. > > > I don't know much about JBoss 4 but the common practice when ports > install different stuff depending on JDK version is to use a > PKGNAMESUFFIX to indicate the JDK version used (e.g. '-jdk14'). > java/openjit is one good example. Right. Then again that has bitten people occasionally when portupgrading using packages. IIRC, the right package cannot be found automatically. >>I'm not sure if it is possible or even reasonable to change the current >>behavior (I'm overriding JAVA_PREFERRED_PORTS), but perhaps we could add >>an informative message when building the port to inform the user. > > > I can think of two approaches here. Either we disallow Java 1.5 (since > there seems to be trouble with it anyway, as you describe above), or we > could just enforce JAVA_VERSION?=1.4 and let the user know that he may > override JAVA_VERSION if he wants another JDK version. Indeed users > don't always read the messages from the install log and the JDK that is > picked up does not only depends on JAVA_PREFERRED_PORTS (it also depends > on the JDKs that are installed at the time you install a port). So I > think it's better to enforce a known-to-be-stable flavor of the port and > allow the users who know what they do to request a different flavor. > > I also wondering what could happen if you use java/jdk15 to build the > port and then java/jdk14 to run it... In case this causes trouble, it > would confirm the fact that we need to enforce either "1.4" or "1.5" > (thus no "1.4+"). Enforcing jdk14 would be in accordance with the official policy (from JBoss Inc.), as I understand it. Unfortunately the current port suffers from another issue I have mentioned a while ago. Since it uses jboss4ctl to control the service, the jdk path gets hardcoded into the executable when building it. This forces the use of the same jdk to run the service as the one it was built with. This way however you can't deploy jdk15 applications if you build jboss with jdk14. For the time being I'm using the attached startup scripts, copied from your tomcat55 one. IIRC, you were going to look into it, so they may be useful as a starting point. Some things don't work right though, like the 'status' command. On the other hand I kinda like the fact that I can get the full jboss4 server with ejb3, annotations and whatnot, with just a recompilation. If we remove this functionality (granted, I just found out that it existed) we should replace it with a build option or a slave port (that enforces jdk15). Currently there is no other way to get this functionality from the ports collection, you have to get the extra bundles from the vendor's site. I'm CCing Jonathan, since he may be already aware of all this. Regards, Panagiotis --------------000301030803050204030406-- From owner-freebsd-java@FreeBSD.ORG Mon Dec 5 18:52:06 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F31216A42C for ; Mon, 5 Dec 2005 18:52:06 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2657E43D82 for ; Mon, 5 Dec 2005 18:52:05 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 467A556425; Tue, 6 Dec 2005 07:52:03 +1300 (NZDT) Date: Tue, 6 Dec 2005 07:52:03 +1300 From: Jonathan Chen To: Panagiotis Astithas Message-ID: <20051205185203.GC54769@osiris.chen.org.nz> References: <43942C07.1030604@ebs.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43942C07.1030604@ebs.gr> User-Agent: Mutt/1.4.2.1i Cc: java Subject: Re: JBoss4 installation weirdness X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 18:52:06 -0000 On Mon, Dec 05, 2005 at 02:01:11PM +0200, Panagiotis Astithas wrote: > As I found out the hard way today, jboss4 installs different things > depending on whether it is being built using jdk14 or jdk15. In the > latter case you get EJB3 stuff that (unfortunately for me) include old > versions of commons-stuff which may create conflicts with a deployed > app, thanks to the funky jboss classloader architecture. Have you tried tweaking the config for conf/jboss-service.xml and deploy/ear-deployer.xml as described in: http://docs.jboss.com/jbossas/whatsnew40/html/ See if this fixes your class-loading problems. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "Nyuck, nyuck, nyuck" - Curly From owner-freebsd-java@FreeBSD.ORG Mon Dec 5 22:16:23 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6D8716A420 for ; Mon, 5 Dec 2005 22:16:23 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3261A43D75 for ; Mon, 5 Dec 2005 22:16:17 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id jB5MFd8X052677; Mon, 5 Dec 2005 15:15:40 -0700 (MST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id jB5MFc96052668; Mon, 5 Dec 2005 15:15:38 -0700 (MST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 5 Dec 2005 15:15:38 -0700 From: Greg Lewis To: Fritz Heinrichmeyer Message-ID: <20051205221538.GA52578@misty.eyesbeyond.com> References: <4391FAB3.8020203@fernuni-hagen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4391FAB3.8020203@fernuni-hagen.de> User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@freebsd.org Subject: Re: jdk-1.5 update to _3 does not work under freebsd 6 stable X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 22:16:24 -0000 On Sat, Dec 03, 2005 at 09:06:11PM +0100, Fritz Heinrichmeyer wrote: > jdk-1.5.0p2_2 update to _3 does not work here under a current FreeBSD 6 > Stable. I have newest firefox-1.5 installed and suspect this has to do > with build fault: > > gmake[5]: Entering directory > `/reserve/usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' > /usr/bin/g++ -fPIC -DCC_NOEX -W -Wall -Wno-unused -Wno-parentheses > -I/reserve/usr/ports/java/jdk15/work/control/build/bsd-i586/include > -I/reserve/usr/ports/java/jdk15/work/control/build/bsd-i586/include/freebsd > -I/reserve/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin > -I../../../../src/plugin/solaris/common > -I../../../../src/plugin/share/adapter/ns7 > -I../../../../src/plugin/share/adapter/common > -I../../../../src/plugin/share/adapter/include > -I../../../../src/plugin/solaris/nscore > -I../../../../src/plugin/share/jpiapi -I/usr/X11R6/include/firefox > -I/usr/X11R6/include/firefox/caps -I/usr/X11R6/include/firefox/liveconnect > -I/usr/X11R6/include/firefox/nspr -I/usr/X11R6/include/firefox/oji > -I/usr/X11R6/include/firefox/plugin -I/usr/X11R6/include/firefox/xpcom > -I/usr/local/include/nspr -I/usr/X11R6/include -I/usr/local/include > -I../../../../../j2se/make/../src/solaris/javavm/export > -I../../../../../j2se/make/../src/share/javavm/export > -I../../../../../j2se/make/../src/share/javavm/include > -I../../../../../j2se/make/../src/solaris/javavm/include -D_GNU_SOURCE > -DXP_UNIX -D_ALLBSD_SOURCE -DPLUGIN_NODOTVERSION=\"150\" > -DPLUGIN_VERSION=\"1.5.0\" -DVERSION=\"1.5.0-p2-root_03_dec_2005_20_36\" > -DRELEASE=\"1.5.0-p2\" -DARCH=\"i586\" -DLIBARCH=\"i386\" -c -o > /reserve/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/adapter/ns7/obj/CNSAdapter_JVMManager.o > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp > In file included from > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:17: > ../../../../src/plugin/share/adapter/ns7/StdAfx.h:61:1: warning: > "NS_ASSERTION" redefined > In file included from ../../../../src/plugin/share/adapter/ns7/StdAfx.h:59, > from > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:17: > /usr/X11R6/include/firefox/nsDebug.h:208:1: warning: this is the > location of the previous definition > In file included from > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:17: > ../../../../src/plugin/share/adapter/ns7/StdAfx.h:62:1: warning: > "NS_PRECONDITION" redefined > In file included from ../../../../src/plugin/share/adapter/ns7/StdAfx.h:59, > from > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:17: > /usr/X11R6/include/firefox/nsDebug.h:207:1: warning: this is the > location of the previous definition > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: > In member function `virtual JDresult > CNSAdapter_JVMManager::GetCurrentThread(JDUint32*)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: `nsPluginThread' undeclared (first use this function) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: (Each undeclared identifier is reported only once for each > function it appears in.) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: `pPluginThread' undeclared (first use this function) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: > In member function `virtual JDresult > CNSAdapter_JVMManager::PostEvent(JDUint32, IRunnable*, JDBool)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error: invalid conversion from `JDUint32' to `PRThread*' > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error: initializing argument 1 of `virtual nsresult > nsIThreadManager::PostEvent(PRThread*, nsIRunnable*, PRBool)' > gmake[5]: *** > [/reserve/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/adapter/ns7/obj/CNSAdapter_JVMManager.o] > Error 1 > g Hmm, that does indeed look like a problem with a change to the plugin interface. I'll recompiling with the latest Firefox and see if I can track it down. Thanks for the report! -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 10:00:04 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4500816A41F; Tue, 6 Dec 2005 10:00:04 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8140E43D60; Tue, 6 Dec 2005 10:00:03 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (localhost [127.0.0.1]) by vault.mel.jumbuck.com (Postfix) with ESMTP id 6C0198A035; Tue, 6 Dec 2005 20:59:57 +1100 (EST) Received: from [192.168.46.52] (unknown [192.168.46.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vault.mel.jumbuck.com (Postfix) with ESMTP id 4FF1D8A014; Tue, 6 Dec 2005 20:59:57 +1100 (EST) Message-ID: <43956122.5020106@roq.com> Date: Tue, 06 Dec 2005 21:00:02 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051202 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: performance@freebsd.org, freebsd-threads@FreeBSD.org Subject: More threads X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 10:00:04 -0000 Hi All, I been benchmarking a Java servlet I have created and I want to be able to handle a massive amount of simultaneous connections. So far using benchmarking tools I have been able to get around 2,565 threads on the Tomcat 5.5 Java process (with native 1.4.2 Java) according to ps -auxwH | grep -c 'java' But I just can't seem to get past that mark, I have a lot of memory currently the Tomcat is allocated 2gigs of memory. When I max it out with my benchmarks I get this in catalina Tomcat 5.5 but there is still plenty of free memory to the Tomcat process. SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new native thread) executing org.apache.jk.common.SocketAcceptor@f36e59, terminatingthread I have been testing with my libmap.conf with these different types of implementations. [/usr/local/jdk1.4.2/] #libpthread.so libc_r.so #libpthread.so.2 libc_r.so.6 libpthread.so.2 libthr.so.2 libpthread.so libthr.so libc_r.so.6 libthr.so.2 libc_r.so libthr.so I have been getting the best performance with libthr and have been using the above libthr and with these settings below. I have set my max_threads in /etc/sysctl.conf to a massive amount. kern.threads.max_threads_per_proc=40000 kern.threads.max_groups_per_proc=40000 ps -auxwH | grep -c 'java' 2565 I am using Apache2.2 with the new built in AJP module which has been a great addition to Apache 2.2. I have been able to get the setup performing most stable (no 503 status errors) but with less performance / threads with the libmap.conf below. [/usr/local/jdk1.4.2/] libpthread.so libc_r.so libpthread.so.2 libc_r.so.6 I am on 6.0 Release i386, dual Intel P4, generic SMP kernel. With Tomcat on Windows XP I have been able to get it running better. Does any one know of some other sysctls that increase the amount of threads in libthr which I am assuming utilizes the above sysctls. Does any one know how many threads can be created in Java on FreeBSD? Cheers, Mike From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 10:12:09 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F36D16A41F; Tue, 6 Dec 2005 10:12:09 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E20243D68; Tue, 6 Dec 2005 10:12:08 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id jB6BAUKc017209; Tue, 6 Dec 2005 13:10:30 +0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id jB6BAUgg017205; Tue, 6 Dec 2005 13:10:30 +0200 Date: Tue, 6 Dec 2005 13:10:30 +0200 (EET) From: Achilleus Mantzios To: Michael Vince In-Reply-To: <43956122.5020106@roq.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-threads@freebsd.org, performance@freebsd.org, freebsd-java@freebsd.org Subject: Re: More threads X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 10:12:09 -0000 Maybe take a look at http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user/200312.mbox/<3FD2066D.2040008%40joedog.org> -- -Achilleus From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 10:15:22 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB30816A41F for ; Tue, 6 Dec 2005 10:15:22 +0000 (GMT) (envelope-from chad.brubaker@gmail.com) Received: from smtp101.sbc.mail.mud.yahoo.com (smtp101.sbc.mail.mud.yahoo.com [68.142.198.200]) by mx1.FreeBSD.org (Postfix) with SMTP id 6C0EA43D58 for ; Tue, 6 Dec 2005 10:15:21 +0000 (GMT) (envelope-from chad.brubaker@gmail.com) Received: (qmail 67453 invoked from network); 6 Dec 2005 10:15:20 -0000 Received: from unknown (HELO ?192.168.1.106?) (emochila@sbcglobal.net@71.141.245.145 with plain) by smtp101.sbc.mail.mud.yahoo.com with SMTP; 6 Dec 2005 10:15:20 -0000 In-Reply-To: <43956122.5020106@roq.com> References: <43956122.5020106@roq.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chad Brubaker Date: Tue, 6 Dec 2005 02:15:19 -0800 To: Michael Vince X-Mailer: Apple Mail (2.746.2) Cc: freebsd-threads@FreeBSD.org, performance@freebsd.org, freebsd-java@FreeBSD.org Subject: Re: More threads X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 10:15:22 -0000 You can try setting your heap size. JAVA_OPTS="-Xms512M - Xmx1024M" - actually, in your case you could set the min and max to be much higher, but this is the command i use on my machine. I'm pretty sure this is definitely your problem. I upgraded to a machine with more memory thinking i had solved my OutOfMemeoryError, - but low and behold, it was my heap size allocation.... hope this helps. On Dec 6, 2005, at 2:00 AM, Michael Vince wrote: > Hi All, > > I been benchmarking a Java servlet I have created and I want to be > able to handle a massive amount of simultaneous connections. > So far using benchmarking tools I have been able to get around > 2,565 threads on the Tomcat 5.5 Java process (with native 1.4.2 > Java) according to ps -auxwH | grep -c 'java' > > But I just can't seem to get past that mark, I have a lot of memory > currently the Tomcat is allocated 2gigs of memory. > > When I max it out with my benchmarks I get this in catalina Tomcat > 5.5 but there is still plenty of free memory to the Tomcat process. > SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to > create new native thread) executing > org.apache.jk.common.SocketAcceptor@f36e59, terminatingthread > > I have been testing with my libmap.conf with these different types > of implementations. > > [/usr/local/jdk1.4.2/] > #libpthread.so libc_r.so > #libpthread.so.2 libc_r.so.6 > libpthread.so.2 libthr.so.2 > libpthread.so libthr.so > libc_r.so.6 libthr.so.2 > libc_r.so libthr.so > > I have been getting the best performance with libthr and have been > using the above libthr and with these settings below. > > I have set my max_threads in /etc/sysctl.conf to a massive amount. > > kern.threads.max_threads_per_proc=40000 > kern.threads.max_groups_per_proc=40000 > > ps -auxwH | grep -c 'java' > 2565 > > I am using Apache2.2 with the new built in AJP module which has > been a great addition to Apache 2.2. > I have been able to get the setup performing most stable (no 503 > status errors) but with less performance / threads with the > libmap.conf below. > [/usr/local/jdk1.4.2/] > libpthread.so libc_r.so > libpthread.so.2 libc_r.so.6 > > I am on 6.0 Release i386, dual Intel P4, generic SMP kernel. > > With Tomcat on Windows XP I have been able to get it running better. > Does any one know of some other sysctls that increase the amount of > threads in libthr which I am assuming utilizes the above sysctls. > Does any one know how many threads can be created in Java on FreeBSD? > > Cheers, > Mike > > > > > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java- > unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 10:33:30 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C17016A420; Tue, 6 Dec 2005 10:33:30 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F12543D5E; Tue, 6 Dec 2005 10:33:29 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB6AXQMD040880; Tue, 6 Dec 2005 10:33:27 GMT (envelope-from davidxu@freebsd.org) Message-ID: <439568FB.1000804@freebsd.org> Date: Tue, 06 Dec 2005 18:33:31 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20050928 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Vince References: <43956122.5020106@roq.com> In-Reply-To: <43956122.5020106@roq.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org, performance@freebsd.org, freebsd-java@freebsd.org Subject: Re: More threads X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 10:33:30 -0000 Michael Vince wrote: > Hi All, > > I been benchmarking a Java servlet I have created and I want to be able > to handle a massive amount of simultaneous connections. > So far using benchmarking tools I have been able to get around 2,565 > threads on the Tomcat 5.5 Java process (with native 1.4.2 Java) > according to ps -auxwH | grep -c 'java' > > But I just can't seem to get past that mark, I have a lot of memory > currently the Tomcat is allocated 2gigs of memory. > > When I max it out with my benchmarks I get this in catalina Tomcat 5.5 > but there is still plenty of free memory to the Tomcat process. > SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create > new native thread) executing org.apache.jk.common.SocketAcceptor@f36e59, > terminatingthread > > I have been testing with my libmap.conf with these different types of > implementations. > > [/usr/local/jdk1.4.2/] > #libpthread.so libc_r.so > #libpthread.so.2 libc_r.so.6 > libpthread.so.2 libthr.so.2 > libpthread.so libthr.so > libc_r.so.6 libthr.so.2 > libc_r.so libthr.so > > I have been getting the best performance with libthr and have been using > the above libthr and with these settings below. > > I have set my max_threads in /etc/sysctl.conf to a massive amount. > > kern.threads.max_threads_per_proc=40000 > kern.threads.max_groups_per_proc=40000 > > ps -auxwH | grep -c 'java' > 2565 > > I am using Apache2.2 with the new built in AJP module which has been a > great addition to Apache 2.2. > I have been able to get the setup performing most stable (no 503 status > errors) but with less performance / threads with the libmap.conf below. > [/usr/local/jdk1.4.2/] > libpthread.so libc_r.so > libpthread.so.2 libc_r.so.6 > > I am on 6.0 Release i386, dual Intel P4, generic SMP kernel. > > With Tomcat on Windows XP I have been able to get it running better. > Does any one know of some other sysctls that increase the amount of > threads in libthr which I am assuming utilizes the above sysctls. Does > any one know how many threads can be created in Java on FreeBSD? > > Cheers, > Mike > Number of threads you can create if you use libthr is limited by following factors: 1) sysctl: kern.threads.max_threads_per_proc kern.threads.max_groups_per_proc 2) stack per-thread userland stack, default number on 64 bits platform is 2M, on 32 bits platform, it is 1M. I don't know whether java supports adjusting default per-thread stack size. if can not, we may add an environment variable to thread libraries, for example: LIBPTHREAD_THREAD_STACKSIZE allows user to set default stack size. Thread also needs a kernel mode stack when it is in kernel, if I am right, it is 16K bytes per-thread. if you create too many threads, make sure both side won't exhaust address space, and because kernel stack can not be swapped out when process is running, you'd make sure physical memory can not be exhausted. 3) check memory limits type limits command: Resource limits (current): cputime infinity secs filesize infinity kB datasize 524288 kB stacksize 65536 kB coredumpsize infinity kB memoryuse infinity kB memorylocked infinity kB maxprocesses 5547 openfiles 11095 sbsize infinity bytes vmemoryuse infinity kB if address space is not large enough, you have to reconfigure kernel to allow larger space. Fix me if I am wrong. David Xu From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 22:36:49 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3A2D16A465; Tue, 6 Dec 2005 22:36:48 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (morons.org [64.147.161.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B52543D75; Tue, 6 Dec 2005 22:36:33 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: from localhost (localhost.morons.org [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id E0D47170DB; Tue, 6 Dec 2005 14:36:22 -0800 (PST) Received: from turing.morons.org ([127.0.0.1]) by localhost (turing.morons.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21152-02; Tue, 6 Dec 2005 14:36:20 -0800 (PST) Received: by turing.morons.org (Postfix, from userid 1001) id B7F75170DA; Tue, 6 Dec 2005 14:36:20 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id AC08A1707C; Tue, 6 Dec 2005 14:36:20 -0800 (PST) Date: Tue, 6 Dec 2005 14:36:20 -0800 (PST) From: freebsd@spatula.net X-X-Sender: spatula@turing To: bug-followup@FreeBSD.org Message-ID: <20051206141650.O2752@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: amavisd-new at morons.org Cc: freebsd-java@freebsd.org Subject: Re: threads/84778: libpthread busy loop/hang with Java when handling signals and Runtime.exec X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 22:36:51 -0000 This is still happening on FreeBSD 6.0-STABLE as of 12/6/2005. World and kernel were compiled without any CPUTYPE or CFLAGS options, as was Java. This problem is trivial to reproduce. One merely has to start httpd.sh in Resin 3.0 with no arguments, wait for the JVM to start running, and hit ^Z or ^C. The process then goes into an infinite loop in kse_release. truss -p shows the following: kse_release(0x8056f44) = 0 (0x0) kse_release(0x8056f44) = 0 (0x0) kse_release(0x8056f4c) = 0 (0x0) kse_release(0x8056f44) = 0 (0x0) kse_release(0x8056f44) = 0 (0x0) kse_release(0x8056f4c) = 0 (0x0) ktrace shows a bit more detail of the infinite loop: 21357 java CALL gettimeofday(0xbf275e70,0) 21357 java RET gettimeofday 0 21357 java CALL gettimeofday(0xbf275ec0,0) 21357 java RET gettimeofday 0 21357 java CALL kse_release(0x8056f4c) 21357 java RET kse_release 0 21357 java CALL gettimeofday(0xbf275e70,0) 21357 java RET gettimeofday 0 21357 java CALL gettimeofday(0xbf275ec0,0) 21357 java RET gettimeofday 0 21357 java CALL kse_release(0x8056f4c) 21357 java RET kse_release 0 gcore -s 21357; gdb /usr/local/jdk14/bin/java core.21357 shows: Cannot get thread info: generic error #0 0x4809f1af in pthread_testcancel () from /usr/lib/libpthread.so.2 #1 0x480a01dd in __error () from /usr/lib/libpthread.so.2 #2 0x4808adeb in pthread_getschedparam () from /usr/lib/libpthread.so.2 #3 0x4808feef in pthread_create () from /usr/lib/libpthread.so.2 #4 0x48465f10 in os::create_thread () from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so #5 0x484afb28 in JavaThread::JavaThread () from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so #6 0x483f927c in JVM_StartThread () from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so followed by a smashed-looking stack for about 60 frames, and then: #65 0x485735c0 in __JCR_LIST__ () from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so #66 0x4a3c20d7 in ?? () #67 0xbf073d00 in ?? () #68 0xbf073d48 in ?? () #69 0x4839032b in JavaCalls::call_helper () from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so Previous frame inner to this frame (corrupt stack?) Note that the valid-looking portion of the stack trace still isn't valid higher than pthread_create(), though this could have still been a result of the process still making calls while gcore was running, since the process does not respond to the STOP signal. I'm inclined to suspect that this is a Java bug, considering the smashed stack. Nick -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.1 http://web.morons.org/ From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 23:16:17 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB2AE16A41F; Tue, 6 Dec 2005 23:16:17 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (morons.org [64.147.161.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A67B43D55; Tue, 6 Dec 2005 23:16:17 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: from localhost (localhost.morons.org [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 218F3170DC; Tue, 6 Dec 2005 15:16:17 -0800 (PST) Received: from turing.morons.org ([127.0.0.1]) by localhost (turing.morons.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22025-08; Tue, 6 Dec 2005 15:16:16 -0800 (PST) Received: by turing.morons.org (Postfix, from userid 1001) id 2717417072; Tue, 6 Dec 2005 15:16:16 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 2651E17071; Tue, 6 Dec 2005 15:16:16 -0800 (PST) Date: Tue, 6 Dec 2005 15:16:16 -0800 (PST) From: freebsd@spatula.net X-X-Sender: spatula@turing To: bug-followup@FreeBSD.org In-Reply-To: <20051206141650.O2752@turing> Message-ID: <20051206150709.U2752@turing> References: <20051206141650.O2752@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: amavisd-new at morons.org Cc: freebsd-java@freebsd.org Subject: Re: threads/84778: libpthread busy loop/hang with Java when handling signals and Runtime.exec X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 23:16:18 -0000 Another bit of information of interest: sending the process a kill -stop (-17) after trying to stop it with ^Z *will* cause the process to stop. Sending it a kill -stop without hitting ^Z will also cause the process to stop normally. In either case, however, resuming from the shell with fg will cause the same infinite-loop behaviour. Resuming with a kill -19 will also cause the infinite-loop behaviour. Sending a regular kill signal also causes the infinite-loop behaviour. The process has to be killed with a kill -9 in all cases once this behaiour starts. -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.1 http://web.morons.org/ From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 23:18:29 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3132516A41F; Tue, 6 Dec 2005 23:18:29 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C1AF43D4C; Tue, 6 Dec 2005 23:18:27 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id jB6NIQ9q045157; Tue, 6 Dec 2005 16:18:26 -0700 (MST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id jB6NIPEq045156; Tue, 6 Dec 2005 16:18:25 -0700 (MST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 6 Dec 2005 16:18:25 -0700 From: Greg Lewis To: David Xu Message-ID: <20051206231825.GA44966@misty.eyesbeyond.com> References: <43956122.5020106@roq.com> <439568FB.1000804@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <439568FB.1000804@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: Michael Vince , freebsd-java@freebsd.org, performance@freebsd.org, freebsd-threads@freebsd.org Subject: Re: More threads X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 23:18:29 -0000 On Tue, Dec 06, 2005 at 06:33:31PM +0800, David Xu wrote: > Michael Vince wrote: [...] > >But I just can't seem to get past that mark, I have a lot of memory > >currently the Tomcat is allocated 2gigs of memory. [...] > Number of threads you can create if you use libthr is limited by > following factors: > 1) sysctl: > kern.threads.max_threads_per_proc > kern.threads.max_groups_per_proc > > 2) stack > per-thread userland stack, default number on 64 bits platform is 2M, > on 32 bits platform, it is 1M. I don't know whether java supports > adjusting default per-thread stack size. if can not, we may add > an environment variable to thread libraries, for example: > LIBPTHREAD_THREAD_STACKSIZE allows user to set default stack size. > > Thread also needs a kernel mode stack when it is in kernel, if > I am right, it is 16K bytes per-thread. if you create too many > threads, make sure both side won't exhaust address space, and > because kernel stack can not be swapped out when process is > running, you'd make sure physical memory can not be exhausted. > > 3) check memory limits > type limits command: > > Resource limits (current): > cputime infinity secs > filesize infinity kB > datasize 524288 kB > stacksize 65536 kB > coredumpsize infinity kB > memoryuse infinity kB > memorylocked infinity kB > maxprocesses 5547 > openfiles 11095 > sbsize infinity bytes > vmemoryuse infinity kB > > if address space is not large enough, you have to reconfigure kernel > to allow larger space. Fix me if I am wrong. I think that Michael's real problem is the amount of memory he has allocated. If he has 2GB allocated already then he is out of luck if he needs to allocate more (e.g. to create another thread). See mmap(2), particularly the BUGS section. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 23:34:35 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9130A16A448; Tue, 6 Dec 2005 23:34:35 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (morons.org [64.147.161.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2561743D66; Tue, 6 Dec 2005 23:34:35 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: from localhost (localhost.morons.org [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id D6A6A17058; Tue, 6 Dec 2005 15:34:34 -0800 (PST) Received: from turing.morons.org ([127.0.0.1]) by localhost (turing.morons.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23238-01; Tue, 6 Dec 2005 15:34:32 -0800 (PST) Received: by turing.morons.org (Postfix, from userid 1001) id 845E617049; Tue, 6 Dec 2005 15:34:32 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 8097217042; Tue, 6 Dec 2005 15:34:32 -0800 (PST) Date: Tue, 6 Dec 2005 15:34:32 -0800 (PST) From: freebsd@spatula.net X-X-Sender: spatula@turing To: bug-followup@FreeBSD.org In-Reply-To: <200512062320.jB6NK9RS075945@freefall.freebsd.org> Message-ID: <20051206153047.J2752@turing> References: <200512062320.jB6NK9RS075945@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: amavisd-new at morons.org Cc: freebsd-java@FreeBSD.org Subject: Re: threads/84778: libpthread busy loop/hang with Java when handling signals and Runtime.exec X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 23:34:35 -0000 As I continue to muck about with this I'm finding a few new things out. I sent the process a ^Z, which caused the process to begin running away. Then I sent it a kill -stop and waited for the process to stop completely. Then I ran gcore, and although the first few stack frames are probably caused by the stop signal, the last stack frame may be telling: Cannot get thread info: generic error (gdb) bt #0 0x480a0090 in __error () from /usr/lib/libpthread.so.2 #1 0x4808d074 in sigaction () from /usr/lib/libpthread.so.2 #2 0x4808d624 in sigaction () from /usr/lib/libpthread.so.2 #3 0x48097bd0 in pthread_mutexattr_init () from /usr/lib/libpthread.so.2 #4 0x00000000 in ?? () Looks like sending a ^Z may be causing Java to dereference a null. I'll continue investigating to see what else can be discovered. -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.1 http://web.morons.org/ From owner-freebsd-java@FreeBSD.ORG Tue Dec 6 23:48:48 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F39E316A41F; Tue, 6 Dec 2005 23:48:47 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (morons.org [64.147.161.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id E715643D49; Tue, 6 Dec 2005 23:48:33 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: from localhost (localhost.morons.org [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 7D86117044; Tue, 6 Dec 2005 15:48:32 -0800 (PST) Received: from turing.morons.org ([127.0.0.1]) by localhost (turing.morons.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23238-03; Tue, 6 Dec 2005 15:48:31 -0800 (PST) Received: by turing.morons.org (Postfix, from userid 1001) id 476941702F; Tue, 6 Dec 2005 15:48:31 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 44D111702D; Tue, 6 Dec 2005 15:48:31 -0800 (PST) Date: Tue, 6 Dec 2005 15:48:31 -0800 (PST) From: freebsd@spatula.net X-X-Sender: spatula@turing To: bug-followup@FreeBSD.org In-Reply-To: <20051206153047.J2752@turing> Message-ID: <20051206154223.C2752@turing> References: <200512062320.jB6NK9RS075945@freefall.freebsd.org> <20051206153047.J2752@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: amavisd-new at morons.org Cc: freebsd-java@FreeBSD.org Subject: Re: threads/84778: libpthread busy loop/hang with Java when handling signals and Runtime.exec X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 23:48:48 -0000 I have found the problem, at long last. Resin uses a custom JNI library for acceleration of some features. In their compilation process, they specify -lc_r for the threading library used in their JNI library. This in turn seems to be the cause of unexpected and erratic behaviour when running Java with libpthread, and probably explains why the problems completely disappear when mapping Java to use libc_r. Modifying the makefile to link the JNI library to libpthread completely alleviates the signal handling problems. The process can be suspended and resumed from the keyboard ad-nauseam. Removing the JNI library from the picture entirely has the same effect (Resin will use the native Java code if the JNI library cannot be loaded.) I will follow up with the Resin folks and submit a patch to detect the thread library that is in use and use that one when compiling the JNI library. Please close this bug. Nick -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.1 http://web.morons.org/ From owner-freebsd-java@FreeBSD.ORG Wed Dec 7 09:25:38 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17A9616A41F for ; Wed, 7 Dec 2005 09:25:38 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id C981143D58 for ; Wed, 7 Dec 2005 09:25:36 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id jB79PYZm079675; Wed, 7 Dec 2005 11:25:34 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (pc158.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id jB79PrYs016267; Wed, 7 Dec 2005 11:25:53 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <4396AA89.8000206@ebs.gr> Date: Wed, 07 Dec 2005 11:25:29 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd@spatula.net References: <200512062320.jB6NK9RS075945@freefall.freebsd.org> <20051206153047.J2752@turing> <20051206154223.C2752@turing> In-Reply-To: <20051206154223.C2752@turing> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: threads/84778: libpthread busy loop/hang with Java when handling signals and Runtime.exec X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 09:25:38 -0000 freebsd@spatula.net wrote: > I have found the problem, at long last. > > Resin uses a custom JNI library for acceleration of some features. In > their compilation process, they specify -lc_r for the threading library > used in their JNI library. > > This in turn seems to be the cause of unexpected and erratic behaviour > when running Java with libpthread, and probably explains why the > problems completely disappear when mapping Java to use libc_r. > > Modifying the makefile to link the JNI library to libpthread completely > alleviates the signal handling problems. The process can be suspended > and resumed from the keyboard ad-nauseam. Removing the JNI library from > the picture entirely has the same effect (Resin will use the native Java > code if the JNI library cannot be loaded.) > > I will follow up with the Resin folks and submit a patch to detect the > thread library that is in use and use that one when compiling the JNI > library. > > Please close this bug. > > Nick Congratulations for your debugging work and thank you for being so persistent! Panagiotis From owner-freebsd-java@FreeBSD.ORG Wed Dec 7 14:05:03 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6217016A41F for ; Wed, 7 Dec 2005 14:05:03 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57C8F43D81 for ; Wed, 7 Dec 2005 14:04:35 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id jB7E4OZm080464; Wed, 7 Dec 2005 16:04:24 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (pc158.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id jB7E4hk3019402; Wed, 7 Dec 2005 16:04:44 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <4396EBE3.3060806@ebs.gr> Date: Wed, 07 Dec 2005 16:04:19 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jonathan Chen References: <43942C07.1030604@ebs.gr> <20051205185203.GC54769@osiris.chen.org.nz> In-Reply-To: <20051205185203.GC54769@osiris.chen.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: java Subject: Re: JBoss4 installation weirdness X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 14:05:03 -0000 Jonathan Chen wrote: > On Mon, Dec 05, 2005 at 02:01:11PM +0200, Panagiotis Astithas wrote: > >>As I found out the hard way today, jboss4 installs different things >>depending on whether it is being built using jdk14 or jdk15. In the >>latter case you get EJB3 stuff that (unfortunately for me) include old >>versions of commons-stuff which may create conflicts with a deployed >>app, thanks to the funky jboss classloader architecture. > > > Have you tried tweaking the config for conf/jboss-service.xml and > deploy/ear-deployer.xml as described in: > > http://docs.jboss.com/jbossas/whatsnew40/html/ > > See if this fixes your class-loading problems. > > Cheers. Thanks, this seems to fix my class-loading issues (although such a workaround didn't use to work on jboss3). So if the problem with the startup script (hardcoded jdk path in the executable) gets resolved, we can keep building the ejb3, aop, annotations, etc. stuff if the proper jdk is used when building. It's almost like having your cake and eating it too :-) Thanks, Panagiotis From owner-freebsd-java@FreeBSD.ORG Wed Dec 7 17:15:02 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0567016A41F for ; Wed, 7 Dec 2005 17:15:02 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 485C943D75 for ; Wed, 7 Dec 2005 17:14:56 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 07 Dec 2005 17:14:55 -0000 Received: from p54A7D7D5.dip.t-dialin.net (EHLO [192.168.0.211]) [84.167.215.213] by mail.gmx.net (mp033) with SMTP; 07 Dec 2005 18:14:55 +0100 X-Authenticated: #5465401 Message-ID: <4397187B.1050107@gmx.de> Date: Wed, 07 Dec 2005 18:14:35 +0100 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org X-Enigmail-Version: 0.93.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3E8369B150BAD4FE7B1C9EB8" X-Y-GMX-Trusted: 0 Subject: java/jdk15 fails X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 17:15:02 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3E8369B150BAD4FE7B1C9EB8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I suspect this problem is caused by changes in Firefox 1.5. Here's the output. The only build setting is WITH_MOZILLA=firefox . /usr/X11R6/include/firefox/nsDebug.h:207:1: warning: this is the location of the previous definition ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: In member function `virtual JDresult CNSAdapter_JVMManager::GetCurrentThread(JDUint32*)': ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: error : `nsPluginThread' undeclared (first use this function) ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: error : (Each undeclared identifier is reported only once for each function it appears in.) ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: error : `pPluginThread' undeclared (first use this function) ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: In member function `virtual JDresult CNSAdapter_JVMManager::PostEvent(JDUint32, IRunnable *, JDBool)': ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: error : invalid conversion from `JDUint32' to `PRThread*' ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: error : initializing argument 1 of `virtual nsresult nsIThreadManager::PostEvent(PRT hread*, nsIRunnable*, PRBool)' gmake[5]: *** [/mnt/vault/ports/java/jdk15/work/control/build/bsd-i586/tmp/deplo y/plugin/adapter/ns7/obj/CNSAdapter_JVMManager.o] Error 1 gmake[5]: Leaving directory `/mnt/vault/ports/java/jdk15/work/deploy/make/plugin /adapter/ns7-adapter' gmake[4]: *** [optimized] Error 2 gmake[4]: Leaving directory `/mnt/vault/ports/java/jdk15/work/deploy/make/plugin /adapter/ns7-adapter' gmake[3]: *** [ns7-adapter] Error 2 gmake[3]: Leaving directory `/mnt/vault/ports/java/jdk15/work/deploy/make/plugin /adapter' gmake[2]: *** [adapter] Error 2 gmake[2]: Leaving directory `/mnt/vault/ports/java/jdk15/work/deploy/make/plugin ' gmake[1]: *** [plugin-all] Error 2 gmake[1]: Leaving directory `/mnt/vault/ports/java/jdk15/work/deploy/make' gmake: *** [deploy-build] Error 2 *** Error code 2 Stop in /mnt/vault/ports/java/jdk15. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade72376.0 mak e ** Fix the problem and try again. --------------enig3E8369B150BAD4FE7B1C9EB8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDlxiAfMDIb41/+S0RAkc7AJ9YAH1SWnzacyDA1BhyernATprtJACeNp7R hjIIAFvCVAhyiG4ZR3lWdh0= =eGxs -----END PGP SIGNATURE----- --------------enig3E8369B150BAD4FE7B1C9EB8-- From owner-freebsd-java@FreeBSD.ORG Wed Dec 7 21:31:52 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1229316A41F for ; Wed, 7 Dec 2005 21:31:52 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F69C43D95 for ; Wed, 7 Dec 2005 21:31:43 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp6-g19.free.fr (Postfix) with SMTP id DCD18181F8 for ; Wed, 7 Dec 2005 22:31:41 +0100 (CET) Message-ID: <000b01c5fb75$9bf81780$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: References: <001801c5f8c6$b89b3680$0400a8c0@iava><4392DC45.50402@ebs.gr> <20051204233124.46e6cdfc.nork@FreeBSD.org> Date: Wed, 7 Dec 2005 22:31:38 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Cc: Subject: apache tomcat mod_jk on FreeBSD 6.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 21:31:52 -0000 Hi, I need to install the connection between Apache21 and Tomcat 5.5.12 with mod_jk. Which package should I install ? /usr/ports/www/mod_jk-apache2 ? install -o root -g wheel -m 444 /usr/ports/www/mod_jk2-apache2/work/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/../conf/workers2.properties /usr/local/etc/apache2/workers2.properties.sample install: /usr/local/etc/apache2/workers2.properties.sample: No such file or directory *** Error code 71 I think I can find my way to connect Apache and Tomcat after the good installation of mod_jk. Thanks in advance Frédéric From owner-freebsd-java@FreeBSD.ORG Wed Dec 7 22:08:57 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9412616A41F for ; Wed, 7 Dec 2005 22:08:57 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0753943D5C for ; Wed, 7 Dec 2005 22:08:53 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp5-g19.free.fr (Postfix) with SMTP id 71E3A17197 for ; Wed, 7 Dec 2005 23:08:52 +0100 (CET) Message-ID: <001601c5fb7a$cd81b9a0$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: Date: Wed, 7 Dec 2005 23:08:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Cc: Subject: *** need help *** apache tomcat mod_jk FreeBSD 6.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 22:08:57 -0000 I tried to compile the latest mod_jk downloaded from: http://tomcat.apache.org/connectors-doc/ ./configure --with-apxs=/usr/local/sbin/apxs Making all in common /bin/sh /usr/local/share/apache21/build/libtool --silent --mode=compile gcc -I/usr/local/include/apache21 -g -O2 -O2 -fno-strict-aliasing -pipe -DHAVE_APR -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr/include -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr-util/include -g -O2 -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre -I /include -I /include/ -c ./jk_ajp12_worker.c -o ./jk_ajp12_worker.lo /usr/local/share/apache21/build/libtool: Can't open /usr/local/share/apache21/build/libtool: No such file or directory *** Error code 2 Stop in /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native/common. *** Error code 1 Stop in /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native. so so can you help me to compile a mof_jk for Apache21 and Tomcat5.5.12 ? Many thanks in advance :+) Well I am used to deal with Java and Tomcat. I add preference for FreeBSD but as there are so ... many ??? issues with Java/Tomcat/FreeBSd maybe I have better to use a Linux Redhat something operating systems to make production server. What is a pity to think that! Is it reasonable to use FreeBSd for a Java/Tomcat/Apache server ? I already compile and install with success JDK1.4, Tomcat 5.5.12 and even SQLITE wrapper for Java under FreeBSD. The next step and the last in mod_jk ... I love FreeBSD so can you help me ? Thanks in advance Frédéric ----- Original Message ----- From: "Frédéric de la Goublaye" To: Sent: Wednesday, December 07, 2005 10:31 PM Subject: apache tomcat mod_jk on FreeBSD 6.0 > Hi, > > I need to install the connection between Apache21 and Tomcat 5.5.12 with > mod_jk. > > Which package should I install ? /usr/ports/www/mod_jk-apache2 ? > > install -o root -g wheel -m 444 > /usr/ports/www/mod_jk2-apache2/work/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/../conf/workers2.properties > /usr/local/etc/apache2/workers2.properties.sample > install: /usr/local/etc/apache2/workers2.properties.sample: No such file > or directory > *** Error code 71 > > I think I can find my way to connect Apache and Tomcat after the good > installation of mod_jk. > > Thanks in advance > > Frédéric From owner-freebsd-java@FreeBSD.ORG Thu Dec 8 01:06:01 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D35F16A41F for ; Thu, 8 Dec 2005 01:06:01 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E83943D58 for ; Thu, 8 Dec 2005 01:05:48 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (localhost [127.0.0.1]) by vault.mel.jumbuck.com (Postfix) with ESMTP id 6F2E38A00D; Thu, 8 Dec 2005 12:05:47 +1100 (EST) Received: from [192.168.46.52] (unknown [192.168.46.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vault.mel.jumbuck.com (Postfix) with ESMTP id 3AC5C8A00A; Thu, 8 Dec 2005 12:05:47 +1100 (EST) Message-ID: <439786EB.5000503@roq.com> Date: Thu, 08 Dec 2005 12:05:47 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051202 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= References: <001601c5fb7a$cd81b9a0$0400a8c0@iava> In-Reply-To: <001601c5fb7a$cd81b9a0$0400a8c0@iava> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-java@FreeBSD.org Subject: Re: *** need help *** apache tomcat mod_jk FreeBSD 6.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 01:06:01 -0000 Use Apache2.2 which is the latest release stable version of Apache over the 2.1 series which are just experimental betas and should never be used in an production environment, but the 2.1 series have shown that 2.2 is really ready to go straight into production use as far as I am concerned. I have been testing with Apache 2.2 which seems to have tons of little things that are much better about it over the old 2.0 Apache series, one big one is the new built in AJP protocol module for Tomcat, I am using Tomcat 5.5.9 which appears to work better with AJP then Tomcat 5.0.x. As long as you aren't under extereme load AJP gives the best performance but if you really push the load on the server you might get 503 status errors in Apache logs, but using AJP does perform more requests/sec because it uses less CPU over using mod_proxy HTTP style connectors to Tomcat. I use a portupgrade command for the apache22 port to install the proxy modules and worker MPM via a single portupgrade command. portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' /usr/ports/www/apache22 Make sure you have 'LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so' enabled in httpd.conf Then in the virtual host directive of Apache link it with Tomcat 5.5.9 like so ProxyPass /javacontext ajp://127.0.0.1:8009/javacontext Cheers, Mike Frédéric de la Goublaye wrote: > I tried to compile the latest mod_jk downloaded from: > http://tomcat.apache.org/connectors-doc/ > > ./configure --with-apxs=/usr/local/sbin/apxs > > Making all in common > /bin/sh /usr/local/share/apache21/build/libtool --silent > --mode=compile gcc -I/usr/local/include/apache21 -g -O2 -O2 > -fno-strict-aliasing -pipe -DHAVE_APR > -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr/include > -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr-util/include > -g -O2 -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre -I > /include -I /include/ -c ./jk_ajp12_worker.c -o ./jk_ajp12_worker.lo > /usr/local/share/apache21/build/libtool: Can't open > /usr/local/share/apache21/build/libtool: No such file or directory > *** Error code 2 > > Stop in > /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native/common. > > *** Error code 1 > > Stop in > /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native. > > > so so can you help me to compile a mof_jk for Apache21 and > Tomcat5.5.12 ? > > Many thanks in advance :+) > > Well I am used to deal with Java and Tomcat. > I add preference for FreeBSD but as there are so ... many ??? issues > with Java/Tomcat/FreeBSd maybe I have better to use a Linux Redhat > something operating systems to make production server. What is a pity > to think that! > > Is it reasonable to use FreeBSd for a Java/Tomcat/Apache server ? > > I already compile and install with success JDK1.4, Tomcat 5.5.12 and > even SQLITE wrapper for Java under FreeBSD. The next step and the last > in mod_jk ... > > I love FreeBSD so can you help me ? > > Thanks in advance > > Frédéric > > > ----- Original Message ----- From: "Frédéric de la Goublaye" > > To: > Sent: Wednesday, December 07, 2005 10:31 PM > Subject: apache tomcat mod_jk on FreeBSD 6.0 > > >> Hi, >> >> I need to install the connection between Apache21 and Tomcat 5.5.12 >> with mod_jk. >> >> Which package should I install ? /usr/ports/www/mod_jk-apache2 ? >> >> install -o root -g wheel -m 444 >> /usr/ports/www/mod_jk2-apache2/work/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/../conf/workers2.properties >> /usr/local/etc/apache2/workers2.properties.sample >> install: /usr/local/etc/apache2/workers2.properties.sample: No such >> file or directory >> *** Error code 71 >> >> I think I can find my way to connect Apache and Tomcat after the good >> installation of mod_jk. >> >> Thanks in advance >> >> Frédéric > > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Thu Dec 8 19:13:15 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66FEA16A42C for ; Thu, 8 Dec 2005 19:13:15 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 263C343D5E for ; Thu, 8 Dec 2005 19:12:45 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp6-g19.free.fr (Postfix) with SMTP id 0C85018381 for ; Thu, 8 Dec 2005 20:12:32 +0100 (CET) Message-ID: <007301c5fc2b$55c45290$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: Date: Thu, 8 Dec 2005 20:12:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Cc: Subject: performance question X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 19:13:15 -0000 Hi, I used FreeBSD 6.0. I need to use Tomcat to serve jsp servlet and database. I choose sqlite because the data will also be accessible via a local C++ application on the user computer. I wonder what is the fastest solution : - use Tomcat alone on port 80 - use Tomcat with Apache22 What is the best combination for using Tomcat ? Alone or with Apache ? I know that not using Apache may avoid me from using all nice PHP solutions like phpBB and so on ... also PHP5 can used sqlite but I still wonder what is the fastest solution. Thanks for help Frédéric From owner-freebsd-java@FreeBSD.ORG Thu Dec 8 20:13:48 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 332FC16A420 for ; Thu, 8 Dec 2005 20:13:48 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0614F43D7C for ; Thu, 8 Dec 2005 20:13:46 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id jB8KDjSU016755; Thu, 8 Dec 2005 13:13:45 -0700 (MST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id jB8KDiJo016754; Thu, 8 Dec 2005 13:13:44 -0700 (MST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 8 Dec 2005 13:13:44 -0700 From: Greg Lewis To: "[LoN]Kamikaze" Message-ID: <20051208201344.GA16732@misty.eyesbeyond.com> References: <4397187B.1050107@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4397187B.1050107@gmx.de> User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@FreeBSD.org Subject: Re: java/jdk15 fails X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 20:13:48 -0000 On Wed, Dec 07, 2005 at 06:14:35PM +0100, [LoN]Kamikaze wrote: > I suspect this problem is caused by changes in Firefox 1.5. It is. And once you get past this one there are more. I'm slowly working through them all. > Here's the output. The only build setting is WITH_MOZILLA=firefox . > > /usr/X11R6/include/firefox/nsDebug.h:207:1: warning: this is the > location of the > previous definition > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: > In member > function `virtual JDresult > CNSAdapter_JVMManager::GetCurrentThread(JDUint32*)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error > : `nsPluginThread' undeclared (first use this function) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error > : (Each undeclared identifier is reported only once for each function it > appears > in.) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error > : `pPluginThread' undeclared (first use this function) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: > In member > function `virtual JDresult CNSAdapter_JVMManager::PostEvent(JDUint32, > IRunnable > *, JDBool)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error > : invalid conversion from `JDUint32' to `PRThread*' > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error > : initializing argument 1 of `virtual nsresult > nsIThreadManager::PostEvent(PRT > hread*, nsIRunnable*, PRBool)' > gmake[5]: *** > [/mnt/vault/ports/java/jdk15/work/control/build/bsd-i586/tmp/deplo > y/plugin/adapter/ns7/obj/CNSAdapter_JVMManager.o] Error 1 > gmake[5]: Leaving directory > `/mnt/vault/ports/java/jdk15/work/deploy/make/plugin > /adapter/ns7-adapter' > gmake[4]: *** [optimized] Error 2 > gmake[4]: Leaving directory > `/mnt/vault/ports/java/jdk15/work/deploy/make/plugin > /adapter/ns7-adapter' > gmake[3]: *** [ns7-adapter] Error 2 > gmake[3]: Leaving directory > `/mnt/vault/ports/java/jdk15/work/deploy/make/plugin > /adapter' > gmake[2]: *** [adapter] Error 2 > gmake[2]: Leaving directory > `/mnt/vault/ports/java/jdk15/work/deploy/make/plugin > ' > gmake[1]: *** [plugin-all] Error 2 > gmake[1]: Leaving directory `/mnt/vault/ports/java/jdk15/work/deploy/make' > gmake: *** [deploy-build] Error 2 > *** Error code 2 > > Stop in /mnt/vault/ports/java/jdk15. > ** Command failed [exit code 1]: /usr/bin/script -qa > /tmp/portupgrade72376.0 mak > e > ** Fix the problem and try again. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Fri Dec 9 00:00:02 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A708416A425 for ; Fri, 9 Dec 2005 00:00:02 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2925E43DE5 for ; Thu, 8 Dec 2005 23:59:41 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (localhost [127.0.0.1]) by vault.mel.jumbuck.com (Postfix) with ESMTP id ACED78A027; Fri, 9 Dec 2005 10:59:38 +1100 (EST) Received: from [192.168.46.52] (unknown [192.168.46.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vault.mel.jumbuck.com (Postfix) with ESMTP id 911EA8A01F; Fri, 9 Dec 2005 10:59:38 +1100 (EST) Message-ID: <4398C8EA.9040204@roq.com> Date: Fri, 09 Dec 2005 10:59:38 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= References: <007301c5fc2b$55c45290$0400a8c0@iava> In-Reply-To: <007301c5fc2b$55c45290$0400a8c0@iava> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-java@FreeBSD.org Subject: Re: performance question X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 00:00:02 -0000 I sent an email to you about this for your last post Here it is below, even though your kind of asking a slightly different set of questions, but to answer some of your other questions here I go. I have tested http Java direct over the Internet with 'ab' and for what ever reason it just returns less requests/sec compared to using Apache infront of it, one possibility of why this its like that is maybe Java uses more CPU time dealing with a higher latency tcp connection. There are many advantages of running Apache in front of tomcat, such as being able to server static data directly, for example just put ProxyPass /static/ ! This will not pass anything in the whole static dir to Tomcat and have Apache server it directly it self. I have being using Apache/Tomcat setups in apache 1.3/2.0/2.1/2.2 and Tomcats 3.x 4.1.x 5.0.x and 5.5.x And I believe that the latest Apache 2.2 and Tomcat 5.5.9 are the best combination, mod_proxy_ajp for connectors does give best performance but your more likely to get the odd few 503 status errors to peoples browsers under high load. Also you can run php in Apache alongside Tomcat. Old email Use Apache2.2 which is the latest release stable version of Apache over the 2.1 series which are just experimental betas and should never be used in an production environment, but the 2.1 series have shown that 2.2 is really ready to go straight into production use as far as I am concerned. I have been testing with Apache 2.2 which seems to have tons of little things that are much better about it over the old 2.0 Apache series, one big one is the new built in AJP protocol module for Tomcat, I am using Tomcat 5.5.9 which appears to work better with AJP then Tomcat 5.0.x. As long as you aren't under extreme load AJP gives the best performance but if you really push the load on the server you might get 503 status errors in Apache logs, but using AJP does perform more requests/sec because it uses less CPU over using mod_proxy HTTP style connectors to Tomcat. I use a portupgrade command for the apache22 port to install the proxy modules and worker MPM via a single portupgrade command. portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' /usr/ports/www/apache22 Make sure you have 'LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so' enabled in httpd.conf Then in the virtual host directive of Apache link it with Tomcat 5.5.9 like so ProxyPass /javacontext ajp://127.0.0.1:8009/javacontext Cheers, Mike Frédéric de la Goublaye wrote: > Hi, > > I used FreeBSD 6.0. > > I need to use Tomcat to serve jsp servlet and database. > I choose sqlite because the data will also > be accessible via a local C++ application on the user computer. > > I wonder what is the fastest solution : > - use Tomcat alone on port 80 > - use Tomcat with Apache22 > > What is the best combination for using Tomcat ? > Alone or with Apache ? > > I know that not using Apache may avoid me from using all nice PHP > solutions like phpBB and so on ... also PHP5 can used sqlite > > but I still wonder what is the fastest solution. > > Thanks for help > > Frédéric > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Fri Dec 9 05:55:13 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4ABD616A437 for ; Fri, 9 Dec 2005 05:55:13 +0000 (GMT) (envelope-from akbeech@gmail.com) Received: from vfemail.net (miwi2dsl-a234.wi.tds.net [216.170.248.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id D478B43D9E for ; Fri, 9 Dec 2005 05:54:59 +0000 (GMT) (envelope-from akbeech@gmail.com) Received: (qmail 83187 invoked by uid 85); 9 Dec 2005 05:54:52 -0000 Received: from akbeech@gmail.com by mail.vfemail.net by uid 0 with qmail-scanner-1.16 (clamscan: 0.75.1. spamassassin: 2.63. Clear:. Processed in 5.413784 secs); 09 Dec 2005 05:54:52 -0000 Received: from unknown (HELO ?192.168.241.126?) (alaska@vfemail.net@24.237.206.237) by miwi2dsl-a234.wi.tds.net with RC4-MD5 encrypted SMTP; 9 Dec 2005 05:54:47 -0000 From: Beecher Rintoul Organization: NorthWind Communications To: freebsd-java@freebsd.org User-Agent: KMail/1.8.3 MIME-Version: 1.0 Date: Thu, 8 Dec 2005 20:54:32 -0900 Content-Type: multipart/signed; boundary="nextPart2909908.vZcZZdTovv"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512082054.43817.akbeech@gmail.com> Subject: jdk15 Build Error X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 05:55:13 -0000 --nextPart2909908.vZcZZdTovv Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Make WITH_MOZILLA=3Dfirefox The latest port of jdk15 errors with the following: gmake[5]: Entering directory=20 `/usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' /usr/bin/g++ -fPIC -DCC_NOEX -W -Wall -Wno-unused -Wno-parentheses =20 =2DI/usr/ports/java/jdk15/work/control/build/bsd-i586/include=20 =2DI/usr/ports/java/jdk15/work/control/build/bsd-i586/include/freebsd=20 =2DI/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin=20 =2DI../../../../src/plugin/solaris/common=20 =2DI../../../../src/plugin/share/adapter/ns7=20 =2DI../../../../src/plugin/share/adapter/common=20 =2DI../../../../src/plugin/share/adapter/include=20 =2DI../../../../src/plugin/solaris/nscore -I../../../../src/plugin/share/jp= iapi=20 =2DI/usr/X11R6/include/firefox -I/usr/X11R6/include/firefox/caps=20 =2DI/usr/X11R6/include/firefox/liveconnect -I/usr/X11R6/include/firefox/nsp= r=20 =2DI/usr/X11R6/include/firefox/oji -I/usr/X11R6/include/firefox/plugin=20 =2DI/usr/X11R6/include/firefox/xpcom -I/usr/local/include/nspr=20 =2DI/usr/X11R6/include -I/usr/local/include=20 =2DI../../../../../j2se/make/../src/solaris/javavm/export=20 =2DI../../../../../j2se/make/../src/share/javavm/export=20 =2DI../../../../../j2se/make/../src/share/javavm/include=20 =2DI../../../../../j2se/make/../src/solaris/javavm/include -D_GNU_SOURCE=20 =2DDXP_UNIX -D_ALLBSD_SOURCE -DPLUGIN_NODOTVERSION=3D\"150\"=20 =2DDPLUGIN_VERSION=3D\"1.5.0\" -DVERSION=3D\"1.5.0-p2-root_08_dec_2005_10_1= 3\"=20 =2DDRELEASE=3D\"1.5.0-p2\" -DARCH=3D\"i586\" -DLIBARCH=3D\"i386\" -c=20 =2Do /usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/ad= apter/ns7/obj/CNSAdapter_JVMManager.o ../../../../src/plugin/share/adapter= /common/CNSAdapter_JVMManager.cpp In file included=20 from ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:= 17: =2E./../../../src/plugin/share/adapter/ns7/StdAfx.h:61:1: warning:=20 "NS_ASSERTION" redefined In file included from ../../../../src/plugin/share/adapter/ns7/StdAfx.h:59, =20 from ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:= 17: /usr/X11R6/include/firefox/nsDebug.h:208:1: warning: this is the location o= f=20 the previous definition In file included=20 from ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:= 17: =2E./../../../src/plugin/share/adapter/ns7/StdAfx.h:62:1: warning:=20 "NS_PRECONDITION" redefined In file included from ../../../../src/plugin/share/adapter/ns7/StdAfx.h:59, =20 from ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:= 17: /usr/X11R6/include/firefox/nsDebug.h:207:1: warning: this is the location o= f=20 the previous definition =2E./../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: In= =20 member function `virtual JDresult=20 CNSAdapter_JVMManager::GetCurrentThread(JDUint32*)': =2E./../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142= :=20 error: `nsPluginThread' undeclared (first use this function) =2E./../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142= :=20 error: (Each undeclared identifier is reported only once for each function = it=20 appears in.) =2E./../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142= :=20 error: `pPluginThread' undeclared (first use this function) =2E./../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: In= =20 member function `virtual JDresult CNSAdapter_JVMManager::PostEvent(JDUint32= ,=20 IRunnable*, JDBool)': =2E./../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172= :=20 error: invalid conversion from `JDUint32' to `PRThread*' =2E./../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172= :=20 error: initializing argument 1 of `virtual nsresult=20 nsIThreadManager::PostEvent(PRThread*, nsIRunnable*, PRBool)' gmake[5]: ***=20 [/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/adapte= r/ns7/obj/CNSAdapter_JVMManager.o]=20 Error 1 gmake[5]: Leaving directory=20 `/usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' gmake[4]: *** [optimized] Error 2 gmake[4]: Leaving directory=20 `/usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' gmake[3]: *** [ns7-adapter] Error 2 gmake[3]: Leaving directory=20 `/usr/ports/java/jdk15/work/deploy/make/plugin/adapter' gmake[2]: *** [adapter] Error 2 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make/plugin' gmake[1]: *** [plugin-all] Error 2 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make' gmake: *** [deploy-build] Error 2 *** Error code 2 The previous port built and installed with no problem. System: FreeBSD stargate.akparadise.com 7.0-CURRENT FreeBSD 7.0-CURRENT #29= :=20 Tue Dec 6 23:04:21=20 Please cc me as I'm not on this list. Thanks, Beech =2D-=20 =2D------------------------------------------------------------------------= =2D------------- Beech Rintoul - System Administrator - akbeech@gmail.com /"\ ASCII Ribbon Campaign | NorthWind Communications \ / - NO HTML/RTF in e-mail | 201 East 9th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://akparadise.byethost33.com =2D------------------------------------------------------------------------= =2D------------- --nextPart2909908.vZcZZdTovv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDmRwjVq19LUoGB+MRAuynAKCMAH8JhhCmJoU7v+dVCumzPka5SwCfaKl2 GDRQrutkdMR0Ia5PiqyGRpA= =V4u8 -----END PGP SIGNATURE----- --nextPart2909908.vZcZZdTovv-- From owner-freebsd-java@FreeBSD.ORG Fri Dec 9 09:05:18 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6380516A41F for ; Fri, 9 Dec 2005 09:05:18 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 1EAB543D62 for ; Fri, 9 Dec 2005 09:05:16 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 09 Dec 2005 09:05:14 -0000 Received: from p54A7E215.dip.t-dialin.net (EHLO [192.168.0.211]) [84.167.226.21] by mail.gmx.net (mp018) with SMTP; 09 Dec 2005 10:05:14 +0100 X-Authenticated: #5465401 Message-ID: <439948B9.2020902@gmx.de> Date: Fri, 09 Dec 2005 10:04:57 +0100 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org X-Enigmail-Version: 0.93.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA28E2C4D5369DC71A0BD307C" X-Y-GMX-Trusted: 0 Subject: Re: java/jdk15 fails X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 09:05:18 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA28E2C4D5369DC71A0BD307C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thank you for keeping me informed. I realy appreciate that someone is making the jdks available on FreeBSD. I depend on them and would have to switch to another system without you. --------------enigA28E2C4D5369DC71A0BD307C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDmUi9fMDIb41/+S0RApFVAJ9BH2rX+qAn4TzTxsVG2DV6UxAS5gCfX2v4 KaJGt23aJbvaca5Dkw/Px8c= =qL+q -----END PGP SIGNATURE----- --------------enigA28E2C4D5369DC71A0BD307C-- From owner-freebsd-java@FreeBSD.ORG Fri Dec 9 10:40:53 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5889016A41F for ; Fri, 9 Dec 2005 10:40:53 +0000 (GMT) (envelope-from akbeech@gmail.com) Received: from vfemail.net (miwi2dsl-a234.wi.tds.net [216.170.248.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5B1B43D66 for ; Fri, 9 Dec 2005 10:40:44 +0000 (GMT) (envelope-from akbeech@gmail.com) Received: (qmail 97214 invoked by uid 85); 9 Dec 2005 10:40:43 -0000 Received: from akbeech@gmail.com by mail.vfemail.net by uid 0 with qmail-scanner-1.16 (clamscan: 0.75.1. spamassassin: 2.63. Clear:. Processed in 2.604092 secs); 09 Dec 2005 10:40:43 -0000 Received: from unknown (HELO ?192.168.241.126?) (alaska@vfemail.net@24.237.206.237) by miwi2dsl-a234.wi.tds.net with RC4-MD5 encrypted SMTP; 9 Dec 2005 10:40:40 -0000 From: Beecher Rintoul Organization: NorthWind Communications To: freebsd-java@freebsd.org Date: Fri, 9 Dec 2005 01:40:08 -0900 User-Agent: KMail/1.8.3 References: <200512082054.43817.akbeech@gmail.com> In-Reply-To: <200512082054.43817.akbeech@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5758918.Kcqkz6M0Nu"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512090140.34397.akbeech@gmail.com> Cc: phantom@freebsd.org Subject: Re: jdk15 Build Error X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 10:40:53 -0000 --nextPart5758918.Kcqkz6M0Nu Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 08 December 2005 08:54 pm, Beecher Rintoul wrote: > Make WITH_MOZILLA=3Dfirefox > The latest port of jdk15 errors with the following: > > gmake[5]: Entering directory > `/usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' > /usr/bin/g++ -fPIC -DCC_NOEX -W -Wall -Wno-unused -Wno-parentheses > -I/usr/ports/java/jdk15/work/control/build/bsd-i586/include > -I/usr/ports/java/jdk15/work/control/build/bsd-i586/include/freebsd > -I/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin > -I../../../../src/plugin/solaris/common > -I../../../../src/plugin/share/adapter/ns7 > -I../../../../src/plugin/share/adapter/common > -I../../../../src/plugin/share/adapter/include > -I../../../../src/plugin/solaris/nscore > -I../../../../src/plugin/share/jpiapi -I/usr/X11R6/include/firefox > -I/usr/X11R6/include/firefox/caps > -I/usr/X11R6/include/firefox/liveconnect -I/usr/X11R6/include/firefox/nspr > -I/usr/X11R6/include/firefox/oji -I/usr/X11R6/include/firefox/plugin > -I/usr/X11R6/include/firefox/xpcom -I/usr/local/include/nspr > -I/usr/X11R6/include -I/usr/local/include > -I../../../../../j2se/make/../src/solaris/javavm/export > -I../../../../../j2se/make/../src/share/javavm/export > -I../../../../../j2se/make/../src/share/javavm/include > -I../../../../../j2se/make/../src/solaris/javavm/include -D_GNU_SOURCE > -DXP_UNIX -D_ALLBSD_SOURCE -DPLUGIN_NODOTVERSION=3D\"150\" > -DPLUGIN_VERSION=3D\"1.5.0\" -DVERSION=3D\"1.5.0-p2-root_08_dec_2005_10_1= 3\" > -DRELEASE=3D\"1.5.0-p2\" -DARCH=3D\"i586\" -DLIBARCH=3D\"i386\" -c > -o > /usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/adapt= er >/ns7/obj/CNSAdapter_JVMManager.o=20 > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp In > file included > from > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:17: > ../../../../src/plugin/share/adapter/ns7/StdAfx.h:61:1: warning: > "NS_ASSERTION" redefined > In file included from ../../../../src/plugin/share/adapter/ns7/StdAfx.h:5= 9, > > from > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:17: > /usr/X11R6/include/firefox/nsDebug.h:208:1: warning: this is the location > of the previous definition > In file included > from > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:17: > ../../../../src/plugin/share/adapter/ns7/StdAfx.h:62:1: warning: > "NS_PRECONDITION" redefined > In file included from ../../../../src/plugin/share/adapter/ns7/StdAfx.h:5= 9, > > from > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:17: > /usr/X11R6/include/firefox/nsDebug.h:207:1: warning: this is the location > of the previous definition > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: In > member function `virtual JDresult > CNSAdapter_JVMManager::GetCurrentThread(JDUint32*)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: `nsPluginThread' undeclared (first use this function) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: (Each undeclared identifier is reported only once for each function > it appears in.) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: `pPluginThread' undeclared (first use this function) > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: In > member function `virtual JDresult > CNSAdapter_JVMManager::PostEvent(JDUint32, IRunnable*, JDBool)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error: invalid conversion from `JDUint32' to `PRThread*' > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error: initializing argument 1 of `virtual nsresult > nsIThreadManager::PostEvent(PRThread*, nsIRunnable*, PRBool)' > gmake[5]: *** > [/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/adap= te >r/ns7/obj/CNSAdapter_JVMManager.o] Error 1 > gmake[5]: Leaving directory > `/usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' > gmake[4]: *** [optimized] Error 2 > gmake[4]: Leaving directory > `/usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' > gmake[3]: *** [ns7-adapter] Error 2 > gmake[3]: Leaving directory > `/usr/ports/java/jdk15/work/deploy/make/plugin/adapter' > gmake[2]: *** [adapter] Error 2 > gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make/plugi= n' > gmake[1]: *** [plugin-all] Error 2 > gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make' > gmake: *** [deploy-build] Error 2 > *** Error code 2 > > The previous port built and installed with no problem. > > System: FreeBSD stargate.akparadise.com 7.0-CURRENT FreeBSD 7.0-CURRENT > #29: Tue Dec 6 23:04:21 > > Please cc me as I'm not on this list. > > Thanks, > > Beech I just tried the same upgrade on one of my work machines and it failed in t= he=20 exact same spot. pinnicle# uname -a =46reeBSD pinnicle 6.0-STABLE FreeBSD 6.0-STABLE #8: Wed Nov 23 03:57:42 AK= ST=20 2005 root@pinnicle:/usr/obj/usr/src/sys/PINNICLE i386 =20 Beech =2D-=20 =2D------------------------------------------------------------------------= =2D------------- Beech Rintoul - System Administrator - akbeech@gmail.com /"\ ASCII Ribbon Campaign | NorthWind Communications \ / - NO HTML/RTF in e-mail | 201 East 9th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://akparadise.byethost33.com =2D------------------------------------------------------------------------= =2D------------- --nextPart5758918.Kcqkz6M0Nu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDmV8iVq19LUoGB+MRAgjKAJ9X4s+J0NK6MMm+lSJGGl0CfyXgqACeLSLO jJ8JLcKLn+U9lOaFU9pvSOk= =i6Nj -----END PGP SIGNATURE----- --nextPart5758918.Kcqkz6M0Nu-- From owner-freebsd-java@FreeBSD.ORG Fri Dec 9 17:08:16 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2D0016A41F for ; Fri, 9 Dec 2005 17:08:16 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0089E43D5F for ; Fri, 9 Dec 2005 17:08:15 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id jB9H80R4028705; Fri, 9 Dec 2005 10:08:10 -0700 (MST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id jB9H7vE1028704; Fri, 9 Dec 2005 10:07:57 -0700 (MST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 9 Dec 2005 10:07:57 -0700 From: Greg Lewis To: Beecher Rintoul Message-ID: <20051209170757.GA28680@misty.eyesbeyond.com> References: <200512082054.43817.akbeech@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512082054.43817.akbeech@gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@freebsd.org Subject: Re: jdk15 Build Error X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:08:16 -0000 On Thu, Dec 08, 2005 at 08:54:32PM -0900, Beecher Rintoul wrote: > Make WITH_MOZILLA=firefox > The latest port of jdk15 errors with the following: This is a known problem due to the upgrade of Firefox to 1.5. Build with WITHOUT_WEB set or wait until there is a fix. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Sat Dec 10 02:39:06 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDB3D16A41F for ; Sat, 10 Dec 2005 02:39:06 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9BA443D5D for ; Sat, 10 Dec 2005 02:39:05 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (localhost [127.0.0.1]) by vault.mel.jumbuck.com (Postfix) with ESMTP id 823428A00D for ; Sat, 10 Dec 2005 13:39:04 +1100 (EST) Received: from [192.168.0.4] (ppp157-158.static.internode.on.net [150.101.157.158]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vault.mel.jumbuck.com (Postfix) with ESMTP id A6ED28A00A for ; Sat, 10 Dec 2005 13:39:01 +1100 (EST) Message-ID: <439A3FBD.2060502@roq.com> Date: Sat, 10 Dec 2005 13:38:53 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Java 1.5 crash on Tomcat X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 02:39:07 -0000 Hi all, I have been testing a servlet performance on a Tomcat 5.5.9 setup and when I push the load to a certain level the Tomcat core dumps. libmap.conf [/usr/local/jdk1.5.0/] libpthread.so.2 libthr.so.2 libpthread.so libthr.so Using non libthr setups the Tomcat appears to runs fine, but as far as I can see in my benchmarks not as good performance. The server is a Dell 2850 Dual P4 on EMT64 with AMD64 6.0-STABLE #0: Fri Dec 9 20:28:06 EST 2005 kernel/build. Here is a full dump at my web space, I did this because the log dump is large. http://roq.com/hs_err_pid94896.log Does any one know what this is? Regards, Mike # # An unexpected error has been detected by HotSpot Virtual Machine: # # Internal Error (4E4D4554484F440E435050051B), pid=94896, tid=0x2439e00 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0-p2-root_10_dec_2005_01_18 mixed mode) # An error report file with more information is saved as hs_err_pid94896.log # # If you would like to submit a bug report, please write # a letter to freebsd-java@FreeBSD.org mailing list # From owner-freebsd-java@FreeBSD.ORG Sat Dec 10 06:47:28 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9226816A41F for ; Sat, 10 Dec 2005 06:47:28 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6A9543D64 for ; Sat, 10 Dec 2005 06:47:27 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp2-g19.free.fr (Postfix) with SMTP id 08E645C8DE for ; Sat, 10 Dec 2005 07:47:26 +0100 (CET) Message-ID: <01b101c5fd55$935e3780$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: References: <001601c5fb7a$cd81b9a0$0400a8c0@iava> <439786EB.5000503@roq.com> Date: Sat, 10 Dec 2005 07:47:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Cc: Subject: *** need help *** apache tomcat mod_proxy_ajp.so X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 06:47:28 -0000 Hi, I need to use Apache 22 Tomcat 5.5.12. I already know that I have to include in httpd.conf: LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so How can I install the mod_proxy_ajp.so on FreeBSD 6.0 ? I used this command to install apache22: #cd /usr/ports/www/apache22 #make install clean No error and apache22 is working well # pkg_info | grep portupgrade portupgrade-20041226_9 FreeBSD ports/packages administration and management tool s # pkg_info | grep apache apache-2.2.0_1 Version 2.2 of Apache web server with prefork MPM. # /usr/local/sbin/portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' /usr/ports/www/apache22 [Updating the pkgdb in /var/db/pkg ... - 129 packages found (-1 +1) (...). done] ** No such installed package or port: /usr/ports/www/apache22 # whereis mod_proxy_ajp.so mod_proxy_ajp.so: There is nothing in the /libexec directory # cd /libexec/ # ls ld-elf.so.1 May be I miss something in the apache installation. Thanks for support Frederic ----- Original Message ----- From: "Michael Vince" To: "Frédéric de la Goublaye" Cc: Sent: Thursday, December 08, 2005 2:05 AM Subject: Re: *** need help *** apache tomcat mod_jk FreeBSD 6.0 > Use Apache2.2 which is the latest release stable version of Apache over > the 2.1 series which are just experimental betas and should never be used > in an production environment, but the 2.1 series have shown that 2.2 is > really ready to go straight into production use as far as I am concerned. > > I have been testing with Apache 2.2 which seems to have tons of little > things that are much better about it over the old 2.0 Apache series, one > big one is the new built in AJP protocol module for Tomcat, I am using > Tomcat 5.5.9 which appears to work better with AJP then Tomcat 5.0.x. > As long as you aren't under extereme load AJP gives the best performance > but if you really push the load on the server you might get 503 status > errors in Apache logs, but using AJP does perform more requests/sec > because it uses less CPU over using mod_proxy HTTP style connectors to > Tomcat. > > I use a portupgrade command for the apache22 port to install the proxy > modules and worker MPM via a single portupgrade command. > portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' > /usr/ports/www/apache22 > > Make sure you have 'LoadModule proxy_ajp_module > libexec/apache22/mod_proxy_ajp.so' enabled in httpd.conf > > Then in the virtual host directive of Apache link it with Tomcat 5.5.9 > like so > ProxyPass /javacontext ajp://127.0.0.1:8009/javacontext > > Cheers, > Mike > > Frédéric de la Goublaye wrote: > >> I tried to compile the latest mod_jk downloaded from: >> http://tomcat.apache.org/connectors-doc/ >> >> ./configure --with-apxs=/usr/local/sbin/apxs >> >> Making all in common >> /bin/sh /usr/local/share/apache21/build/libtool --silent --mode=compile >> gcc -I/usr/local/include/apache21 -g -O2 -O2 -fno-strict-aliasing -pipe >> -DHAVE_APR -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr/include >> -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr-util/include >> -g -O2 -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre -I >> /include -I /include/ -c ./jk_ajp12_worker.c -o ./jk_ajp12_worker.lo >> /usr/local/share/apache21/build/libtool: Can't open >> /usr/local/share/apache21/build/libtool: No such file or directory >> *** Error code 2 >> >> Stop in >> /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native/common. >> *** Error code 1 >> >> Stop in >> /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native. >> >> >> so so can you help me to compile a mof_jk for Apache21 and Tomcat5.5.12 >> ? >> >> Many thanks in advance :+) >> >> Well I am used to deal with Java and Tomcat. >> I add preference for FreeBSD but as there are so ... many ??? issues with >> Java/Tomcat/FreeBSd maybe I have better to use a Linux Redhat something >> operating systems to make production server. What is a pity to think >> that! >> >> Is it reasonable to use FreeBSd for a Java/Tomcat/Apache server ? >> >> I already compile and install with success JDK1.4, Tomcat 5.5.12 and even >> SQLITE wrapper for Java under FreeBSD. The next step and the last in >> mod_jk ... >> >> I love FreeBSD so can you help me ? >> >> Thanks in advance >> >> Frédéric >> >> >> ----- Original Message ----- From: "Frédéric de la Goublaye" >> >> To: >> Sent: Wednesday, December 07, 2005 10:31 PM >> Subject: apache tomcat mod_jk on FreeBSD 6.0 >> >> >>> Hi, >>> >>> I need to install the connection between Apache21 and Tomcat 5.5.12 with >>> mod_jk. >>> >>> Which package should I install ? /usr/ports/www/mod_jk-apache2 ? >>> >>> install -o root -g wheel -m 444 >>> /usr/ports/www/mod_jk2-apache2/work/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/../conf/workers2.properties >>> /usr/local/etc/apache2/workers2.properties.sample >>> install: /usr/local/etc/apache2/workers2.properties.sample: No such file >>> or directory >>> *** Error code 71 >>> >>> I think I can find my way to connect Apache and Tomcat after the good >>> installation of mod_jk. >>> >>> Thanks in advance >>> >>> Frédéric >> >> >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > From owner-freebsd-java@FreeBSD.ORG Sat Dec 10 09:05:19 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE8F616A41F for ; Sat, 10 Dec 2005 09:05:18 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5764343D60 for ; Sat, 10 Dec 2005 09:05:13 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (localhost [127.0.0.1]) by vault.mel.jumbuck.com (Postfix) with ESMTP id E81108A00D; Sat, 10 Dec 2005 20:05:11 +1100 (EST) Received: from [192.168.0.2] (ppp157-158.static.internode.on.net [150.101.157.158]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vault.mel.jumbuck.com (Postfix) with ESMTP id 4A3458A00A; Sat, 10 Dec 2005 20:05:11 +1100 (EST) Message-ID: <439A9A47.7090308@roq.com> Date: Sat, 10 Dec 2005 20:05:11 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= References: <001601c5fb7a$cd81b9a0$0400a8c0@iava> <439786EB.5000503@roq.com> <01b101c5fd55$935e3780$0400a8c0@iava> In-Reply-To: <01b101c5fd55$935e3780$0400a8c0@iava> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-java@FreeBSD.org Subject: Re: *** need help *** apache tomcat mod_proxy_ajp.so X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 09:05:19 -0000 Frédéric de la Goublaye wrote: > Hi, > > I need to use Apache 22 Tomcat 5.5.12. > > I already know that I have to include in httpd.conf: > LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so > > How can I install the mod_proxy_ajp.so on FreeBSD 6.0 ? Its built into Apache22 if you use the right build command from ports. > > I used this command to install apache22: > #cd /usr/ports/www/apache22 > #make install clean > This wont do it. > No error and apache22 is working well > > # pkg_info | grep portupgrade > portupgrade-20041226_9 FreeBSD ports/packages administration and > management tool s > > # pkg_info | grep apache > apache-2.2.0_1 Version 2.2 of Apache web server with prefork MPM. > > # /usr/local/sbin/portupgrade -RrN -m 'WITH_MPM=worker > -DWITH_PROXY_MODULES' /usr/ports/www/apache22 > [Updating the pkgdb in /var/db/pkg ... - 129 > packages found (-1 +1) (...). done] > ** No such installed package or port: /usr/ports/www/apache22 > It appears you do have an updated ports try but probably have an out of date port index file, do this cd /usr/ports/ rm INDEX* make fetchindex This will fix that problem. Nuke/backup your current apache22 setup and make sure you remove your /usr/local/etc/apache22/httpd.conf file. You can leave your httpd daemons running and serving requests in the background to minimize down time if its a live service, I have upgraded Apache or added extra modules this way many times with technically zero down time. Now rerun the portupgrade command. /usr/local/sbin/portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' /usr/ports/www/apache22 And check if the module is there, there isn't any reason why it wont be, unless you got errors from portupgrade. ls -al /usr/local/libexec/apache22/mod_proxy_ajp.so Mike > # whereis mod_proxy_ajp.so > mod_proxy_ajp.so: > > There is nothing in the /libexec directory > # cd /libexec/ > # ls > ld-elf.so.1 > > > > > May be I miss something in the apache installation. > > Thanks for support > > Frederic > > ----- Original Message ----- From: "Michael Vince" > To: "Frédéric de la Goublaye" > Cc: > Sent: Thursday, December 08, 2005 2:05 AM > Subject: Re: *** need help *** apache tomcat mod_jk FreeBSD 6.0 > > >> Use Apache2.2 which is the latest release stable version of Apache >> over the 2.1 series which are just experimental betas and should >> never be used in an production environment, but the 2.1 series have >> shown that 2.2 is really ready to go straight into production use as >> far as I am concerned. >> >> I have been testing with Apache 2.2 which seems to have tons of >> little things that are much better about it over the old 2.0 Apache >> series, one big one is the new built in AJP protocol module for >> Tomcat, I am using Tomcat 5.5.9 which appears to work better with AJP >> then Tomcat 5.0.x. >> As long as you aren't under extereme load AJP gives the best >> performance but if you really push the load on the server you might >> get 503 status errors in Apache logs, but using AJP does perform more >> requests/sec because it uses less CPU over using mod_proxy HTTP style >> connectors to Tomcat. >> >> I use a portupgrade command for the apache22 port to install the >> proxy modules and worker MPM via a single portupgrade command. >> portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' >> /usr/ports/www/apache22 >> >> Make sure you have 'LoadModule proxy_ajp_module >> libexec/apache22/mod_proxy_ajp.so' enabled in httpd.conf >> >> Then in the virtual host directive of Apache link it with Tomcat >> 5.5.9 like so >> ProxyPass /javacontext ajp://127.0.0.1:8009/javacontext >> >> Cheers, >> Mike >> >> Frédéric de la Goublaye wrote: >> >>> I tried to compile the latest mod_jk downloaded from: >>> http://tomcat.apache.org/connectors-doc/ >>> >>> ./configure --with-apxs=/usr/local/sbin/apxs >>> >>> Making all in common >>> /bin/sh /usr/local/share/apache21/build/libtool --silent >>> --mode=compile gcc -I/usr/local/include/apache21 -g -O2 -O2 >>> -fno-strict-aliasing -pipe -DHAVE_APR >>> -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr/include >>> -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr-util/include >>> -g -O2 -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre >>> -I /include -I /include/ -c ./jk_ajp12_worker.c -o ./jk_ajp12_worker.lo >>> /usr/local/share/apache21/build/libtool: Can't open >>> /usr/local/share/apache21/build/libtool: No such file or directory >>> *** Error code 2 >>> >>> Stop in >>> /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native/common. >>> >>> *** Error code 1 >>> >>> Stop in >>> /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native. >>> >>> >>> >>> so so can you help me to compile a mof_jk for Apache21 and >>> Tomcat5.5.12 ? >>> >>> Many thanks in advance :+) >>> >>> Well I am used to deal with Java and Tomcat. >>> I add preference for FreeBSD but as there are so ... many ??? issues >>> with Java/Tomcat/FreeBSd maybe I have better to use a Linux Redhat >>> something operating systems to make production server. What is a >>> pity to think that! >>> >>> Is it reasonable to use FreeBSd for a Java/Tomcat/Apache server ? >>> >>> I already compile and install with success JDK1.4, Tomcat 5.5.12 and >>> even SQLITE wrapper for Java under FreeBSD. The next step and the >>> last in mod_jk ... >>> >>> I love FreeBSD so can you help me ? >>> >>> Thanks in advance >>> >>> Frédéric >>> >>> >>> ----- Original Message ----- From: "Frédéric de la Goublaye" >>> >>> To: >>> Sent: Wednesday, December 07, 2005 10:31 PM >>> Subject: apache tomcat mod_jk on FreeBSD 6.0 >>> >>> >>>> Hi, >>>> >>>> I need to install the connection between Apache21 and Tomcat 5.5.12 >>>> with mod_jk. >>>> >>>> Which package should I install ? /usr/ports/www/mod_jk-apache2 ? >>>> >>>> install -o root -g wheel -m 444 >>>> /usr/ports/www/mod_jk2-apache2/work/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/../conf/workers2.properties >>>> /usr/local/etc/apache2/workers2.properties.sample >>>> install: /usr/local/etc/apache2/workers2.properties.sample: No such >>>> file or directory >>>> *** Error code 71 >>>> >>>> I think I can find my way to connect Apache and Tomcat after the >>>> good installation of mod_jk. >>>> >>>> Thanks in advance >>>> >>>> Frédéric >>> >>> >>> >>> _______________________________________________ >>> freebsd-java@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-java >>> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" >> >> >> >> > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Sat Dec 10 12:58:27 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D85B716A41F for ; Sat, 10 Dec 2005 12:58:27 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id D311143D49 for ; Sat, 10 Dec 2005 12:58:25 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id jBACwMZm093360; Sat, 10 Dec 2005 14:58:22 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.13.3/8.12.11) with ESMTP id jBACwfwU075142; Sat, 10 Dec 2005 14:58:41 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <439AD0E7.3030009@ebs.gr> Date: Sat, 10 Dec 2005 14:58:15 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Vince References: <439A3FBD.2060502@roq.com> In-Reply-To: <439A3FBD.2060502@roq.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: Java 1.5 crash on Tomcat X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 12:58:28 -0000 Michael Vince wrote: > Hi all, > I have been testing a servlet performance on a Tomcat 5.5.9 setup and > when I push the load to a certain level the Tomcat core dumps. > libmap.conf > [/usr/local/jdk1.5.0/] > libpthread.so.2 libthr.so.2 > libpthread.so libthr.so > > Using non libthr setups the Tomcat appears to runs fine, but as far as I > can see in my benchmarks not as good performance. > > The server is a Dell 2850 Dual P4 on EMT64 with AMD64 6.0-STABLE #0: Fri > Dec 9 20:28:06 EST 2005 kernel/build. > > Here is a full dump at my web space, I did this because the log dump is > large. > > http://roq.com/hs_err_pid94896.log > > Does any one know what this is? > > Regards, > Mike It would be helpful if you could get a core dump from a jdk built with debug symbols (the WITH_DEBUG option). Cheers, Panagiotis From owner-freebsd-java@FreeBSD.ORG Sat Dec 10 21:09:43 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F29016A41F for ; Sat, 10 Dec 2005 21:09:43 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36D5A43D79 for ; Sat, 10 Dec 2005 21:09:40 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp6-g19.free.fr (Postfix) with SMTP id B78D317F26 for ; Sat, 10 Dec 2005 22:09:38 +0100 (CET) Message-ID: <001a01c5fdce$067b2070$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: Date: Sat, 10 Dec 2005 22:09:35 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: slow server X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 21:09:43 -0000 Hi, Thanks for the previous support on=20 Apache + Tomcat + MySql + Sqlite transfer one java application from a VPS to a dedicated server. The winner is ... the VPS!!!! The winner in speed is the VPS! And you know what ??? The application is slower on the server than on the VPS! Damed!!!! :+) Server: AMD Duron 1,6 Ghz 512 Mo Os:FreeBSD VPS:=20 Model Intel(R) Pentium(R) 4 CPU 2.80GHz=20 256 Mo RAM ok P4 against AMD Duron but why ? I must be only on the VPS to have all the computer ressourse = for me=20 Any optimisation for tomcat myqsl ? Or did I learn something a VPS can be faster than a starter server ... Chears Fr=E9d=E9ric daaaaaammmeddddd!!!!! :+(rrrr