Help with apache!!!

I can't get my apache server to work, it was working fine until i started messing around with openssl and now i can't activate web sharing under system preferences. I did sudo apachectl configtest and i get this error.
httpd: Could not reliably determine the server's fully qualified domain name, using Gabriels-MacBook-Pro.local for ServerName
I can provide the httpd.conf files if anyone needs them.
Help please!!

Okay if you are looking for the jar files to compile Servlets and JSP they are under the common/lib folder of your tomcat installation. You sill probably only need the servlet-api.jar file.
I recommend that you read the online documentation that comes with tomcat and look at all the of the examples before trying to code something.

Similar Messages

  • Need Urgent Help with Apache and PHP

    I have been struggling with apache and php for a week now and I finally broke down to post a message.
    I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.

    The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
    /etc/httpd/users/
    Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
    <pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
    Now check the Apache configuration:
    <pre>apachectl configtest<pre>
    If it says "Syntax OK", start Apache:
    <pre>sudo apachectl start<pre>
    Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring.

  • Need help with Apache on OS X Server 10.4.8

    I am unable to get mod_rewrite to work... Additionaly, bonjour is not working at all.
    I am wondering if there are any known issues (that I could not find) and/or helpful solutions. I was considering doing a recompile based on the instructions found at http://lists.apple.com/archives/macos-x-server/2005/Apr/msg01171.html
    I am not sure if these instructions are valide for the 10.4.8 environment... os if anyone knows fore-sure please do let me know.

    Sorry, I thought the goal was to get the RewriteRules working - recompiling Apache seemed like the harder approach to me (with no chance of it working if the flaw was in the RewriteRule statement itself )
    That said, the instructions you reference will probably work. As will downloading the source from apache.org and running their standard build. It won't be the same as the build as shipped by Apple, though.
    The issue is that everyone's instructions on how to build apache (including the one you reference) suits a particular individual's needs/expectations of what s/he wants. In this case they wanted SSL, but you might or might not want/need that. You might need other modules they didn't include, though, so there's no guarantee their build will work for you.
    In any case you're not going to get the custom Apple modules including 'apple_auth', 'apple_spotlight', 'hfs_apple' or 'spnego_apple'. These are developed by Apple and included in their build but are not part of the standard Apache distribution. You might find the source for them in the Darwin source but I've never looked.
    So, in summary, there are so many ways to build apache, with so many combinations of features and modules, it's impossible to say whether that'll work for you since everyone's situation is different.

  • Help with Apache plugin for Tomcat

    I downloaded jakarta-tomcat-connectors-jk2-src-current.tar.gz from apache.org. I am trying to install this without any progress. The web page http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html gives lots of info on how to install the plug in called JK. I believe the unix section applies to linux as well. Can anyone help me with this? Please copy your message if at all possible to [email protected] Thanks Murthy

    I know what mod_jk is, I was just trying to understand your situation.
    You have two choices, mod_jk and mod_jk2 with different configurations files.
    In both cases, you need 3 parts:
    1- apache
    2- the mod_jk(2) module (.so) for your apache version (1.3.x or 2.x)
    3- tomcat
    You obviously have 1 and 3, and probably 2 also.
    Config is twofold:
    1) In httpd.conf (Apache 2.0) you need:LoadModule jk2_module modules/mod_jk2.so
    <IfModule mod_jk2.c>
      JkSet config:file "/path/to/workers2.properties"
    </IfModule>
    # And for each context:
       <Location "/contextname/*">
          JkUriSet worker ajp13:localhost:8001
       </Location>2) workers2.properties:[logger]
    level=WARN
    #INFO
    #/web_ci/
    [config:]
    file=/path/to/workers2.properties
    debug=0
    debugEnv=0
    [uriMap:]
    info=Maps the requests. Options: debug
    debug=0
    # Alternate file logger
    [logger.file:0]
    level=WARN
    file=/path/to/logs/jk2.log
    # Cache for activity
    # Must point to a writeable path
    [shm:]
    info=Scoreboard. Required for reconfiguration and status with multiprocess servers
    file=/path/to/jk2.shm
    size=1000000
    debug=0
    disabled=0
    [workerEnv:]
    info=Global server options
    timing=1
    debug=99
    # Default Native Logger (apache2 or win32 )
    # can be overriden to a file logger, useful
    # when tracing win32 related issues
    logger=logger.file:0
    # Communication channel to use
    [channel.socket:localhost:8001]
    info=Ajp13 forwarding over socket
    debug=0
    tomcatId=localhost:8001
    # Connector as in conf/server.xml
    [ajp13:localhost:8001]
    channel=channel.socket:localhost:8001
    # Tomcat load balancing
    [lb:lb]
    info=Default load balancer.
    debug=0
    [status:status]
    info=Status worker, displays runtime informations
    # Monitor for requests and config http://server:port/jkstatus
    [uri:/jkstatus/*]
    info=Display status information and checks the config file for changes.
    group=status:status3) Finally, you need to set the connector (port number) in server.xml    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8001 -->
        <Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
                   port="8001" minProcessors="5" maxProcessors="75"
                   enableLookups="true" redirectPort="8443"
                   acceptCount="10" debug="3" connectionTimeout="2000"
                   useURIValidationHack="false"
                   protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>This is the setup I use on Win2K, but should work pretty much the same on Linux. I also have a similar setup on Linux, but with mod_jk instead of mod_jk2.
    Hope this helps!

  • Newbie help with apache xmlrpc

    greetings everybody,
    i'm new to xml-rpc and i'm using the apache xmlrpc implemtation. I would just would like to ask if theres a way to add /edit headers of to my XmlRpcClient request. I know how to deal with the other headers like Content-Length and Authentication etc. but i need to add a "User Agent" header. Can u guys help me on this problem... tnx in advanced! :)

    Okay if you are looking for the jar files to compile Servlets and JSP they are under the common/lib folder of your tomcat installation. You sill probably only need the servlet-api.jar file.
    I recommend that you read the online documentation that comes with tomcat and look at all the of the examples before trying to code something.

  • Need help with Apache-WL 5.1 config

    I have an WL application which is invoked anytime a url that starts
    with /app. This is configured as follows:
    <Location /app>
    SetHandler weblogic-handler
    </Location>
    What my customers now want is to create new urls which will invoke my
    application. For example, one customer wants the following url:
    /airline/atlanta
    Which will need to map to the following url:
    /app/URLServlet/airline/atlanta
    I have tried to create a "RewriteRule", but found that apache looked
    for the result in the docroot instead of transferring it to WL.
    The following shows my "Rewrite config":
    RewriteEngine on
    RewriteLog "/var/apache/logs/rewrites"
    RewriteLogLevel 3
    RewriteRule ^/airline/atlanta /app/URLServlet$1
    WebLogicHost rome
    WebLogicPort 7101
    <Location /app>
    SetHandler weblogic-handler
    </Location>
    The following is from the rewrite log file:
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2) init
    rewrite engine with requested uri /airline/atlanta
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (3)
    applying pattern '^/airline/atlanta' to uri '/airline/atlanta'
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2)
    rewrite /airline/atlanta -> /app/URLServlet$1
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2) local
    path result: /app/URLServlet$1
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2)
    prefixed with document_root to /var/apache/htdocs/app/URLServlet$1
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (1)
    go-ahead with /var/apache/htdocs/app/URLServlet$1 [OK]
    And of course, there is no such thing in the docroot.
    Any thoughts? Please help.
    [bryon.vcf]

    I have a similar problem. Does anyone out there know how Apache URL
    rewriting interacts with mod_wl?
    My situation is that I want to pass a piece of information (which virtual
    host the request came in on) to weblogic. It appears that RewriteRule with
    the [QSA] option is perfect for this, except that for some reason the
    servlet request reports the original URL, not the rewritten one. I put in a
    rule that says
    RewriteRule ^(.*jsp)$ $1?VHOST=mydomain.com [QSA]
    and the rewrite log shows that the rule is applied, but
    HttpServletRequest.getQueryString() still returns null.
    Has anyone passed any information like this from Apache to Weblogic?
    Thanks,
    Greg Abbas
    "Bryon G. Rigg" wrote:
    I have an WL application which is invoked anytime a url that starts
    with /app. This is configured as follows:
    <Location /app>
    SetHandler weblogic-handler
    </Location>
    What my customers now want is to create new urls which will invoke my
    application. For example, one customer wants the following url:
    /airline/atlanta
    Which will need to map to the following url:
    /app/URLServlet/airline/atlanta
    I have tried to create a "RewriteRule", but found that apache looked
    for the result in the docroot instead of transferring it to WL.
    The following shows my "Rewrite config":
    RewriteEngine on
    RewriteLog "/var/apache/logs/rewrites"
    RewriteLogLevel 3
    RewriteRule ^/airline/atlanta /app/URLServlet$1
    WebLogicHost rome
    WebLogicPort 7101
    <Location /app>
    SetHandler weblogic-handler
    </Location>
    The following is from the rewrite log file:
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2) init
    rewrite engine with requested uri /airline/atlanta
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (3)
    applying pattern '^/airline/atlanta' to uri '/airline/atlanta'
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2)
    rewrite /airline/atlanta -> /app/URLServlet$1
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2) local
    path result: /app/URLServlet$1
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2)
    prefixed with document_root to /var/apache/htdocs/app/URLServlet$1
    172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
    [atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (1)
    go-ahead with /var/apache/htdocs/app/URLServlet$1 [OK]
    And of course, there is no such thing in the docroot.
    Any thoughts? Please help.--
    Greg Abbas
    [email protected]
    http://www.abbas.org

  • Need help with Apache self signed client certificates.

    At work we use PHPmyadmin to administer our central MySQL database.
    In order to access PHPmyadmin we use self signed ssl client certificates, for our developers, so that you can only access phpmyadmin if you have a valid client certificate installed in your browser.
    The ssl certificate on the webserver hosting phpmyadmin has expired now and I would like to extend it, preferrably without having to re-genereate client certificates for all users.
    I'm a bit confused to the approach. Most howtos I've found deal with extending a webserver certificate. but it really just looks like they generate a new one.
    Can anyone help me out with how best to approach this.
    Do I simply generate a new Apache Server certificate and then use this to re-sign the existing client certificates?

    As the SOAP servlet says: "Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.", you must use the HTTP POST method and not the GET method to use SOAP.
    Use setRequestMethod("POST") of class HttpURLConnection to make your HTTP connection use the POST method.
    (I didn't look at all your code).
    Jesper

  • Need some help with Apache vhost. Access a server on network.

    Not sure if this can be done. But here is my case:
    Me and my colleague is writing some database applications for out employer. And this server runs Apache, PHP and MySQL.
    We want to be able to access different vhosts using just the post after the server local IP-address. (I.e., 10.0.2.242:8080).
    Because we want to use the same server for different projects, but we need some way to split this. And so far, a port name is the best.
    Another way would be to use the DNS server, and redirect any request for example.com to that particular server. but since we have started to use OpenDNS, that can't be done.
    My question is, can't this be achived? If I type 10.0.2.242:8080, i can be directed to /srv/http/test_vhost, where /srv/http is the server root.
    Any reply is much apprecited. Since I could find an answear on Google.
    Birger

    MindTooth wrote:I run Windows at work. But I think I know to set a hosts different.
    IIRC, C:\Windows\System32\drivers\etc\hosts
    MindTooth wrote:(OpenDNS sucks because? Better then the DNS server located inhouse. It is slooooow. OpenDNS is faster.)
    It can screw you up because it *always* returns an IP address, which isn't so bad for web browsing, but when you're trying to do (or diagnose!) other things it can really screw with you.
    MindTooth wrote:I have tryed it. But when I added :8080 behind the IP, it would not direct to the correct folder.
    Have you uncommented this line in httpd.conf?
    #Include conf/extra/httpd-vhosts.conf

  • Help with Apache plugin for WebLogic on HP-UX

    Hi,
    I am trying to get Weblogic 5.1(w/sp8) on HP-UX 11 talking to Apache 1.3.19.21(port
    8080) also on HP-UX 11 ( both on same box ). I have WebLogic listening on port
    9001, and I followed the instructions to configure apache and weblogic. However
    when I do http://mymachine:8080/weblogic/portal/hello.jsp. I get unable to find
    page.
    weblogic is installed in /weblogic. The hello.jsp is located in /weblogic/myserver/public_html/portal/hello.jsp.
    Apache is installed in /opt/apache.
    The Apache httpd.conf file contains the following:
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    WebLogicHost localhost
    WebLogicPort 9001
    </Location>
    What am I missing ? The error_log for Apache shows the following:
    [Mon Nov 12 11:21:09 2001] [warn] Loaded DSO libexec/mod_wl.so uses plain Apache
    1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
    [Mon Nov 12 11:21:10 2001] [notice] Apache/1.3.19 (Unix) PHP/4.0.4pl1 configured
    -- resuming normal operations
    [Mon Nov 12 11:21:32 2001] [notice] child pid 13248 exit signal Segmentation fau
    lt (11)

    Well... there is a warning in the log file saying that it might crash - and then
    it crashes. Check that you are running a supported platform, if you are, contact
    BEA Support.
    I would discourage the use of forwarding to 'localhost'.
    Mike
    "Niranjan Perera" mckesson.com wrote:
    >
    Hi,
    I am trying to get Weblogic 5.1(w/sp8) on HP-UX 11 talking to Apache
    1.3.19.21(port
    8080) also on HP-UX 11 ( both on same box ). I have WebLogic listening
    on port
    9001, and I followed the instructions to configure apache and weblogic.
    However
    when I do http://mymachine:8080/weblogic/portal/hello.jsp. I get unable
    to find
    page.
    weblogic is installed in /weblogic. The hello.jsp is located in /weblogic/myserver/public_html/portal/hello.jsp.
    Apache is installed in /opt/apache.
    The Apache httpd.conf file contains the following:
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    WebLogicHost localhost
    WebLogicPort 9001
    </Location>
    What am I missing ? The error_log for Apache shows the following:
    [Mon Nov 12 11:21:09 2001] [warn] Loaded DSO libexec/mod_wl.so uses plain
    Apache
    1.3 API, this module might crash under EAPI! (please recompile it with
    -DEAPI)
    [Mon Nov 12 11:21:10 2001] [notice] Apache/1.3.19 (Unix) PHP/4.0.4pl1
    configured
    -- resuming normal operations
    [Mon Nov 12 11:21:32 2001] [notice] child pid 13248 exit signal Segmentation
    fau
    lt (11)

  • Help with apache mod_perl

    I'm in the process of teaching myself perl, and I've also just set up a server. I'd like to combine my efforts .    I'd like to know how to set up apache with mod_perl. I gather it will probably need some sort of recompilation? I also don't see a mod_perl package anywhare. What will I have to do to set this up?
    I've been using linux for a while, and arch for most of the time, but I've never really played with this sort of thing before, so I'm kinda lost  :oops: .

    Dirty PKGBUILD, which doesn't work. Oh well, I'll repair it ASAp
    # $Id$
    pkgname=mod_perl
    pkgver=2.0
    pkgrel=1
    pkgdesc="The full power of the Perl programming language and the Apache HTTP server."
    url="http://perl.apache.org"
    depends=(apache perl)
    source=(mod_perl-2.0-current.tar.gz)
    md5sums=('3e7f7aefb19c772a998802990ced15c0')
    build() {
    cd $startdir/src/$pkgname-2.0.0-RC6
    perl Makefile.PL MP_APXS=`which apxs` PERLPREFIX=$startdir/pkg/usr SITEPREFIX=$startdir/pkg/usr
    make || return 1
    make install
    Maybe somebody will write tidier package. Take care. (Well, next would be embperl package).
    Ja ne,
    Antti

  • Help with Apache Reverse Proxy configuration with SAP Portal and SAP Webgui

    Dear Experts,
    I have an issue configuring Apache to work with SAP Portal and ERP webgui. Accessing Portal through Reverse Proxy is working fine. But the problem arises when we try to open an iView ERP webgui transaction page from Portal with the Reverse Proxy. Have anyone implemented similar requirements and could advice on the configuration required on the Apache side? Thank you

    hi,
    pls check the below links for reference:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/24396589-0a01-0010-3c8c-ab2e3acf6fe2
    searchsap.techtarget.com/searchSAP/downloads/chapter-december.pdf
    1)Learn to implement the reverse proxy filter and portal gateway in SAP Enterprise Portal 6.0 on Web Application Server 6.40.
    https:/.../irj/sdn/nw-portalandcollaboration?rid=/webcontent/uuid/006efe7b-1b73-2910-c4ae-f45aa408da5b
    .2 )Configuring the Portal for Your Reverse Proxy Filter Solution . ... This document describes the reverse proxy filter mechanism in SAP Enterprise ...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/32ad9b90-0201-0010-3c8a-c900cd685f8f
    3)have full reverse proxy functionality. Possibly. filter. requests. Internet ... Reverse proxy (optionally with authentication etc.) ...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c066c390-0201-0010-3cba-cd42dfbcc8be
    Note:please reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • Help with apache ftp

    Hi all
    I am using the apache FTPClient to ftp files around. My problem is that I seem to be able to only send / retrieve 1 file before I need to reset the whole connection. I think that the answer may lie with this method
    http://commons.apache.org/net/api/org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)
    ... that's what I need, right? A restart offset, I think. How do I do it?
    Does anyone have any experience with this package, or with programmatic FTP?

    i figured this out.

  • Help with apache and virtual hosts

    I hope someone can help me I had installed shared point for testing and learning it. I had setup alternative mapping and know I want to add sub domain to my Apache web server. So I have sub domain redirecting back to share point. Also mine website is being redirected to share point. How I can have sub domain redirected to share point and main website go to my drupal ? I had created virtual host for main website but I still  get redirected to share point.

    I have this and the problem is that main domain goes to share point.
    <VirtualHost xxxx.us:80>
    ServerName xxxx.us
    ServerAlias www.xxxx.us
    DocumentRoot "/srv/http"
    ServerAdmin [email protected]
    ErrorLog "/var/log/httpd/error_log"
    CustomLog "/var/log/httpd/access_log" common
    <Directory />
    Options FollowSymLinks
    AddHandler cgi-script .cgi .pl
    Options ExecCGI Indexes FollowSymLinks MultiViews +Includes
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    </VirtualHost>
    <VirtualHost sharepoint.xxxx.us:80>
    ServerName sharepoint.xxxx.us
    ServerAlias sharepoint.xxxx.us
    DocumentRoot "/srv/http"
    ServerAdmin [email protected]
    ErrorLog "/var/log/httpd/error_log"
    CustomLog "/var/log/httpd/access_log" common
    RewriteEngine On
    RewriteLog "/var/log/httpd/rewrite_log"
    RewriteLogLevel 9
    RewriteCond %{HTTP_HOST} !^(sharepoint\.)?hebe\.us$
    RewriteRule ^(.*)$ http://hebe.us$1 [L,R=301]
    ProxyRequests On
    ProxyPreserveHost On
    ProxyVia full
    ProxyPass / http://192.168.0.38/
    ProxyPassReverse / http://192.168.0.38/
    </VirtualHost>
    Last edited by tritron4 (2013-06-19 17:01:08)

  • Help!Apache compiling with gcc in Solaris 10

    Greetings
    I am having problems with Apache 1.3.
    When I am running the script ./src/Configure my output is:
    #./Configure
    Using config file: Configuration
    Creating Makefile
    + configured for Solaris 2100 platform
    + setting C pre-processor to gcc -E
    + using "tr [a-z] [A-Z]" to uppercase
    + checking for system header files
    + adding selected modules
    ./helpers/TestCompile: make: not found
    + using builtin Expat
    ./Configure: make: not found
    + checking sizeof various data types
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    + doing sanity check on compiler and options
    ./helpers/TestCompile: make: not found
    ** A test compilation with your Makefile configuration
    ** failed. The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.
    ======== Error Output for sanity check ========
    ./helpers/TestCompile: make: not found
    ============= End of Error Report =============
    Aborting!
    I am root, my PATH is
    /usr/bin:/usr/ucb:/etc:/usr/local/bin:/opt/netscape:/usr/css/bin/:/bin:/usr/openwin/bin:/usr/sbin:/
    I am missing something stupid, I know but I can't find it!!!!Help please I am a newbie.
    I am curious. Has anyone been able to compile succesfully apache server with gcc in Solaris 10?
    Thanks,

    Thanks,
    It was only that.!!!
    But now I have the following problem, I can't create executables when I type make. The output is:
    when I am in the src/folder
    #make
    ===> regex
    <=== regex
    ===> os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> $i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== $i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    but when I am typing one step up is.
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    I am newbie with Solaris and gcc so I have no so much idea what is missing there.
    Thanks,
    Juan

  • Need help with log4j logging tool (org.apache.log4j.*) to log into database

    Hi,
    I need help with log4j logging tool (org.apache.log4j.*) to log into database using JDBCAppender. Have look at my logger code and corresponding log4j.properties file stated below. I'm running this program using Eclipse IDE and it's giving me the following error (highlighted in red) at the end:
    log4j: Parsing for [root] with value=[debug, stdout, Roll, CRSDBAPPENDER].
    log4j: Level token is [debug].
    log4j: Category root set to DEBUG
    log4j: Parsing appender named "stdout".
    log4j: Parsing layout options for "stdout".
    log4j: Setting property [conversionPattern] to [%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "stdout".
    log4j: Parsed "stdout" options.
    log4j: Parsing appender named "Roll".
    log4j: Parsing layout options for "Roll".
    log4j: Setting property [conversionPattern] to [%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "Roll".
    log4j: Setting property [file] to [HelloWorld.log].
    log4j: Setting property [maxBackupIndex] to [10].
    log4j: Setting property [maxFileSize] to [20KB].
    log4j: setFile called: HelloWorld.log, true
    log4j: setFile ended
    log4j: Parsed "Roll" options.
    log4j: Parsing appender named "CRSDBAPPENDER".
    {color:#ff0000}
    Can't find class HelloWorld{color}
    import org.apache.log4j.*;
    public class HelloWorld {
    static Logger log = Logger.getLogger(HelloWorld.class.getName());
    public static void main(String[] args) {
    try{
    // Now, try a few logging methods
    MDC.put("myComputerName", "Ravinder");
    MDC.put("crsServerName", "ARNDEV01");
    log.debug("Start of main()");
    log.info("Just testing a log message with priority set to INFO");
    log.warn("Just testing a log message with priority set to WARN");
    log.error("Just testing a log message with priority set to ERROR");
    log.fatal("Just testing a log message with priority set to FATAL");
    catch(Exception e){
    e.printStackTrace();
    ------------------------- log4j.properties file ------------------------------
    #### Use three appenders - log to console, file and database
    log4j.rootCategory=debug, stdout, Roll, CRSDBAPPENDER
    log4j.debug=true
    # Print only messages of priority WARN or higher for your category
    # log4j.category.your.category.name=WARN
    # Specifically inherit the priority level
    # log4j.category.your.category.name=INHERITED
    #### stdout - First appender writes to console
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### Roll - Second appender writes to a file
    log4j.appender.Roll=org.apache.log4j.RollingFileAppender
    ##log4j.appender.Roll.File=${InstanceName}.log
    log4j.appender.Roll.File=HelloWorld.log
    log4j.appender.Roll.MaxFileSize=20KB
    log4j.appender.Roll.MaxBackupIndex=10
    log4j.appender.Roll.layout=org.apache.log4j.PatternLayout
    log4j.appender.Roll.layout.ConversionPattern=%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### CRSDBAPPENDER - third appender writes to the database
    log4j.appender.CRSDBAPPENDER=org.apache.log4j.jdbc.JDBCAppender
    log4j.appender.CRSDBAPPENDER.Driver=net.sourceforge.jtds.jdbc.Driver
    log4j.appender.CRSDBAPPENDER.URL=jdbc:jtds:sqlserver:/arncorp15:1433;DatabaseName=LOG
    log4j.appender.CRSDBAPPENDER.USER=sa
    log4j.appender.CRSDBAPPENDER.PASSWORD=p8ss3doff
    log4j.appender.CRSDBAPPENDER.layout=org.apache.log4j.PatternLayout
    log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ('%X{myComputerName}', '%X{crsServerName}', '%d{dd MMM yyyy HH:mm:ss,SSS}', '%p', '%t', '%F', '%L', '%m')
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG(COMPUTERNAME,CRSSERVERNAME,LOGTIME,LOGLEVEL,THREADNAME,FILENAME,LINENUMBER,LOGTEXT) select host_name(),'${CRSServerName}${InstanceName}','%d','%5p','%t','%F','%L','%m%n'
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ("%X{myComputerName}", "%X{crsServerName}", "%d{dd MMM yyyy HH:mm:ss,SSS}", "%p", "%t", "%F", "%L", "%m")
    ------------------------------- end of log4j.properties file ------------------------------
    Here is the directory structure of my program. My log4j.properties file and HelloWorld.class file are residing in folder HelloWorld\bin.
    HelloWorld\bin
    HelloWorld\lib
    HelloWorld\src
    Please note - The same program works fine for console and file appender when I comment the database appender part in my properties file.
    Thanks
    Ravinder

    try this :
    log4j.appender.PROJECT.Append=false

Maybe you are looking for

  • OS 10.6.8 printing problem (HP 882C)

    People, I have an iMac Intel Core 2 Duo. My printer is an HP Deskjet 882C. I have been running Leopard OS 10.5.8. I needed to upgrade to Snow Leopard so I could run TurboTax. I saved my data and erased the partition on my hard drive that contained th

  • How to find length(in Bytes) of an Inputstream

    Hi , I have a dynamic InputStream which is coming from a HTTPRequest . My requirement is to read the data in stream more than once . If i read the data using read(), it will read the entire data and for the subsequent reading it is not allowing . So,

  • HT3546 Time capsule Serial Number WithOut time capsule available.

    My Time capsule (purch.from reseller 6/2010) was stolen and do not have the serial number. Will that serial number be listed in my saved system profile info? How many numbers and letters do the serial no. have for these: 2T, server-grade Apple Time C

  • Top sites and video problems with Safari 4.0 and Snow Leopard

    Since installing Snow Leopard, I've had problems with Safari 4.0. My Top Sites page doesn't load anymore, I get a blank white page. Also, video tutorials from Apple's own site will not display the video. I hear the audio portion but do not get video.

  • Help I am stuck in a never ending loop of windows xp restarting

    I have parellels on my iMac but I sometimes still restart in windows using boot camp. When I tried to restart using boot camp today I am stuck in a loop of windows xp starting and trying to run diskcheck, not finding it and trying to restart windows