Problem building postfix with mysql

Hi all,
I have a sun fire v880 machine running solaris 10, i need to set an email server using postfix+mysql.
I already installed myql and its working fine. but when trying to build postfix with mysql i get a compliation error, here's wts going on:
bash-3.00# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/bdb/include -I/opt/mysql/mysql/include -DUSE_SASL_AUTH' 'AUXLIBS=-L/opt/mysql/mysql/lib -R/opt/mysql/mysql/lib -lmysqlclient -lz -lm'
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; \
else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr; do \
(set -e; echo "[$i]"; cd $i; rm -f Makefile; \
make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
done;
[src/util]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/global]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/dns]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/tls]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/xsasl]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/milter]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/master]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postfix]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/smtpstone]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/sendmail]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/error]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/pickup]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/cleanup]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/smtpd]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/local]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/trivial-rewrite]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/qmgr]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/oqmgr]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/smtp]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/bounce]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/pipe]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/showq]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postalias]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postcat]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postconf]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postdrop]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postkick]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postlock]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postlog]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postmap]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postqueue]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postsuper]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/qmqpd]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/spawn]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/flush]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/verify]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/virtual]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/proxymap]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/anvil]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/scache]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/discard]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/tlsmgr]
(set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs && cat Makefile.in) >Makefile
rm -f Makefile; (cat conf/makedefs.out Makefile.in) >Makefile
* Then when i run:
bash-3.00# /usr/local/bin/make
The compilation goes on till i get the following error
"ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
mysql_fetch_row ../../lib/libglobal.a(dict_mysql.o)
mysql_query ../../lib/libglobal.a(dict_mysql.o)
mysql_error ../../lib/libglobal.a(dict_mysql.o)
mysql_close ../../lib/libglobal.a(dict_mysql.o)
mysql_free_result ../../lib/libglobal.a(dict_mysql.o)
mysql_store_result ../../lib/libglobal.a(dict_mysql.o)
mysql_init ../../lib/libglobal.a(dict_mysql.o)
mysql_real_connect ../../lib/libglobal.a(dict_mysql.o)
mysql_real_escape_string ../../lib/libglobal.a(dict_mysql.o)
mysql_num_rows ../../lib/libglobal.a(dict_mysql.o)
mysql_num_fields ../../lib/libglobal.a(dict_mysql.o)
mysql_escape_string ../../lib/libglobal.a(dict_mysql.o)
ld: fatal: Symbol referencing errors. No output written to error
collect2: ld returned 1 exit status
make: *** [error] Error 1
make: *** [update] Error 1"
Please help me with this issue, i use gcc-3.3.2 and used both GNU make and the "make" shipped with solaris, both gave the same result.
I installed Mysql as a pkg and didn't compile it from source.
Thanks in advance.

"ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64Usually this kind of error is an indication that both 32- and 64-bit object files are being used in building the application. Use all 32-bit objects or 64-bit objects - please do not mix them during compilation.
If building from scratch is not mandatory for you, you can try installing postfix {and other applications, libraries, ..} with the help of Blastwave's 'pkg-get'. Some instrustions are at: http://technopark02.blogspot.com/2005/06/solaris-installing-appspackages-with.html
% pkg-get -a | grep postfix
             postfix 2.2.8,REV=2006.03.13

Similar Messages

  • Building postfix with mysql problem

    Hi all,
    I have a sun fire v880 machine running solaris 10, i need to set an email server using postfix+mysql.
    I already installed myql and its working fine. but when trying to build postfix with mysql i get a compliation error, here's wts going on:
    bash-3.00# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/bdb/include -I/opt/mysql/mysql/include -DUSE_SASL_AUTH' 'AUXLIBS=-L/opt/mysql/mysql/lib -R/opt/mysql/mysql/lib -lmysqlclient -lz -lm'
    (echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
    set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; \
    else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
    set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr; do \
    (set -e; echo "[$i]"; cd $i; rm -f Makefile; \
    make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
    done;
    [src/util]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/global]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/dns]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/tls]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/xsasl]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/milter]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/master]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postfix]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtpstone]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/sendmail]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/error]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/pickup]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/cleanup]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtpd]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/local]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/trivial-rewrite]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/qmgr]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/oqmgr]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtp]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/bounce]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/pipe]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/showq]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postalias]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postcat]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postconf]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postdrop]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postkick]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postlock]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postlog]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postmap]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postqueue]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postsuper]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/qmqpd]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/spawn]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/flush]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/verify]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/virtual]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/proxymap]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/anvil]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/scache]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/discard]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/tlsmgr]
    (set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs && cat Makefile.in) >Makefile
    rm -f Makefile; (cat conf/makedefs.out Makefile.in) >Makefile
    * Then when i run:
    bash-3.00# /usr/local/bin/make
    The compilation goes on till i get the following error
    "ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
    Undefined first referenced
    symbol in file
    mysql_fetch_row ../../lib/libglobal.a(dict_mysql.o)
    mysql_query ../../lib/libglobal.a(dict_mysql.o)
    mysql_error ../../lib/libglobal.a(dict_mysql.o)
    mysql_close ../../lib/libglobal.a(dict_mysql.o)
    mysql_free_result ../../lib/libglobal.a(dict_mysql.o)
    mysql_store_result ../../lib/libglobal.a(dict_mysql.o)
    mysql_init ../../lib/libglobal.a(dict_mysql.o)
    mysql_real_connect ../../lib/libglobal.a(dict_mysql.o)
    mysql_real_escape_string ../../lib/libglobal.a(dict_mysql.o)
    mysql_num_rows ../../lib/libglobal.a(dict_mysql.o)
    mysql_num_fields ../../lib/libglobal.a(dict_mysql.o)
    mysql_escape_string ../../lib/libglobal.a(dict_mysql.o)
    ld: fatal: Symbol referencing errors. No output written to error
    collect2: ld returned 1 exit status
    make: *** [error] Error 1
    make: *** [update] Error 1"
    Please help me with this issue, i use gcc-3.3.2 and used both GNU make and the "make" shipped with solaris, both gave the same result.
    I installed Mysql as a pkg and didn't compile it from source.
    Thanks in advance.

    "ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64Usually this kind of error is an indication that both 32- and 64-bit object files are being used in building the application. Use all 32-bit objects or 64-bit objects - please do not mix them during compilation.
    If building from scratch is not mandatory for you, you can try installing postfix {and other applications, libraries, ..} with the help of Blastwave's 'pkg-get'. Some instrustions are at: http://technopark02.blogspot.com/2005/06/solaris-installing-appspackages-with.html
    % pkg-get -a | grep postfix
                 postfix 2.2.8,REV=2006.03.13

  • Recompiling Postfix with MySQL support

    It took me so much time that I think the following explanation could be useful.
    Goal: Recompiling Postfix with MySQL support without losing compatibility with Apple administration tools
    Original instructions from webutilities:
    downloaded the postfix from the Darwin Sources here:
    http://www.opensource.apple.com/darwinsource/10.4.3/
    Thx to pterobyte
    i created the directorys
    /src
    i put the source in there
    /src/postfix-144
    and
    /AppleInternal/Deverloper/Headers
    i put the Sasl headers in there
    /AppleInternal/Deverloper/Headers/sasl
    then i modyfied the makefile in postfix-144
    SRCROOT=
    to
    SRCROOT=/src/postfix-144
    and
    build :
    echo "ENV = $(ENV)"
    $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="-DBIND8COMPAT -DHAS_SSL -DUSESASLAUTH -D_APPLE_ \
    -I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS)" \
    AUXLIBS="-L/usr/lib -lssl -lsasl2.2.0.1 -lgssapi_krb5"
    $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT)
    cd $(SRCROOT)/postfix/src/smtpstone && make all
    to
    build :
    echo "ENV = $(ENV)"
    $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="-DBIND8COMPAT -DHAS_SSL -DUSESASLAUTH -D_APPLE_ \
    -I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS) -DHAS_MYSQL -I/usr/include/mysql" \
    AUXLIBS="-L/usr/lib/sasl2 -lssl -lsasl2.2.0.1 -lgssapi_krb5 -L/usr/lib/mysql -lmysqlclient -lz -lm"
    $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT)
    cd $(SRCROOT)/postfix/src/smtpstone && make all
    then in the cli
    cd /src/postfix-144
    make build
    cd postfix
    i tryed to
    make update
    but it gave me
    nothing to do back
    so i made a backup of the postfix files
    mv /usr/sbin/postfix /usr/sbin/postfix.bak
    mv /usr/sbin/postfconf /usr/sbin/postfconf.bak
    mv /usr/libexec/postfix /usr/libexec/postfix.bak
    i moved
    mv src/postfix/postfix /usr/sbin
    mv src/postfconf/postfconf /usr/sbin
    mv libexec /usr/libexec/postfix
    Here is what I did not understand first:
    1. SASL headers
    These headers can be found in Apple's distribution of passwordserver_sasl-59.3 (http://www.opensource.apple.com/darwinsource/10.4.4/). Here is the list:
    -rw-r--r-- 1 administ admin 5472 Sep 3 2002 exits.h
    -rw-r--r-- 1 root wheel 3547 Apr 11 2005 gai.h
    -rw-r--r-- 1 root wheel 1368 Apr 11 2005 hmac-md5.h
    -rw-r--r-- 1 root wheel 1442 Apr 11 2005 md5.h
    -rw-r--r-- 1 root wheel 1007 Apr 11 2005 md5global.h
    -rw-r--r-- 1 root wheel 7273 Apr 11 2005 prop.h
    -rw-r--r-- 1 root wheel 47906 Apr 11 2005 sasl.h
    -rw-r--r-- 1 root wheel 30986 Apr 11 2005 saslplug.h
    -rw-r--r-- 1 root wheel 2648 Apr 11 2005 saslutil.h
    2. Postfix update
    I did a "make build", then moved to /src/postfix-144/postfix and did a "make update". But it was not enough, I had to follow the instructions by manually copying the files (src/postfix/postfix, src/postfconf/postfconf, libexec).
    And it seems to work fine!
    David

    It took me so much time that I think the following explanation could be useful.
    Goal: Recompiling Postfix with MySQL support without losing compatibility with Apple administration tools
    Original instructions from webutilities:
    downloaded the postfix from the Darwin Sources here:
    http://www.opensource.apple.com/darwinsource/10.4.3/
    Thx to pterobyte
    i created the directorys
    /src
    i put the source in there
    /src/postfix-144
    and
    /AppleInternal/Deverloper/Headers
    i put the Sasl headers in there
    /AppleInternal/Deverloper/Headers/sasl
    then i modyfied the makefile in postfix-144
    SRCROOT=
    to
    SRCROOT=/src/postfix-144
    and
    build :
    echo "ENV = $(ENV)"
    $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="-DBIND8COMPAT -DHAS_SSL -DUSESASLAUTH -D_APPLE_ \
    -I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS)" \
    AUXLIBS="-L/usr/lib -lssl -lsasl2.2.0.1 -lgssapi_krb5"
    $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT)
    cd $(SRCROOT)/postfix/src/smtpstone && make all
    to
    build :
    echo "ENV = $(ENV)"
    $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="-DBIND8COMPAT -DHAS_SSL -DUSESASLAUTH -D_APPLE_ \
    -I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS) -DHAS_MYSQL -I/usr/include/mysql" \
    AUXLIBS="-L/usr/lib/sasl2 -lssl -lsasl2.2.0.1 -lgssapi_krb5 -L/usr/lib/mysql -lmysqlclient -lz -lm"
    $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT)
    cd $(SRCROOT)/postfix/src/smtpstone && make all
    then in the cli
    cd /src/postfix-144
    make build
    cd postfix
    i tryed to
    make update
    but it gave me
    nothing to do back
    so i made a backup of the postfix files
    mv /usr/sbin/postfix /usr/sbin/postfix.bak
    mv /usr/sbin/postfconf /usr/sbin/postfconf.bak
    mv /usr/libexec/postfix /usr/libexec/postfix.bak
    i moved
    mv src/postfix/postfix /usr/sbin
    mv src/postfconf/postfconf /usr/sbin
    mv libexec /usr/libexec/postfix
    Here is what I did not understand first:
    1. SASL headers
    These headers can be found in Apple's distribution of passwordserver_sasl-59.3 (http://www.opensource.apple.com/darwinsource/10.4.4/). Here is the list:
    -rw-r--r-- 1 administ admin 5472 Sep 3 2002 exits.h
    -rw-r--r-- 1 root wheel 3547 Apr 11 2005 gai.h
    -rw-r--r-- 1 root wheel 1368 Apr 11 2005 hmac-md5.h
    -rw-r--r-- 1 root wheel 1442 Apr 11 2005 md5.h
    -rw-r--r-- 1 root wheel 1007 Apr 11 2005 md5global.h
    -rw-r--r-- 1 root wheel 7273 Apr 11 2005 prop.h
    -rw-r--r-- 1 root wheel 47906 Apr 11 2005 sasl.h
    -rw-r--r-- 1 root wheel 30986 Apr 11 2005 saslplug.h
    -rw-r--r-- 1 root wheel 2648 Apr 11 2005 saslutil.h
    2. Postfix update
    I did a "make build", then moved to /src/postfix-144/postfix and did a "make update". But it was not enough, I had to follow the instructions by manually copying the files (src/postfix/postfix, src/postfconf/postfconf, libexec).
    And it seems to work fine!
    David

  • Problems conecting java with mysql

    Hi, im workin' with mysql-connector-java-3.1.12 and it work on debug runtime but not when i access the .jar of the project.
    the code of conection is:
    try
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    con = DriverManager.getConnection(url,login,password);
    con.setAutoCommit(false);
    catch (Exception e)
    JOptionPane.showMessageDialog(null,"error en " + e.getMessage());
    there is no problems with code, it works!!, but i don't know what to do about of conection in the .jar
    I apreciate some help with this, Thankkkssss!!!

    Hi, im workin' with mysql-connector-java-3.1.12 and
    it work on debug runtime but not when i access the
    .jar of the project.Huh?
    the code of conection is:
    try
    lass.forName("com.mysql.jdbc.Driver").newInstance();
    con =
    DriverManager.getConnection(url,login,password);
    con.setAutoCommit(false);This is probably wrong. Unnecessary in this case - you aren't doing any writes.
    catch (Exception e)
    OptionPane.showMessageDialog(null,"error en " +
    e.getMessage());This is foolish code. You don't need Swing or a dialog box. You're printing less information than is available. Better to print the entire stack trace.
    is no problems with code, it works!!, Plenty of problems, really, regardless of whether it "works".
    You don't post your URL. That would help.
    but i don't
    know what to do about of conection in the .jar
    I apreciate some help with this, Thankkkssss!!!Put in the CLASSPATH, of course. NOT a system environment variable, either. javac.exe and java.exe ignore it. Use the -classpath option.
    %

  • PROBLEM BUILDING CDC WITH RED HAT 9.0

    HI, i'm trying to build CDC with the following command:
    make CVM_JAVABIN=/usr/java/jdk1.3/bin CVM_GNU_TOOLS_PATH=/usr/bin CVM_DEBUG=true
    It start to make some new direcotries, but later the following error occurs:
    ... mkdir ../../build/linux-i686/obj
    ... mkdir ../../build/linux-i686/btclasses
    ... mkdir ../../build/linux-i686/testclasses
    ... mkdir ../../build/linux-i686/cdc_classes
    Checking for build-time classes to compile ...
    Compiling build-time classes...
    error: compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null, null, null, null, null,
    null, null
    100 errors
    make: *** [.compile.btclasses] Error 1
    Do you know what can i do? I'm using jdse1.3.1 and red hat linux 9.0.Thanks very much.

    Hi,
    I ran into the same problem with RH 9.0. To fix this problem you have two options:
    1. Use jdk 1.4.x - if you use this jdk to perform the compile, you'll won't receive this error.
    2. Modify your make file that performs the javac and make the following change: javac -encoding "ISO-8859-1"
    Both of those approaches should get rid of that error.
    Hope this helps?
    Cheers,
    Jeff

  • Date Problem in Java with MySql

    Hello
    I am using Java with Mysql.I want to enter date in some in my format(YYYY:MM:DD:HH:MM:SS), this thing i have convert using format class and format class return date in String and iwwnat to insert this value in MySQL Table,So i want to know how can i convert String value in Date for Mysql is their inbuild function for converting string into date in mysql.
    Regards
    Anupam S

    Use PreparedStatement and SimpleDateFormat classes
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=%2BPreparedStatement+%2BSimpleDateFormat+&qp=siteforumid%3Ajava48&chooseCat=allJava&col=developer-forums&site=dev

  • Problem building GTK with jbuild on Mac OS X

    Hi everyone,
    I don't know if this is the right place to ask my question...
    I cannot build GTK with jbuild on my Leopard 10.5.8 system.
    I have deleted the Leopard built-in Python 2.5 folder (At that time I didn't know that deleting the default system Python is not good....) and I have installed Python 2.7 (from the .dmg file).
    I also Installed Apple Developer Tools, which I guess should be XCode 3.0.
    On the terminal I verified my Python version:
    $ which python
    /Library/Frameworks/Python.framework/Versions/2.7/bin/python
    Then I followed this guide to build GTK:
    http://sidhosting.co.uk/josh_fradley/getting-emesene-2-up-and-running-on-os-x/
    which is basically the same as the one in Gnome site:
    http://live.gnome.org/GTK%2B/OSX/Building#Procedure
    I followed the first guide, but it gives me some errors:
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ curl -o gtk-osx-build-setup.sh https://raw.github.com/jralls/gtk-osx-build/master/gtk-osx-build-setup.sh
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  3716  100  3716    0     0   1612      0  0:00:02  0:00:02 --:--:-- 1814k
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ sh gtk-osx-build-setup.sh
    Checking out jhbuild (2.32.4) from git...
    From git://git.gnome.org/jhbuild
    * tag               2.32.4     -> FETCH_HEAD
    Installing jhbuild...
    Installing jhbuild configuration...
    Installing gtk-osx moduleset files...
    PATH does not contain /Users/francesco/.local/bin, it is recommended that you add that.
    Done.
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ PATH=$HOME/.local/bin:$PATH
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ export PATH
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ jhbuild bootstrap
    Traceback (most recent call last):
      File "/Users/francesco/Source/jhbuild/jhbuild/config.py", line 212, in load
        execfile(self.filename, config)
      File "/Users/francesco/.jhbuildrc", line 90, in <module>
        _xcodeversion = xcode_ver()
      File "/Users/francesco/.jhbuildrc", line 89, in xcode_ver
        return float(exp.match(_ver).group(1))
    AttributeError: 'NoneType' object has no attribute 'group'
    jhbuild: could not load config file
    Anyone can tell me why I got this error?
    It seems that jbuild doesn't see my xcode version? But I did install it!
    It's very strange because I succeeded to do 'jbuild bootstrap' before when I used to have Python 2.5, although I got stuck for other commands more forward.
    Thanks everyone.

    You may want to also post over in the Developer forums...
    https://discussions.apple.com/community/developer_forums

  • Problem building application with C++ 4.2 on Sun OS 5.9

    I have an application that builds fine with "WorkShop Compilers 4.2 30 Oct 1996 C++ 4.2" on SunOS devbox1 5.6 Generic_105181-33 sun4u sparc SUNW,Ultra-Enterprise
    On the same file system, I am trying to build the application on "SunOS devbox2 5.9 Generic_117171-12 sun4u sparc SUNW,Sun-Fire-V440"
    I see that files like sys/siginfo.h do not get included. I guess C++ compiler should include such files by default (in the first case it does happen).
    Also, when I add -H option to the compiler to see the header files included, I see that the headers included in the first as well as the second case are different.
    Does anyone know why this is so?

    Workshop 4.2 is not expected to work on Solaris 9. Workshop 4.2 is long past its End Of Service Life, and no support of any kind is available for it.
    You can download the latest product, Sun Studio 11, and use it for free:
    http://developers.sun.com/sunstudio/
    Sun Studio 11 C++ (C++ 5.8) offers a mode where it is compatible with C++ 4.2. It compiles valid source code that C++ 4.2 compiled, and you can link binaries created by C++ 4.2 into programs built with Sun Studio 11.
    Full details are in the C++ Migration Guide that comes with the compiler.
    Regarding missing system header files in /usr/include or /usr/include/sys:
    To compile programs on Solaris, Solaris must have been installed as a "developer" or "full" release. If you install only the minimum, you will be missing many features necessary for compiling programs.

  • Problem building kernel with makepkg

    I tried several times building a custom 2.6.8.1 kernel with makepkg and the PKGBUILD file obtained from http://wiki.archlinux.org/index.php/Ker … with%20ABS. Unfortionately, the process allways ends with the following error:
    ln: when making multiple links, last argument must be a directory
    make: *** [_modinst_] Error 1
    ==> ERROR: Build Failed.  Aborting...
    Is there something wrong with the build file posted on the wiki or am I doing something stupid?

    Err... I might have done a small mistake in my previous post.
    I didn't try to build the kernel using the Wiki page above.
    I've used http://wiki.archlinux.org/index.php/Bui … with%20ABS
    You can find below the revised PKGBUILD for that page. It might look weird, but it's very functional. It should also work with the stock kernels.
    This PKGBUILD includes kernel version/revision autodetection. This helps when you apply patches which change those variables (such as ck, mm etc.). The changes I've made automatically change the package details (pkgname, pkgver, pkgdesc) to reflect the kernel changes.
    Please test because I've made some cosmetic changes lately which might have scrambled something around there. If you find it working, please post here and I'll put it in the Wiki page above. Maybe it could also be used as a base for building kernels with the ABS.
    Any feedback is welcomed. Enjoy.
    # ChangeLog
    # v0.3 2004/08/19 - Mircea Ionut Bardac (IceRAM)
    # Updated the PKGBUILD for autodetection of the kernel version and kernel revision
    # v0.2 2004/07/23 - Wojciech Szlachta
    # Modified from official PKGBUILD for kernel26-scsi by judd <[email protected]>
    # and from custom PKGBUILD to support multiple installed kernels by jea.
    # you can leave kerrev empty if you don't want to name the kernel in any way
    kerrev=
    pkgname=kernel26
    pkgver=2.6.7
    pkgrel=1
    pkgdesc="Custom Linux Kernel and modules"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
    config
    md5sums=('a74671ea68b0e3c609e8785ed8497c14'
    '4da09ca74deafb3c6769b8de895e089b'
    getvar() {
    old=$(cat Makefile | grep "^$1")
    echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
    return 0
    build() {
    cd $startdir/src/linux-$pkgver
    # apply patches here
    # patch -p1 < ../patch1
    # get rid of the 'i' in i686
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    # make changes in kernel configuration
    make oldconfig || return 1
    cp ./.config ../../config.new
    #use the following line instead of the 2 lines above for default config
    #yes "" | make config || return 1
    # set EXTRAVERSION to create unique /lib/modules/ subdirectories
    _ker_extraversion=$(getvar "EXTRAVERSION")
    # update EXTRAVERSION in the Makefile
    _oldline=$(cat Makefile | grep "^EXTRAVERSION")
    if [ $kerrev != "" ]; then
    _ker_extraversion="$_ker_extraversion-$kerrev"
    cat Makefile | sed "s|$_oldline|EXTRAVERSION = $_ker_extraversion|" > tmpMake
    mv tmpMake Makefile
    fi
    kerrev=$_ker_extraversion
    kerver=$(getvar "VERSION").$(getvar "PATCHLEVEL").$(getvar "SUBLEVEL")
    # update the package information from the kernel Makefile
    pkgver=$kerver$(echo $_ker_extraversion | sed -e 's/-/./g')
    # removing patches versions from the revision string
    _n1=$(expr match $kerrev '([.][0-9]*)')
    _n21=$(expr match $q '[.][0-9]*(.*)')
    _n2=$(echo $_n21 | sed -e "s/[0-9]*-/-/g")
    pkgname=kernel26$_n1$_n2
    pkgdesc="Custom Linux Kernel ($kerver) and modules - revision $kerrev / package version: $pkgver build: $pkgrel"
    echo "- Package information ----------------"
    echo " Package name: $pkgname"
    echo " Package version: $pkgver"
    echo " Package release: $pkgrel"
    echo " Kernel version: $kerver"
    echo " Kernel revision: $kerrev"
    echo "--------------------------------------"
    make clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    # create unique names in /boot/
    cp System.map $startdir/pkg/boot/System.map26$kerrev
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26$kerrev
    install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kerver/Makefile
    install -D -m644 .config $startdir/pkg/usr/src/linux-$kerver/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26$kerrev
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/include
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$kerver/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-$kerver/
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kerver/arch/i386/
    cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$kerver/$i
    done
    cd $startdir/pkg/usr/src/linux-$kerver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$kerver
    # create a unique subdirectory under /usr/src/
    cd $startdir/pkg/usr/src
    mv linux-$kerver linux-$kerver$kerrev
    cd $startdir/pkg/lib/modules/$kerver$kerrev &&
    (rm -f build; ln -sf /usr/src/linux-$kerver$kerrev build)

  • [solved] Problem building krusader2 with the latest qt package

    Well, I've built krusader2 a lot of times before, now I got stucked on this, any idea of what changed in QT to cause this problem? Thanks in advance.
    /usr/include/QtCore/qobject.h:308: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
    /home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1/krusader/VFS/virt_vfs.cpp: In member function 'virtual void virt_vfs::vfs_mkdir(const QString&)':
    /home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1/krusader/VFS/virt_vfs.cpp:180: error: no matching function for call to 'KMessageBox::error(Krusader*&, QString, QString)'
    /usr/include/kmessagebox.h:616: note: candidates are: static void KMessageBox::error(QWidget*, const QString&, const QString&, QFlags<KMessageBox::Option>)
    /home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1/krusader/VFS/virt_vfs.cpp: In member function 'vfile* virt_vfs::stat(const KUrl&)':
    /home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1/krusader/VFS/virt_vfs.cpp:240: warning: suggest a space before ';' or explicit braces around empty body in 'while' statement
    make[2]: *** [krusader/VFS/CMakeFiles/VFS.dir/virt_vfs.o] Error 1
    make[2]: Leaving directory `/home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1'
    make[1]: *** [krusader/VFS/CMakeFiles/VFS.dir/all] Error 2
    make[1]: Leaving directory `/home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1'
    make: *** [all] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Last edited by pfreire (2008-08-31 20:48:07)

    With the new build of QT (4.4.1-4) it seems to build ok again.

  • Problem building application with weblogic.jar placed out of bea install.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

  • Problem building exe with dynamic vi

    Hi all, i'm using LV 8.2 evaluation version to build an executable file for my test platform. This platform calls for individual test vis dynamically.
    I can export the platform vi into exe alright but it always fail to run the test vis dynamically when called by the platform. I know the platform is working alright as it's able to successfully traverse through all my operating states, but when it comes to the state which contains a subVI which calls these test vis dynamically, nothing happens and it just proceed with the next state. The even wierder thing is that the program then enters my default state (which isn't even on the list of states for that particular operating mode!)
    Based on this result i can say that the platform is working fine as it was able to call various subvis and traverse through the defined states (except for the default state case). Thus i guess it must be something which i did wrongly during the build process which caused it not to run my dynamic test vis. I spent the whole day trying various build options but it still doesn't run my dynamic vis.
    Any ideas?
    PS: Does the build process automatically import the MAX settings?

    No, it's not a cracked version just to make myself clear.
    Dennis, i don't think it's a problem with the path as the exe does not have any problem loading other text configuration files. Yes, i've included them under the dynamic vi and support files option.
    Attachments:
    Build option for LV8.2 eval.JPG ‏31 KB

  • Problem in Connection with MySql

    Hi,
    i don't know what is th problem with this. i have mysql-jconnector 2.0.14 JDBC Driver and Tomcat-4.0.7. This Program prints nullpointer exception.
    can any one help.
    <%@page import="java.sql.*"%>
    <%
    Connection conn = null;
    try
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    catch(Exception ex)
    ex.printStackTrace();
    try
    conn= DriverManager.getConnection("jdbc:mysql:///sample");
    catch(Exception ex)
    ex.printStackTrace();
    if (conn==null)
    out.write ("Could not create connection");
    else
    out.write ("connection created");
    Statement stmt = conn.createStatement();
    ResultSet rst = stmt.executeQuery("Select * from Admission");
    ResultSetMetaData rstmd = rst.getMetaData();
    int rowcount = 0;
    while (rst.next())
    rowcount++;
    for (int colcount=0;colcount<rstmd.getColumnCount();colcount++)
    out.write (rst.getString(0));
    out.write ("<br>");
    rst.close();
    conn.close();
    %>
    Thanks
    Saran

    Most likely culprit is the rs.next statement. If no records are returned rs will be null and rs.next will through a null pointer exception. try:
    if (rs != null) {
       while (rs.next()) {<p>
    If that doesn't work try blocking off sections of code in seperate try-catch blocks to narrow down where the exception is occuring.

  • No phonegap.js on site root and other problems building apps with phonegap

    Hi all,
    I'm starting to develop some apps with dw cs5.5 but I encounter several problems here.
    I just installed the Jquery mobile update (using the official adobe extension) and now every new project I start (using the mobile + phonegap template) I see there is no phonegap.js file in the site root.
    And when I see the page using 'live' options I see the page rendered correctly but then, when I click on a subsequent page (page 2, page3 or page4...), no back button appears on the header.
    what can I do to restore a productive environment?
    tia
    tony

    I just uninstalled the jquery mobile update and now the BACK button is BACK.
    No phonegap.js file yet....
    any idea why the phonegap.js is not there yet?
    TIA again, sorry for the semi useless post.
    tony

  • Problem running Page with MySQL DataSource

    Hi All,
    Jdev Version 11.1.1.6.0
    I have created a MYSQL Datasource (Datasource got created successfully and tested). The issue is when I am running a jspx page, I am getting below exception.
    java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection
    I have provided the Class path in Weblogic - Servers - DefaultServer- Server Start tab like C:\Users\jars\Downloads\mysql-connector-java-5.1.25\mysql-connector-java-5.1.25
    But still I am getting this exception. I didn't got any issue when I created a MYSQL connection, and provided Driver Class path.
    Any pointer, what I am missing here.
    Thanks
    AP

    Hi Suresh,
    Thanks for the post. Well there are 2 thing which I require to understand.
    1. We can create MYSQL connection using Jdev and set the classpath which is provided in post. It worked fine.
    2. We can create datasource of MYSQL connection and use it in our Model Project. Here I am struck and giving this exception when running.
    Since it Enterprise Application, creating Datasource is generic way to connecting. I am facing issue after creating datasource. I tried above approaches, but getting exception.
    Can you help me in understand, what is going wrong in step 2.
    Thanks, AP

Maybe you are looking for

  • Using widescreen and standard screen in one project.

    I am making a film and just found out that about a quarter of the footage was taken in widescreen while the rest in standard. I would prefer to keep all of the footage in standard. Any ideas on how best to adjust the widescreen footage without distor

  • HP Laser Jet P2035N is terrible with Windopws 7 64 bit

    First off, a Windows XP system on the same network has no isssues printing at all. If I print something simple from my Windows 7 64bit system it prints over and over until I turn off the printer or kill the job in the print queue.  I can fix this my

  • How to implement value only articles in SAP retail.

    Hi I have gone through the sap material on Value only materials, but i am not able to get hold of how value only materials would be implemented in SAP retail. Should we use WERT material type to start with or is there any other way to implement the v

  • Copy and Paste are dimmed in iPhoto

    After naming a couple of photos using copy and paste, I can't do any more as the copy and paste options in the dropdown menu are dimmed. Why?

  • Indesign CS5.5 v7.5.2 on Mac 10.7.2 Crashing when updating links

    My first post here, so please be gentle. I have had a constant problem for a couple of weeks with linked PDF files placed in CS5.5 - whenever I try to update the link it crashes. Yes its variable, it does it for some PDF's/links, but not for others.