Help with J2EE SDK 1.4 Virtual Servers please!

H!
Are we doomed to have just one virtual server pointing to port 80??
I have a Win2K computer with J2EE App Server 1.4. In this computer I stopped the IIS 5.0 in order to use the HTTP Server included with the product. I also run the DNS on the same machine with 3 domains. All name resolutions for these 3 domains work fine.
Now I want to enter to any of the 3 domains freely and execute JSP apps. But I don't want to enter ports numbers like this:
http://www.mytest.com:8081/hello.jsp
I just want to enter:
http://www.mytest.com/hello.jsp
So I defined a new http-port listener pointing to the 80 port on this server. With no SSL support.
Name: http-port80
IP Address: 0.0.0.0
POrt: : 80
Then I defined a new virtual server using the http-port listener. I set the following fields:
ID: mytest
Hosts: www.mytest.com
HTTP Listener: http-port80 (This is the name of the port listener)
Everything seems to be fine. I can enter http://www.mytest.com and call the hello.jsp it's ok.
But then I create a new virtual server for http://www.mytest2.com exactly as the one for the www.mytest.com, except for the host field: http://www.mytest2.com
Then when I restart the app server I got the message on the log: "Port already in use".
I don't want to enter http://www.mytest2.com:<port> but I've read that you cannot assign the same http-listener to 2 virtual servers, so I created another listener pointing to the same port 80. But I still have the same error.
Any ideas how to handle this?
Am I doing something wrong on the configuration?
Thank you very much!!

I can help you out with this, because I just solved this problem using the Apache web server 2.0 with mod_proxy and mod_proxy_http.
this is how the configuration works.
setup sunone creating one virtual host for each http-listener on a different port. and make sure these ports are any port except the 80. -- we will configure apache on this port and then use it as a reverse proxy to get to our hosts.
like this
virtual-listener-1 - port 8081
virtual-listener-2 - port 8082
virtual-listener-3 - port 8083
virtual-host-1: www1.domain.com bind to: virtual-listener-1
virtual-host-2: www2.domain.com bind to: virtual-listener-2
virtual-host-3: www3.domain.com bind to: virtual-listener-3
now download apache with all the modules http://www.apache.org
in your httpd.conf add the following lines of code.
#the code below will tell apache to enable the proxy for your host
<IfModule mod_proxy.c>
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from www1.domain.com
Allow from www2.domain.com
Allow from www3.domain.com
</Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
ProxyVia On
# End of proxy directives.
</IfModule>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www1.domain.com
<Location />
Order allow,deny
Allow from all
ProxyPass http://sunoneserver:8081/
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerName www2.domain.com
<Location />
Order allow,deny
Allow from all
ProxyPass http://sunoneserver:8082/
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerName www3.domain.com
<Location />
Order allow,deny
Allow from all
ProxyPass http://sunoneserver:8083/
</Location>
</VirtualHost>
note the sunone server indicates the server where you installed sunone-as (J2EE 1.4). this will give you the result you are looking for: all three of these sites will run on port 80 and each of them will respond to a different web application on sunone.
there are naturally limits because when you run out of ports on your application server this won't work any more but then again there are about 60000 of those free and i don't think you will be able to run that many sites on one server anyway.
Chris.

Similar Messages

  • How i can start with j2ee sdk?

    how i can start with j2ee sdk?

    You're in the same boat I'm in. I started by looking at the tutorial! You will get your feet wet with this.
    http://java.sun.com/j2ee/tutorial/index.html

  • Need help with premiere pro cs6 having performance issues please help

    need help with premiere pro cs6 having performance issues please help

    Welcome to the forum.
    First thing that I would do would be to look at this Adobe KB Article to see if it helps.
    Next, I would try the tips in this ARTICLE.
    If that does not help, a Repair Install would definitely be in order.
    Good luck,
    Hunt

  • Help: jTDS doesn't work with j2ee sdk 1.4

    Hello there!
    I'm wonrking with Win2k sp4, MS-Sql Server 7 and j2ee sdk 1.4 (the newest release).
    I'm trying to use the jTDS JDBC driver to access a MSSql database. This is the connection pool configuration:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="net.sourceforge.jtds.jdbcx.TdsDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" max-pool-size="32" max-wait-time-in-millis="60000" name="cmc" pool-resize-quantity="2" res-type="javax.sql.DataSource" steady-pool-size="8">
    <description>mydb</description>
    <property name="DatabaseName" value="mydb"/>
    <property name="LoginTimeout" value="6000"/>
    <property name="Password" value="mypass"/>
    <property name="User" value="myuser"/>
    <property name="PortNumber" value="1433"/>
    <property name="ServerName" value="localhost"/>
    </jdbc-connection-pool>
    I set up the configuration and restarted the server. I put the jtds-0.7.1.jar file on
    c:\sun\appserver\domains\domain1\lib folder and restarted the server. I've checked for the port 1433 and it's working fine.
    but when I ping, I always get the same error: Operation 'pingConnectionPool' failed in 'resources' Config Mbean.
    I'm getting nuts trying to solve this problem and I don't get it!.
    Please, any help would be appreciatted!!
    Thanx

    Hey! Alin! Thankyou!
    I finally solved the problem with your responses!!!
    I downloaded the final RC version of jTDS (0.8). I copyed the JAR file in c:\sun\appserver\domains\domain1\lib
    The final configuration in the domain.xml is:
    <description>mydb</description>
    <property name="DatabaseName" value="mydb"/>
    <property name="LoginTimeout" value="6000"/>
    <property name="Password" value="mypass"/>
    <property name="User" value="myuser"/>
    <property name="PortNumber" value="1433"/>
    <property name="ServerName" value="localhost"/>
    <property name="Server_type" value="sqlserver"/> <--- VERY IMPORTANT
    <property name="Charset" value="Unidoce"/> <--- VERY IMPORTANT
    </jdbc-connection-pool>
    An now it's pinging without problems!!!
    My only concern is that "Unicode" is a valid value for the "charset" property.
    Regards!

  • Help with J2EE Project Management

    Hi,
    We are about to begin a large J2EE project and are wondering if anyone could help with the following questions:
    1. Given the division of labor on J2EE projects (JSP developers, EJB developers, application deployers, etc...), what are "best practices" for building a team and ensuring that they communicate well after the design phase? How will the left arm know what the right arm is doing?
    2. What documentation should be produced during the design phase to give to the developers? Will this allow them to go off and develop independently of each other?
    3. Is there a "best practices" document anywhere on J2EE project management?
    Thanks in advance!!

    Hi,
    I feel any project to start with should have a prior planning,that too particularly for Object oriented programming projects,I feel UML is the best tool for entire process.I think rational software has got lot of Project Management Tools(PMT) and products at all stages.Please go through the rational.com site and hope you could find some info.I feel the answer to your second question is partly 'yes' and partly 'no'.The modules that you can split it up which have got some independent attributes,but it should not be too much in your project,then it affects the work matrix/There should be a optimal process to decide and that you can yourself formulate depending on the time frame,either way the last step of build or integration is not flexible enough that you should mind,modular flexibility can be there but the integration stage you are tied with a fixed process.So plan accordingly using a PMT tool for any project that matters and all the best.Bye
    Hari

  • Help with queries about boot camp and partition, please.

    Hi, I am hoping to partition my HDD. I have done this before, when I first got my macbook but got rid of it, and now I can't fully remember the do's and don'ts' of boot camp. I just need a few questions answered before I take any action.
    1. I have a 120GB HDD with about 15GB free space. If I partition the drive will I lose any data on my existing HDD?
    2. What is the minimal amount of space I can partition the drive and install Windows?
    (I have a copy of Windows XP SP2, and really only need to install it for the use of one program that isn't available on the Apple operating systems.)
    3. I tried using Parallels in which Windows took up about 6GB, will it be about the same again? I uninstalled it because I found it to lag a bit.
    If you can help with any of these queries I would really appreciate it, thanks!

    Maybe you should first get a larger drive; you don't have much more than the minimum 10% free space that Mac OS needs.
    Retry with Sun's VirtualBox. Maybe you just need more memory.
    Lose data? Step #1: backup.
    You may need to backup and erase your hard drive and then restore.
    I'd invest in 300GB drive though.

  • New User needs help with starting SDK

    I downloaded the J2EEsdk-1_4 files and completed the installation. I have looked at all the tutorials and quick-start documentation, but cannot find how to begin building an application. All I needed was very minimal Java parts to write a "Hello World" program for a class, but it prompted me to get the whole package.
    How do I get to a prompt window to write some code, then compile it, then run it? I tested the local server as it suggested and it is working, and I ran their sample program and it worked.
    I just need a pointer to get me started. I don't need all the web deployemnt stuff, etc....
    Sorry for the silly questions but you gotta start somewhere.
    Thanks

    Brent In Iowa, you're on the Air.
    Thanks for taking my call, Larry.
    Umm, yes, I'd like to ask Mr. McNealy a question.
    Go ahead.
    umm, yes, Mr. McNealy. I like your language
    Thanks, Brent. We hope with developers like you, to make it the most widely used language in the world. It's people like you that will helps us squash that bastard Gates and make me...umm, I mean Sun Microsystems the richest company known to man-kind.
    Yeah but that's my problem Mr. McNealy. How do I write Hello World?
    First, Brent, ya gotta download the right SDK. Not the J2EE but the J2SE. Then ya gotta follow the links on the let for the tutorials.
    Thanks for your question. Our next caller, George is in Boise, Idaho. Hello, Boise.

  • HELP WITH J2EE

    YESTARDAY I WAS WORKING WITH THE VISUAL ADMI NISTRATOR. THE SERVER SHUTDOWN BECAUSE HAD A FAILD WITH THE ENERGY. WHEN THE SERVER START AGAIN, I CANNOT GET UP, THE J2EE, MY SYSTEM IS A PI 7.00, WHEN I TRY TO ENTER TO EXCHANGE PROFILE, I CANNOT, THE BROWSER SHOW ME, A MESSAGE THAT SAY THE URL DOES NOT EXIT. WHEN I SEE THE TRANSACTION SMMS, DOES NOT SHOW ME THE J2EE.
    SOMEONE COULD HELP ME.
    THANKS
    ATTM LITTLE JUANITO

    Thanks for your attention.
    my system is AIX 5.300.
    this is the content of  dev_server0
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 60 / sock 114
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:48 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     55
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] Tue Apr 15 15:51:50 2008
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 95
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:50 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     57
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 95
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:50 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     59
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 95
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:50 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     61
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 95
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:50 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     63
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] Tue Apr 15 15:51:52 2008
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 96
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:52 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     65
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 96
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:52 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     67
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 96
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:52 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     69
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 96
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:52 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     71
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 20306] Tue Apr 15 15:51:57 2008
    [Thr 20306] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartu
    p.sadm.ShmCache
    [Thr 67891] Tue Apr 15 15:52:01 2008
    [Thr 67891] JLaunchISetState: change state from [Stopping (5)] to [Stopped (6)]
    [Thr 67891] Tue Apr 15 15:52:03 2008
    [Thr 67891] JLaunchIExitJava: exit hook is called (rc = 0)
    [Thr 67891] SigISetIgnoreAction : SIG_IGN for signal 20
    [Thr 67891] JLaunchCloseProgram: good bye (exitcode = 0)
    sapsrqdb:piqadm>
    this is the content of dev_dispatcher.
    trc file: "/usr/sap/PIQ/DVEBMGS00/work/dev_dispatcher", trc level: 1, release: "
    700"
    node name   : ID2396800
    pid         : 934092
    system name : PIQ
    system nr.  : 00
    started at  : Tue Apr 15 09:32:34 2008
    arguments         :
              arg[00] : /usr/sap/PIQ/DVEBMGS00/exe/jlaunch
              arg[01] : pf=/usr/sap/PIQ/SYS/profile/PIQ_DVEBMGS00_sapsrqdb
              arg[02] : -DSAPINFO=PIQ_00_dispatcher
              arg[03] : pf=/usr/sap/PIQ/SYS/profile/PIQ_DVEBMGS00_sapsrqdb
              arg[04] : -DSAPSTART=1
              arg[05] : -DCONNECT_PORT=51973
              arg[06] : -DSAPSYSTEM=00
              arg[07] : -DSAPSYSTEMNAME=PIQ
              arg[08] : -DSAPMYNAME=sapsrqdb_PIQ_00
              arg[09] : -DSAPPROFILE=/usr/sap/PIQ/SYS/profile/PIQ_DVEBMGS00_sapsrqda
    rg[10] : -DFRFC_FALLBACK=ON
              arg[11] : -DFRFC_FALLBACK_HOST=localhost
    [Thr  1] Tue Apr 15 09:32:34 2008
    [Thr  1] *** WARNING => INFO: Unknown property [instance.box.number=PIQDVEBMGS00
    sapsrqdb] [jstartxx_mt. 841]
    [Thr  1] *** WARNING => INFO: Unknown property [instance.en.host=sapsrqdb] [jsta
    rtxx_mt. 841]
    [Thr  1] *** WARNING => INFO: Unknown property [instance.en.port=3201] [jstartxx
    _mt. 841]
    [Thr  1] *** WARNING => INFO: Unknown property [instance.system.id=0] [jstartxx_
    mt. 841]
    JStartupReadInstanceProperties: read instance properties [/usr/sap/PIQ/DVEBMGS00
    /j2ee/cluster/instance.properties]
    -> ms host    : sapsrqdb
    -> ms port    : 3901
    -> OS libs    : /usr/sap/PIQ/DVEBMGS00/j2ee/os_libs
    -> Admin URL  :
    -> run mode   : normal
    -> run action : NONE
    -> enabled    : yes
    Used property files
    -> files [00] : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.properties
    Instance properties
    -> ms host    : sapsrqdb
    -> ms port    : 3901
    -> os libs    : /usr/sap/PIQ/DVEBMGS00/j2ee/os_libs
    -> admin URL  :
    -> run mode   : normal
    -> run action : NONE
    -> enabled    : yes
    Bootstrap nodes
    -> [00] bootstrap            : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    -> [01] bootstrap_ID2396800  : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    -> [02] bootstrap_ID2396850  : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    Worker nodes
    -> [00] ID2396800            : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    -> [01] ID2396850            : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    [Thr  1] JLaunchRequestQueueInit: create named pipe for ipc
    [Thr  1] JLaunchRequestQueueInit: create pipe listener thread
    [Thr 258] JLaunchRequestFunc: Thread 258 started as listener thread for np messa
    ges.
    [Thr 515] WaitSyncSemThread: Thread 515 started as semaphore monitor thread.
    [Thr  1] SigISetDefaultAction : default handling for signal 20
    [Thr  1] NiInit3: NI already initialized; param 'maxHandles' ignored (1;202)
    [Thr  1] CPIC (version=700.2006.09.13)
    [Thr  1] [Node: dispatcher] java home is set by profile parameter
            Java Home: /usr/java14_64
    [Thr  1] JStartupICheckFrameworkPackage: can't find framework package /usr/sap/P
    IQ/DVEBMGS00/exe/jvmx.jar
    JStartupIReadSection: read node properties [ID2396800]
    -> node name          : dispatcher
    -> node type          : dispatcher
    -> node execute       : yes
    -> jlaunch parameters :
    -> java path          : /usr/java14_64
    -> java parameters    : -Xj9 -Xgcpolicy:gencon -verbose:gc -Xmn70M -Djava.securi
    ty.policy=.\java.policy -Djava.security.egd=file:/dev/urandom -Djco.jarm=1
    -> java vm version    : J2RE 1.4.2 IBM J9 2.3 AIX ppc64-64 j9ap64142ifx-20070920
    (JIT enabled)
    -> java vm vendor     : IBM J9 VM (IBM Corporation)
    -> java vm type       : server
    -> java vm cpu        : ppc64
    -> heap size          : 200M
    -> init heap size     : 200M
    -> root path          : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/dispatcher
    -> class path         : ./bin/boot/boot.jar:./bin/system/bytecode.jar:.
    -> OS libs path       : /usr/sap/PIQ/DVEBMGS00/j2ee/os_libs
    -> main class         : com.sap.engine.boot.Start
    -> framework class    : com.sap.bc.proj.jstartup.JStartupFramework
    -> registr. class     : com.sap.bc.proj.jstartup.JStartupNatives
    -> framework path     : /usr/sap/PIQ/DVEBMGS00/exe/jstartup.jar:/usr/sap/PIQ/DVE
    BMGS00/exe/jvmx.jar
    -> shutdown class     : com.sap.engine.boot.Start
    -> parameters         :
    -> debuggable         : no
    -> debug mode         : no
    -> debug port         : 50000
    -> shutdown timeout   : 120000
    [Thr  1] JLaunchISetDebugMode: set debug mode [no]
    [Thr 772] JLaunchIStartFunc: Thread 772 started as Java VM thread.
    JHVM_LoadJavaVM: VM Arguments of node [dispatcher]
    -> stack   : 1048576 Bytes
    -> arg[  0]: exit
    -> arg[  1]: abort
    -> arg[  2]: vfprintf
    -> arg[  3]: -Xj9
    -> arg[  4]: -Xgcpolicy:gencon
    -> arg[  5]: -verbose:gc
    -> arg[  6]: -Xmn70M
    -> arg[  7]: -Djava.security.policy=.\java.policy
    -> arg[  8]: -Djava.security.egd=file:/dev/urandom
    -> arg[  9]: -Djco.jarm=1
    -> arg[ 10]: -Dsys.global.dir=/usr/sap/PIQ/SYS/global
    -> arg[ 11]: -Dapplication.home=/usr/sap/PIQ/DVEBMGS00/exe
    -> arg[ 12]: -Djava.class.path=/usr/sap/PIQ/DVEBMGS00/exe/jstartup.jar:/usr/sap/
    PIQ/DVEBMGS00/exe/jvmx.jar:./bin/boot/boot.jar:./bin/system/bytecode.jar:.
    -> arg[ 13]: -Djava.library.path=/usr/java14_64/jre/bin:/usr/java14_64/jre/bin:/
    usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/sap/PIQ/DVEBMGS00/exe:
    /usr/sap/PIQ/DVEBMGS00/exe:/usr/sap/PIQ/DVEBMGS00/exe:/software/install/PI/sapin
    st_exe.315468.1206236735:/usr/sap/PIQ/SYS/exe/run:/oracle/client/10x_64/instantc
    lient:/usr/java14_64/jre/bin/j9vm:/usr/sap/PIQ/DVEBMGS00/exe::/usr/lib:/usr/sap/
    PIQ/DVEBMGS00/j2ee/os_libs:/usr/sap/PIQ/DVEBMGS00/exe:/usr/sap/PIQ/DVEBMGS00/exe
    :/usr/sap/PIQ/DVEBMGS00/exe:/usr/lib:/lib:/usr/sap/PIQ/SYS/exe/run:/oracle/clien
    -> arg[ 14]: -Dmemory.manager=200M
    -> arg[ 15]: -Xmx200M
    -> arg[ 16]: -Xms200M
    -> arg[ 17]: -DLoadBalanceRestricted=no
    -> arg[ 18]: -Djstartup.mode=JCONTROL
    -> arg[ 19]: -Djstartup.ownProcessId=934092
    -> arg[ 20]: -Djstartup.ownHardwareId=F1751266886
    -> arg[ 21]: -Djstartup.whoami=dispatcher
    -> arg[ 22]: -Djstartup.debuggable=no
    -> arg[ 23]: -DSAPINFO=PIQ_00_dispatcher
    -> arg[ 24]: -DSAPSTART=1
    -> arg[ 25]: -DCONNECT_PORT=51973
    -> arg[ 26]: -DSAPSYSTEM=00
    -> arg[ 27]: -DSAPSYSTEMNAME=PIQ
    -> arg[ 28]: -DSAPMYNAME=sapsrqdb_PIQ_00
    -> arg[ 29]: -DSAPPROFILE=/usr/sap/PIQ/SYS/profile/PIQ_DVEBMGS00_sapsrqdb
    -> arg[ 30]: -DFRFC_FALLBACK=ON
    -> arg[ 31]: -DFRFC_FALLBACK_HOST=localhost
    -> arg[ 32]: -DSAPSTARTUP=1
    -> arg[ 33]: -DSAPSYSTEM=00
    -> arg[ 34]: -DSAPSYSTEMNAME=PIQ
    -> arg[ 35]: -DSAPMYNAME=sapsrqdb_PIQ_00
    -> arg[ 36]: -DSAPDBHOST=sapsrqdb
    -> arg[ 37]: -Dj2ee.dbhost=sapsrqdb
    [Thr 772] Tue Apr 15 09:32:35 2008
    [Thr 772] JHVM_LoadJavaVM: Java VM created OK.
    JHVM_BuildArgumentList: main method arguments of node [dispatcher]
    [Thr 4114] Tue Apr 15 09:32:42 2008
    [Thr 4114] JHVM_RegisterNatives: registering methods in com.sap.bc.krn.perf.Perf
    Times
    [Thr 4114] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup
    .JStartupFramework
    [Thr 4114] JLaunchISetClusterId: set cluster id 2396800
    [Thr 4114] JLaunchISetState: change state from [Initial (0)] to [Waiting for sta
    rt (1)]
    [Thr 4114] JLaunchISetState: change state from [Waiting for start (1)] to [Start
    ing (2)]
    [Thr 11054] Tue Apr 15 09:32:48 2008
    [Thr 11054] JLaunchISetTelnetPort: set telnet port 50008
    [Thr 11054] JLaunchISetTelnetPort: set telnet port 50008
    [Thr 8998] Tue Apr 15 09:32:49 2008
    [Thr 8998] JLaunchISetP4Port: set p4 port 50004
    [Thr 13881] Tue Apr 15 09:32:52 2008
    [Thr 13881] JLaunchISetHttpPort: set http port 50000
    [Thr 13881] JLaunchISetHttpsPort: set https port 50001
    [Thr 4114] Tue Apr 15 09:32:56 2008
    [Thr 4114] JLaunchISetState: change state from [Starting (2)] to [Running (3)]
    [Thr 11568] Tue Apr 15 09:33:26 2008
    [Thr 11568] JLaunchISetP4Port: set p4 port 50004
    [Thr 13367] Tue Apr 15 09:35:18 2008
    [Thr 13367] JLaunchISetHttpPort: set http port 50000
    [Thr 13367] JLaunchISetHttpsPort: set https port 50001
    [Thr 258] Tue Apr 15 13:48:51 2008
    [Thr 258] JLaunchRequestFunc: receive command:17, argument:0 from pid:1482990
    [Thr 258] JLaunchIShutdownInvoke: set shutdown interval (stop:1208285331/end:120
    8285451/TO:120)
    [Thr 258] JLaunchProcessCommand: Invoke VM Shutdown
    [Thr 258] JHVM_FrameworkShutdownDirect: invoke direct shutdown
    [Thr 8563] JLaunchISetState: change state from [Running (3)] to [Waiting for sto
    p (4)]
    [Thr 8563] JLaunchISetState: change state from [Waiting for stop (4)] to [Stoppi
    ng (5)]
    [Thr 8998] JLaunchISetHttpPort: set http port 50000
    [Thr 8998] JLaunchISetHttpsPort: set https port 50001
    [Thr 10797] JLaunchISetHttpPort: set http port 50000
    [Thr 10797] JLaunchISetHttpsPort: set https port 50001
    [Thr 11825] JLaunchISetP4Port: set p4 port 50004
    [Thr 12853] Tue Apr 15 13:48:52 2008
    [Thr 12853] JLaunchISetP4Port: set p4 port 50004
    [Thr 10026] JLaunchISetP4Port: set p4 port 50004
    [Thr 9769] Tue Apr 15 13:48:53 2008
    [Thr 9769] JLaunchISetHttpsPort: set https port 50001
    [Thr 9769] JLaunchISetHttpPort: set http port 50000
    [Thr 6942] Tue Apr 15 13:48:58 2008
    [Thr 6942] JLaunchISetTelnetPort: set telnet port 50008
    [Thr 8998] Tue Apr 15 13:48:59 2008
    [Thr 8998] JLaunchISetHttpPort: set http port 50000
    [Thr 8563] Tue Apr 15 13:49:02 2008
    [Thr 8563] JLaunchISetState: change state from [Stopping (5)] to [Stopped (6)]
    [Thr 8563] JLaunchIExitJava: exit hook is called (rc = 0)
    [Thr 8563] SigISetIgnoreAction : SIG_IGN for signal 20
    [Thr 8563] JLaunchCloseProgram: good bye (exitcode = 0)
    this the information that i have.

  • Help with J2EE Servlet

    I am creating a website to help unfortunate individuals. It is modeled after this. http://news.bbc.co.uk/2/hi/health/3164021.stm
    Right now, there is no way to make an immediate deposit. I want to include a static resource of a picture in my JSP page. Then when the user is ready, he presses a button and is transfered to a page where a deposit can be made. Of course, he doesn't need to move forward. He can deposit on the current page, if you know what I mean.
    Anyway, my question is this: which RequestDispatcher should I use?

    Anyway, my question is this: which
    RequestDispatcher should I use?
    Use JizzDispatcher for remote apps
    Locale instances can be created by applying Palm resources
    to Cyclops.

  • Please help with J2EE

    Hi,
    I'm trying to get started writing J2EE applications. I've downloaded the
    Mars IDE for J2EE, Java SE 8, MySQL, & Tomcat 6.0. Do I need anything
    else to get started?
    Also I'm getting lost in the documentation. Can anyone recommend
    any simple J2EE getting started tutorials that will work on MARS?
    Thanx in advance.

    On 07/23/2015 12:36 AM, Ralph Lecessi wrote:
    > Hi,
    >
    > I'm trying to get started writing J2EE applications. I've downloaded the
    > Mars IDE for J2EE, Java SE 8, MySQL, & Tomcat 6.0. Do I need anything
    > else to get started?
    >
    > Also I'm getting lost in the documentation. Can anyone recommend
    > any simple J2EE getting started tutorials that will work on MARS?
    >
    > Thanx in advance.
    Certainly. The best tutorials I've found are found at
    http://www.vogella.de/tutorials
    Best of luck to you!

  • Need Help with J2EE Connector Architecture!! Please!

    Scenario:
    We are trying to establish connectivity to a CTG using the new JCA connector specifications.
    We have our input in the form of a string but the Interaction.execute(ioRecord, ioRecord object specifies record object as parameters.
    How do we create a record that correctly represents our current input string?
    Is there a predetermined record format that we must use for out connection or can we create our own record?
    If we can create our own record how is it converted and padded properly for a byte stream that is required by the CTG?

    Send a message to [email protected] they help answer tough questions for a fee.

  • Need help with query that can look data back please help.

    hi guys i have a table like such
    CREATE TABLE "FGL"
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )and i have a data like such
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7470','4730','02','10','2','200');I bascially need to get the total of the budget column. however its not as simple as it sound(well atleast not for me.) the totals carry over to the new period. youll noticed the you have a period column. basically what im saying is that
    fgl_grant_year 10 period 1 = for account 7600 its $100 and $100 for period 2 you see 100 dollars again this is not to be added this is the carried over balance. which remains $100.
    so im trying to write a query that basically does the following.
    im given a period for the sake of this example lets say period 1 i get nothing else. I have to find the greates grant year grab the amount for period 14(which is the total from the previous year) and add it to the amount of the current period. in this case period 1 grnt_year 11
    so the expected outcome should be $700
    240055     240055     7240     4730     02     10     14     200
    240055     240055     7600     4730     02     10     14     100
    240055     240055     7600     4730     02     11     1     400keep in mind that im not given a year just a period.
    any help that you guys can offer would be immensely appreciated. I have been trying to get this to work for over 3 days now.
    finally broke down and put together this post
    Edited by: mlov83 on Sep 14, 2011 8:48 PM

    Frank
    wondering if you can help me modify this sql statement that you provided me with .
    table values have been modified a bit.
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');i need to take one more thing into consideration. if the greatest year has a value on period 00 i need to ignore the period 14 and the current period total would be
    the current period +(current period - greatest year 00)
    hope that makes sense so in other words with the new data above. if i was querying period two of grant year 11. i would end up with $800
    because the greatest year is 11 it contains a period 0 with amount of $400 so my total should be
    period 2 amount $ 600
    period 0 amount $ 400 - period 2 amount of $600 = 200
    600+200 = $800
    if i query period 1 of grant 360055 i would just end up with 800 of grnt year 10.
    i have tried to modify that query you supplied to me with no luck. I have tried for several day but im embarrased to say i just can get it to do what im trying to do .
    can you please help me out.
    Miguel

  • Help with exporting tracks from Garageband into iTunes please?!

    I have voice-recorded a list of Italian words and phrases which I want to import into iTunes as separate tracks so that I can shuffle them & test myself to learn them. So far I have been using the cycle region to import each word but it is taking forever! I beieve it is not possible to have multpile cycle regions and have been playing about with the markers using the podcast track but I can't get it to export in chapters either.
    Is there a way to split a single track in Garageband and import it as mulitple tracks into iTunes all at the same time?
    Thanks for any help you can give me!

    vanessa2011 wrote:
    the chapters only work when you actually burn to CD. I assume that's correct?
    for your purposes, yes (technically it would create podcast style chapters so you could jump past a section, for instance, but not in a shuffle fashion like you want)
    vanessa2011 wrote:
    I'm guessing that will take an awful lot of CDs?!
    you could use a re-writtable, but no, this doesn't sound like a really workable solution for what you're doing.
    vanessa2011 wrote:
    Just two of the chapters has already become 220 'songs' in iTunes and over 20MB.
    one thing you should be doing is selecting the "compress" option in the export dialogue. you can probably use very aggressive compression for spoken word since hi-fidelity wouldn't be that important (you might experiment with a custom setting to see how low you can go with it still being acceptable)
    vanessa2011 wrote:
    I wonder how much would fit onto a CD
    in terms of audio, it's time, not disc space. a standard CD holds 74 minutes of audio (some store 80)
    you could try an audio editor instead of GB:
    http://www.bulletsandbones.com/GB/GBFAQ.html#audioeditors
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    but GB is probably the most simple option

  • Need help with PHP mail script [was: Can someone please help me?]

    I'm trying to collect data from a form and email it.  I'm using form2mail.php and the problem is that the email is not collecting the form info and it has the same email address in the From: and To: lines. I'm really stuck and would appreciate any help.
    Here is the HTML code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Contact Us</title>
    <style type="text/css">
    <!--
    .style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style2 {
    font-size: 14px;
    color: #000000;
    body {
    background-color: #FFFFFF;
    body,td,th {
    color: #CC3300;
    .style3 {font-size: 14px; font-weight: bold; }
    .style6 {font-size: 18px}
    .style7 {font-size: 16px}
    .style8 {font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style9 {font-size: 16px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style10 {color: #000000}
    -->
    </style>
    </head>
    <body>
    <div align="center"><img src="nav2.jpg" alt="nav bar" width="698" height="91" border="0" usemap="#Map2" />
      <map name="Map2" id="Map2">
      <area shape="rect" coords="560,9,684,38" href="accessories.html" />
    <area shape="rect" coords="456,8,548,38" href="contact.html" />
    <area shape="rect" coords="305,8,435,40" href="photog.html" />
    <area shape="rect" coords="187,9,283,39" href="services.html" />
    <area shape="rect" coords="81,10,167,39" href="aboutus.html" />
    <area shape="rect" coords="5,10,68,39" href="index.html" />
    </map>
      <map name="Map" id="Map">
        <area shape="rect" coords="9,9,69,39" href="index.html" />
        <area shape="rect" coords="83,11,165,39" href="aboutus.html" />
        <area shape="rect" coords="182,9,285,38" href="services.html" />
        <area shape="rect" coords="436,14,560,37" href="contact.html" />
        <area shape="rect" coords="563,14,682,38" href="accessories.html" />
      </map>
    </div>
    <p> </p>
    <form id="TheForm" name="TheForm" action="form2mail.php" method="post">
      <p align="center" class="style2">P<span class="style1">lease fill out form below for a &quot;free no obligation quote&quot; then click submit.</span></p>
      <p align="center" class="style3">(*Required Information)</p>
      <div align="center">
        <pre><strong><span class="style8">*Contact Name</span> </strong><input name="name" type="text" id="name" />
    <span class="style8"><strong>
    Business Name </strong></span><input name="bn" type="text" id="bn" />
    <span class="style8"><strong>*Phone Number <input type="text" name="first" size="3" onFocus="this.value='';"
        onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.second);" maxlength="3" value="###" /> - <input type="text" name="second" size="3" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.third);" maxlength="3" value="###" /> - <input type="text" name="third" size="4" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.fourth);" maxlength="4" value="####"/> </strong></span>
    <strong><span class="style1">*</span><span class="style8">Email Address</span> <input name="email" type="text" id="email" />     </strong> </pre>
        <label><span class="style9">*Re-enter to confirm</span>
        <input name="emx" type="text" id="emx" /></label><br /><br /><span class="style9">
    <label></label>
        </span>
        <p><span class="style9">*Best time to call </span>
          <select name="name1[]" multiple size="1" >
            <option>8am-9am</option>
            <option>9am-10am</option>
            <option>10am-11am</option>
            <option>11am-12pm</option>
            <option>12pm-1pm</option>
            <option>1pm-2pm</option>
            <option>2pm-3pm</option>
            <option>3pm-4pm</option>
            <option>4pm-5pm</option>
            <option>5pm-6pm</option>
            <option>6pm-7pm</option>
            <option>7pm-8pm</option>
          </select>
          <br />
          <br />
          <span class="style9">Type of Location</span>
          <select name="name2[]" multiple size="1" >
            <option>Residential</option>
            <option>Commercial</option>
          </select>
          <br />
          <br />
            <span class="style1"><br />
            <strong><br />
              <span class="style6">*Type of Services Requested:</span></strong><br />
            </span><strong><span class="style10">(check all that apply)</span><br />
                </strong><br />
                <span class="style7"><span class="style1"><strong>Janitorial cleaning</strong></span>
                <input type="checkbox" name="checkbox[]" value="checkbox" multiple/>
                <br />
                </span><strong><br />
                  <span class="style8">Mobile Auto Detailing</span>
                <input type="checkbox" name="checkbox2[]" value="checkbox" multiple/>
                <br />
                <br />
                  </strong><span class="style9">Moving/Hauling</span>
          <input type="checkbox" name="checkbox3[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Pressure washing</span>
          <input type="checkbox" name="checkbox4[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window washing</span>
          <input type="checkbox" name="checkbox5[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window Tinting</span>
          <input type="checkbox" name="checkbox6[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Boat cleaning</span>
          <input type="checkbox" name="checkbox7[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">RV cleaning</span>
          <input type="checkbox" name="checkbox8[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Motorcycle cleaning</span>
          <input type="checkbox" name="checkbox9[]" value="checkbox" multiple/>
          <br />
          <br />
          <br />
          <br />
          <input name="SB"  type="button" class="style9" value="Submit" onClick="sendOff();">
        </p>
      </div></label>
      <script language="JavaScript1.2">
    // (C) 2000 www.CodeLifter.com
    // http://www.codelifter.com
    // Free for all users, but leave in this  header
    var good;
    function checkEmailAddress(field) {
    // Note: The next expression must be all on one line...
    //       allow no spaces, linefeeds, or carriage returns!
    var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org) |(\..{2,2}))$)\b/gi);
    if (goodEmail){
       good = true
    } else {
       alert('Please enter a valid e-mail address.')
       field.focus()
       field.select()
       good = false
    function autoTab(startPoint,endPoint){
    if (startPoint.getAttribute&&startPoint.value.length==startPoint.getAttribute("max length"))
    endPoint.focus();
    function checkNumber(phoneNumber){
    var x=phoneNumber;
    var phoneNumber=/(^\d+$)|(^\d+\.\d+$)/
    if (phoneNumber.test(x))
    testResult=true
    else{
    alert("Please enter a valid number.")
    phoneNumber.focus();
    phoneNumber.value="";
    testResult=false
    return (testResult)
    function sendOff(){
       namecheck = document.TheForm.name.value   
       if (namecheck.length <1) {
          alert('Please enter your name.')
          return
       good = false
       checkEmailAddress(document.TheForm.email)
       if ((document.TheForm.email.value ==
            document.TheForm.emx.value)&&(good)){
          // This is where you put your action
          // if name and email addresses are good.
          // We show an alert box, here; but you can
          // use a window.location= 'http://address'
          // to call a subsequent html page,
          // or a Perl script, etc.
          window.location= 'form2mail.php';
       if ((document.TheForm.email.value !=
              document.TheForm.emx.value)&&(good)){
              alert('Both e-mail address entries must match.')
    </script>
    </form>
    <p> </p>
    </body>
    </html>
    and here is the form2mail.php:
    <?php
    # You can use this script to submit your forms or to receive orders by email.
    $MailToAddress = "[email protected]"; // your email address
    $redirectURL = "http://www.chucksmobile.com/thankyou.html"; // the URL of the thank you page.
    $MailSubject = "[Customer Contact Info]"; // the subject of the email
    $sendHTML = FALSE; //set to "false" to receive Plain TEXT e-mail
    $serverCheck = FALSE; // if, for some reason you can't send e-mails, set this to "false"
    # copyright 2006 Web4Future.com =================== READ THIS ===================================================
    # If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".
    # If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.
    # To block an IP, simply add it to the blockip.txt text file.
    # CHMOD 777 the blockip.txt file (run "CHMOD 777 blockip.txt", without the double quotes)
    # This is needed because the script tries to block the IP that tried to hack it
    # If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name"
    # you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple>
    # you have to do the same with checkboxes
    Web4Future Easiest Form2Mail (GPL).
    Copyright (C) 1998-2006 Web4Future.com All Rights Reserved.
    http://www.Web4Future.com/
    This script was written by George L. & Calin S. from Web4Future.com
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ===================================================
    $w4fver =  "2.2";
    $ip = ($_SERVER['HTTP_X_FORWARDED_FOR'] == "" ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR']);
    //function blockIP
    function blockip($ip) {
    $handle = @fopen("blockip.txt", 'a');
    @fwrite($handle, $ip."\n");
    @fclose($handle);
    $w4fx = stristr(file_get_contents('blockip.txt'),getenv('REMOTE_ADDR'));
    if ($serverCheck) {
    if (preg_match ("/".str_replace("www.", "", $_SERVER["SERVER_NAME"])."/i", $_SERVER["HTTP_REFERER"])) { $w4fy = TRUE; } else { $w4fy = FALSE; }
    } else { $w4fy = TRUE; }
    if (($w4fy === TRUE) && ($w4fx === FALSE)) {
    $w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body><font face=3Dverdana size=3D2>";
    if (count($_GET) >0) {
    reset($_GET);
    while(list($key, $val) = each($_GET)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end if
    else {
    reset($_POST);
    while(list($key, $val) = each($_POST)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }   
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end else
    $w4fMessage .= "<font size=3D1><br><br>\n Sender IP: ".$ip."</font></font></body></html>";
        $w4f_what = array("/To:/i", "/Cc:/i", "/Bcc:/i","/Content-Type:/i","/\n/");
    $name = preg_replace($w4f_what, "", $name);
    $email = preg_replace($w4f_what, "", $email);
    if (!$email) {$email = $MailToAddress;}
    $mailHeader = "From: $name <$email>\r\n";
    $mailHeader .= "Reply-To: $name <$email>\r\n";
    $mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n";
    $mailHeader .= "MIME-Version: 1.0\r\n";
    if ($sendHTML) {
      $mailHeader .= "Content-Type: multipart/alternative;";  
      $mailHeader .= "  boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n";    
    $mailHeader .= "X-Priority: 3\r\n";
    $mailHeader .= "X-Mailer: PHP/" . phpversion()."\r\n";
    $mailHeader .= "X-MimeOLE: Produced By Web4Future Easiest Form2Mail $w4fver\r\n";
    if ($sendHTML) {
      $mailMessage = "This is a multi-part message in MIME format.\r\n\r\n";
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";
      $mailMessage .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";  
      $mailMessage .= "Content-Type: text/html;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= "$w4fMessage\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730--\r\n";  
    if ($sendHTML === FALSE) {
      $mailHeader .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";}
    else { header("Location: ".$redirectURL); }
    } else { echo "<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";}
    ?>
    Thanks in advance,
    Glenn
    [Subject line edited by moderator to indicate nature of request]

    Using PHP to process an online form and send the input by email is very simple. The mail() function takes a minimum of three arguments, namely: the address the mail is being sent to, the subject line, and the body of the email as a single string. The reason some people use scripts like form2mail.php is because they don't have the knowledge or patience to validate the user input to make sure it's safe to send.
    Rather than attempt to trawl through your complex form looking for the problems, I would suggest starting with a couple of simple tests.
    First of all, create a PHP page called mailtest.php containing the following script:
    <?php
    $to = '[email protected]'; // use your own email address
    $subject = 'PHP mail test';
    $message = 'This is a test of the mail() function.';
    $sent = mail($to, $subject, $message);
    if ($sent) {
      echo 'Mail was sent';
    } else {
      echo 'Problem sending mail';
    ?>
    Save the script, upload it to your server, and load it into a browser. If you see "Mail is sent", you're in business. If not, it probably means that the hosting company insists on the fifth argument being supplied to mail(). This is your email address preceded by -f. Change the line of code that sends the mail to this:
    $sent = mail($to, $subject, $message, null, '[email protected]');
    Obviously, replace "[email protected]" with your own email address.
    If this results in the mail being sent successfully, you will need to adapt the code in form2mail.php to accept the fifth parameter. You need to change the following line, which is a few lines from the end of the script:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader))
    Change it to this:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader, '[email protected]'))
    Again, use your own email address instead of "[email protected]".
    Once you have determined whether you need the fifth argument, test form2mail.php with a very simple form like this:
    <form id="form1" name="form1" method="post" action="form2mail.php">
      <p>
        <label for="name">Name:</label>
        <input type="text" name="name" id="name" />
      </p>
      <p>
        <label for="email">Email:</label>
        <input type="text" name="email" id="email" />
      </p>
      <p>
        <label>
          <input type="checkbox" name="options[]" value="boat cleaning" id="options_0" />
          Boat cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="RV cleaning" id="options_1" />
          RV cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="motorcycle cleaning" id="options_2" />
          Motorcycle cleaning</label>
      </p>
      <p>
        <input type="submit" name="send" id="send" value="Submit" />
      </p>
    </form>
    If that works, you can start to make the form more complex and add back your JavaScript validation.

  • Help with my ipod and USB!! PLEASE!!

    I have recently had to re-install a new ( genuine ) copy of Windows XP, and now my ipod is not being recognised by my USB ports, it states that no drivers have been installed, I have re-installed my installation disc and itunes 3 times now but still no luck!!
    I have also tested ALL of my USB ports with other devices and they work fine!
    Someone help me please!!
    Lee.

    Check these out:
    iPod Does Not Appear in My Computer
    iPod Appears in Windows but not in iTunes
    I hope this helps, post back!

Maybe you are looking for