Very Strange - Form Action="Post" is Being Received as a GET
Hi All,
I have been having some trouble with this intermittent problem. It seems that every once and a while, when a user submits a form with the action set to POST, we recieve the request as a GET with no parameters. The strange thing is, the form will work for the same user in the same session but then, all of a sudden, this will happen. This is happening on several of our pages and there doesn't seem to be any rhyme or reason to it. Quite frustrating.
I am hoping that somebody somewhere has run into this problem before. Thanks in advance for your help.
I use a shitty little daemon called tinyweb. It sets an environment variable CONTENT_LENGTH to 0 if it receives a GET request, and puts the GET parameter string in the environment. If it receives POST, it sets CONTENT_LENGTH to the length of the data and pipes it to the standard input stream of my script/executable.
I don't know how your's works, but my method for getting the data is like this:
1) If CONTENT_LENGTH is 0 or undefined, just get the data from the environment variable.
2) If CONTENT_LENGTH isn't 0, then read all the data from stdin.
Similar Messages
-
Oracle Forms 6i - very strange problem.
Dear, good afternoon!
First, excuse me for bad English writing. I'm still learning, I'm Brazilian ...
This is my first post, I started working with Oracle Forms and I recently came across a very strange issue, Forms do not know if it works differently than other technologies, but this error left me somewhat surprised.
Well, see the following situation:
System / BD Production (Access through VPN)
System / BD Test (access through VPN)
System Development (Location) / Test Bank (VPN).
Access to the environment TEST = OK. As
- I put the shortcut Oracle 6i forms to the address of *. FMX server through VPN.
Access to the Production environment = NOT OK. As
- I put the shortcut Oracle 6i forms to the address of *. FMX server through VPN.
Note: The application opens, all right. But when choosing a menu form, this form is not loaded on the screen. As the link it was disabled.
It can be kind of access? NO. For tested with the login of a user that is in place (no access through vpn) and the failure persists. I went to this user my login, and can access it normally.
Can be connected through VPN? I think NOT, because if the TEST environment would not work.
In short: When you access the TEST environment, everything works. I can open any form of the system through the menus, but in production, the forms do not open, as if he had called the forms.
Recalling that the people who are local access normally. As with my login on with it.
Would anyone answer me what might be happening?
Thank you in advance!
Regards,
Bruno Ambrozio
Skype: b.ambrozio
MSN: [email protected]
GTalk/Mailto: [email protected]It can be kind of access? NO. For tested with the login of a user that is in place (no access through vpn) and the failure persists. I went to this user my login, and can access it normally.
Can be connected through VPN? I think NOT, because if the TEST environment would not work.Test your network with tnsping80 and/or sqlplus first. -
I'm using Apple Mail 2.1.3 on a MacBook running OS 10.4.11. A very strange thing is happening. E-mail messages that I either sent or received months ago are showing up in my mailbox and receivers' mailboxes. In one case, a message someone had sent to me wound up in the mailbox of a third person, who was not included in the address list!! I have only two accounts, and have checked everything; only one account is showing the repeats Now, that account is my professional account, and it resides in three places: I use it on the laptop described here, I use it through Apple Mail on the much newer desktop Mac in my office, and I can run it through Web mail on my employer's server, which is where the professional account resides (I have a mailbox there, etc.) That program is called Zimbra.
My personal account is with Earthlink and is not doing the repeats. I access it either through my MacBook's Apple Mail or the Web; the Apple Mail on my office Mac is not configured to access the Earthlink server.
What IS going on here?? My friends, colleagues, and students (I teach college) are mystified by these ancient messages.
Thanks for any help!!I'm using Apple Mail 2.1.3 on a MacBook running OS 10.4.11. A very strange thing is happening. E-mail messages that I either sent or received months ago are showing up in my mailbox and receivers' mailboxes. In one case, a message someone had sent to me wound up in the mailbox of a third person, who was not included in the address list!! I have only two accounts, and have checked everything; only one account is showing the repeats Now, that account is my professional account, and it resides in three places: I use it on the laptop described here, I use it through Apple Mail on the much newer desktop Mac in my office, and I can run it through Web mail on my employer's server, which is where the professional account resides (I have a mailbox there, etc.) That program is called Zimbra.
My personal account is with Earthlink and is not doing the repeats. I access it either through my MacBook's Apple Mail or the Web; the Apple Mail on my office Mac is not configured to access the Earthlink server.
What IS going on here?? My friends, colleagues, and students (I teach college) are mystified by these ancient messages.
Thanks for any help!! -
Form content not being received
I've created a contact form and set the form action to post
the formmailer
script pasted below. It correctly goes to the "thank you"
page I've set up,
but I never get anything in my inbox.
I've tried including a hidden input field with the email
address into the
code, but that didn't work and ideally, I'd rather not have
to do that.
I've been wrestling with this issue for a couple of days now
and for the
life of me can't figure it out. I feel like I'm missing
something obvious.
(An FYI that the first part of the email addresses listed are
not the actual
first part.)
Here's the link to the contact page:
http://www.voterobjames.com/contact.php
The formmailer code is in the next post.
Thanks for any help.
Heather<?php
// General Variables
$check_referrer="no";
$referring_domains="
http://www.voterobjames.com/";
// Default Error and Success Page Variables
$error_page_title="Error - Missed Fields";
$error_page_text="Please use your browser\'s back button to
return to the
form and complete the required fields.";
$thanks_page_title="Message Sent";
$thanks_page_text="Thank you for your inquiry";
// options to use if hidden field "config" has a value of 0
// recipient info
$charset[0]="iso-8859-1";
$tomail[0]="[email protected]";
$cc_tomail[0]="[email protected]";
$bcc_tomail[0]="";
// Mail contents config
$subject[0]="Message from voterobjames.com";
$reply_to_field[0]="email";
$reply_to_name[0]="name";
$required_fields[0]="name,city,province,foundsite,commentType,message";
$required_email_fields[0]="email";
$attachment_fields[0]="";
$return_ip[0]="yes";
$mail_intro[0]="The following are form results from your web
site:";
$mail_fields[0]="name,email,city,province,foundsite,commentType,message";
$mail_type[0]="text";
$mail_priority[0]="1";
// Send back to sender config
$send_copy[0]="no";
$send_copy_format[0]="vert_table";
$send_copy_fields[0]="Name,Comments";
$send_copy_attachment_fields[0]="";
$copy_subject[0]="Subject of Copy Email";
$copy_intro[0]="Thanks for your inquiry, the following
message has been
delivered.";
$copy_from_email[0]="";
$copy_from_name[0]="";
$copy_tomail_field[0]="Email";
// Result options
$header[0]="";
$footer[0]="";
$error_page[0]="error.php";
$thanks_page[0]="thankyou.php";
// options to use if hidden field "config" has a value of 1
// recipient info
$charset[1]="";
$tomail[1]="";
$cc_tomail[1]="";
$bcc_tomail[1]="";
// Mail contents config
$subject[1]="";
$reply_to_field[1]="";
$reply_to_name[1]="";
$required_fields[1]="";
$required_email_fields[1]="";
$attachment_fields[1]="";
$return_ip[1]="";
$mail_intro[1]="";
$mail_fields[1]="";
$mail_type[1]="";
$mail_priority[1]="";
// Send back to sender config
$send_copy[1]="";
$send_copy_format[1]="";
$send_copy_fields[1]="";
$send_copy_attachment_fields[1]="";
$copy_subject[1]="";
$copy_intro[1]="";
$copy_from_email[1]="";
$copy_from_name[1]="";
$copy_tomail_field[1]="";
// Result options
$header[1]="";
$footer[1]="";
$error_page[1]="";
$thanks_page[1]=""; -
Please help me to receive my emails again on my ipad.after upgrading ti ios6 I do not get my emails on my ipad while everything is okay.
I can send email from my ipad,it's very strange
Can somebody help me please ?
ByeIf you pull the folder list/Inbox part of the screen down and then release it, does that not refresh it ?
-
Missing InputField values on RadioButton Action (very strange) !!
Hi SDN,
I'm facing a very strange error!
When I select an option of a RadioButtonGroupByKey (it calls a method), the value of an InputField disappears!! Or if I have changed the value of the InputField before selecting the Radio, the old value appears instead of the new!
And the worst problem is that it happens sometimes, and sometimes doesn't.
Some points:
1: Even with an empty method it happens!!
2: Wthout calling a methos it doesn't happen!!
3: If I click on a button, calling the same method, the problem doesn't happen (only with the Radio)!!
I've tried everything, like pulling the value from the InputField element and forcing it in the context (before, during and after the method), but nothing has solved the problem! Because the value already comes empty (or old) from the InputField!!
Please, has anybody already faced this problem??
Kind regards!
FabioHi Maksim,
InputField:
value: V_NomeObj (type: com.sap.cadastrosolicitacaolista.model.types.Zznome_Obj)
RadioButtonGroupByKey:
selectedKey: RadioCompraCentFixo (type: String)
onSelect: Teste (this Action calls an empty method, just for test)
On wdDoInit I'm filling values in the "RadioCompraCentFixo" attribute.
=================================
ISimpleTypeModifiable myType1 = wdThis.wdGetAPI().getContext().getModifiableTypeOf("RadioCompraCent");
IModifiableSimpleValueSet values1 = myType1.getSVServices().getModifiableSimpleValueSet();
values1.put("S","Sempre");
values1.put("N","Nunca");
values1.put("C","Condicional");
wdContext.currentContextElement().setRadioCompraCent("S");
=================================
Is it sufficient?
Thanks a lot! -
A Very Strange Post Update Problem
Hi guys, new to the forum here, wondering if I could get some help with a most disturbing problem...
Off the bat, I use a ppc Mac G5 running 10.4.11. I use this for Music production, and general music listening in my studio. For Audio I use pro tools HD 7.3 (as well as logic 8), with a digidesign 192 IO interface, and run most ofmy audio thru that. Now that we have that out the way... I normally dont agree to updates, as I would not like to upset a balance thats been working perfectly for me for some time, but 2 days ago, one of my assistants was using the computer and agreed to the latest update for Itunes, quicktime, and logic (but not the security update). Immedietly after the update finished (during which he said the quicktime update crashed), the system started going haywire, pro tools was shutting down, itunes wouldn't open, the like... Well after uninstalling and reinstalling itunes and quicktime, all order was restored, except for one AWFUL problem.. the sound coming out of any program BESIDES pro tools (itunes, logic, toast) is very strange, as if its coming thru very cheap speakers. I've run itunes through both the digi interface and the standard sound card (it has the same problem), and checked the EQ settings (flat), my sample and bit rates are straight... I have no idea! if anyone could offer some insight, It would be much appreciated! Thanks!!HI and Welcome to Apple Discussions...
It's possible there's an underlying problem with your hard drive.
Insert the installer disk and Restart, holding down the "C" key until grey Apple appears.
Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) and launch Disk Utility.
Select your HDD (manufacturer ID) in the left panel.
Select First Aid in the Main panel.
*(Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)*
Click Repair Disk on the bottom right.
If DU reports disk does not need repairs quit DU and restart.
If DU reports errors Repair again and again until DU reports disk is repaired.
When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
Select your start up disk and click Restart
Also, make sure you have sufficient drive space. Control or right click the MacintoshHD icon on your Desktop. Click "Get Info". Under the General tab you will see Capacity and Available. Make sure there is at least 10% available disk space, 15% is better.
If the drive appears to be ok and you have enough available disk space, you could try the 10.4.11 combo update available here. http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eppc.html
Make sure and run Disk Utility and repair disk permissions BEFORE and AFTER the installation.
Quit any open applications/programs. Launch Disk Utility. Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac.
Carolyn -
Very strange error : IDOC to jdbc scenario
Hi
I am getting a very strange error when I see the log for the idoc to jdbc scenario that I am building.
The mapping test shows the header record and line item record properly in the mapping result.
insert, access nodes, fields with access nodes are all formed correctly.
However the communication channel log shows below error.
Could not execute statement for table/stored proc. "tblTestItem" (structure "Item") due to com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.
JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'tblTestItem' (structure 'Item'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.
The message status was set to WAIT.
The query that I see in the log is :INSERT INTO tblTestItem () VALUES ()
However mapping tool shows that all nodes are correctly formed.
Please assist.Hi
I am still getting this issue even after the below steps so kind of stuck - actually very much stuck.
1. Restart of the dev environment
2. Tried with a new extension of the idoc
In the communication channel log for the JDBC receiver channel I still see
INSERT INTO tblItem () VALUES ()
The payload that I see in the message content tab is as follows
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_XXX_XXXX xmlns:ns0="http://capita.com/pi/XXXX">
- <Statement>
- <dbTableName action="INSERT">
<table>tblItem</table>
</dbTableName>
- <access>
<InvoiceNo>0000000009293467</InvoiceNo>
</access>
</Statement>
</ns0:MT_XXX_XXXX>
How do I debug the jdbc adapter to see how it converts the above xml output from the mapping step (note that this output is from an actual run and not test tool) to a sql query.
Very strange that the column names are present in the target payload but it is not reflecting in the query.
I have other tables being populated with the same jdbc receiver communication channel which makes this more and more confusing.
PLEASE ADVICE. -
MacBook Pro - Battery behaving very strangely
I have noticed there are already many threads on this, couldn't decide which one to post in so am starting a new one.
I have a MBP 2.33 C2D 17" from late 2006. Last year I experienced the 'expanding battery' problem, my battery totally warped out of shape and was not working properly. After a fair bit of trouble with Apple France (who basically said, too bad, buy a new one), I eventually was able to go above their heads and get Apple to send me a free replacement. This seemed fair seeing as I had bought my MBP within the timeframe of an official battery recall published on the Apple site. The new battery worked absolutely fine, and is now still less than a year old.
Recently though, it has started to behave very strangely. I hadn't made any connection that it could be to do with having upgraded to Snow Leopard, but in retrospect, after reading many of the threads here, it does seem likely that this is the case.. I recently did a big upgrade from Tiger to SL on this very machine, and it has been since then that I've had very erratic battery behaviour.
My symptoms are similar to many I've read here: The remaining battery time (when not connected to AC) will jump from say 3 hours down to 15 mins very suddenly. Then sometimes it will jump back up again. Sometimes my battery health condition will say 'replace now', other times 'replace soon' or other times 'normal'. Also, sometimes the machine will just go to sleep with no warning, even when it had estimated more than an hour of battery time left.. upon reconnection to AC, suddenly it says 0%.
I have always been careful to power cycle the battery properly, to let it run down regularly. Also since noticing this problem, the first thing I tried to do was recalibrate.. But I've tried twice now with no success. I let the machine run right down till it went to sleep, then left it on overnight, waiting for the power LED to stop flashing on the front of the machine.. But it wouldn't stop flashing even after being left off overnight. I have yet to try an SMC reset, will do that next.
I realize my battery is not brand new, nor is my computer. However, this was a replacement battery I received less than a year ago. I'll put the battery stats below, but I'm not sure I believe them because I've been checking what is says a lot recently and sometimes it even shows a full charge capacity of a negative number! Something strange is going on here. I obviously don't expect full performance from a battery nearly a year old, but what it's doing here seems to be more than just a case of a battery getting old, especially having seen that many other users are having a similar set of symptoms after going to Snow Leopard.
Model Information:
Manufacturer: SMP
Device name: ASMB014
Pack Lot Code: 0002
PCB Lot Code: 0000
Firmware Version: 0110
Hardware Revision: 0500
Cell Revision: 0102
Charge Information:
Charge remaining (mAh): 2453
Fully charged: Yes
Charging: No
Full charge capacity (mAh): 2453
Health Information:
Cycle count: 396
Condition: Replace Now
Battery Installed: Yes
Amperage (mA): 0
Voltage (mV): 12597
Any suggestions appreciated..
Cheers.I just got off a call with Apple support. The tech agreed that my symptoms were not normal, even for a battery with a cycle count over 300 like mine.. especially with the fact that the system profiler is showing bizarre info that makes no sense such as a full charge of a negative number. He said that basically the only thing I can try is to do an archive and reinstall of Snow Leopard, since it seems that the operating system is possibly corrupted. I don't think it's anything to do with the physics of the battery, it is more likely that the OS is not interacting properly with the battery, thus giving false and conflicting readings and information.. He seemed quite certain that it can't be a problem with Snow Leopard itself, seeing as all of the laptops in the Apple Support office were on SL and did not have this problem. So in his opinion, a corrupted OS was the most likely explanation. In any case, he said that batteries are only covered by a 90 day guarantee, so if it turns out that after a reinstall, my problem doesn't go away, then I'll have no choice but to buy a new battery because they won't cover it... This doesn't seem very fair to me because if it turns out that the OS has nothing to do with it, then it must be a faulty battery, because this kind of behaviour is certainly not what I'd call acceptable for a battery of less than a year old.
Anyway, I'll perhaps try the archive and install process on the weekend and see what happens. -
VERY strange behavior - HELP!
I don't know if anyone can help, but I have had some VERY strange Powerbook this afternoon while doing some Word processing. I was doing a quick search on the internet, when web pages would not load and applications became EXTREMELY SLOW. It was almost as if I had lost my internet connection, but everything was fully connected and fine. Anything action that I took brought up the spinning pinwheel of death. After force quitting all of my apps. and trying to restart, I continued to get the spinning wheel. After leaving the PB for nearly five minutes, the wheel was still spinning and restart did not happen.
I finally held down the power button until it shut down. After restart, I repaired permissions and received the following, which I thought was strange:
Disk Utility started.
Repairing permissions for Macintosh HD
Determining correct file permissions.
parent directory ./Users/Shared/SC Info does not exist
We are using special permissions for the file or directory ./Library/Widgets. New permissions are 16877
Permissions differ on ./private/var/log/secure.log, should be -rw------- , they are -rw-r-----
Owner and group corrected on ./private/var/log/secure.log
Permissions corrected on ./private/var/log/secure.log
We are using special permissions for the file or directory ./usr/lib/php/build/acinclude.m4. New permissions are 33060
I understand the "special permissions" is due to the latest security update, but the secure.log concerns me. Any ideas?
Here is part of the system log as well. Any help would be much appreciated. Based on the sys.log towards the bottom, it almost looks as if there was some kind of attempted security breech on the system?
Thanks,
Joe B
Sep 24 18:46:44 localhost kernel[0]: [start] 1
Sep 24 18:46:44 localhost kernel[0]: HFS: Removed 2 orphaned unlinked files
Sep 24 18:46:44 localhost kernel[0]: Jettisoning kernel linker.
Sep 24 18:46:44 localhost kernel[0]: Resetting IOCatalogue.
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 0
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 4
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 4
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 4
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 4
Sep 24 18:46:44 localhost kernel[0]: IPv6 packet filtering initialized, default to accept, logging disabled
Sep 24 18:46:45 localhost kernel[0]: UniNEnet: Ethernet address 00:0d:93:2e:08:f6
Sep 24 18:46:45 localhost kernel[0]: AirPortPCI_MM: Ethernet address 00:0d:93:8c:43:18
Sep 24 18:46:45 localhost DirectoryService[43]: Launched version 2.0.2 (v350.2)
Sep 24 18:46:45 localhost diskarbitrationd[38]: disk0s3 hfs F03FF213-49C4-3229-9807-105BFEB2EF16 Macintosh HD /
Sep 24 18:46:47 localhost kernel[0]: [HCIController][setupHardware] AFH Is Supported
Sep 24 18:46:47 localhost lookupd[67]: lookupd (version 365) starting - Sat Sep 24 18:46:47 2005
Sep 24 18:46:47 localhost mDNSResponder: Adding browse domain local.
Sep 24 18:46:47 localhost configd[36]: WirelessConfigure: 88001003
Sep 24 18:46:47 localhost configd[36]: initCardWithStoredPrefs failed.
Sep 24 18:46:47 localhost configd[36]: WirelessConfigure: 88001003
Sep 24 18:46:49 localhost kernel[0]: ATY,Jasper_A: vram [b8000000:08000000]
Sep 24 18:46:50 localhost kernel[0]: ATY,Jasper_B: vram [b8000000:08000000]
Sep 24 18:46:50 localhost /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow: Login Window Application Started
Sep 24 18:46:51 localhost loginwindow[70]: Login Window Started Security Agent
Sep 24 18:46:56 jbiedlin configd[36]: setting hostname to "jbiedlin.local"
Sep 24 18:46:57 jbiedlin kernel[0]: AirPort: Link Active: "ARM Wireless" - 00112402fb57 - chan 1
Sep 24 18:46:57 jbiedlin configd[36]: AppleTalk startup
Sep 24 18:47:00 jbiedlin launchd: Server 0 in bootstrap 1103 uid 0: "/usr/sbin/lookupd"[67]: exited abnormally: Hangup
Sep 24 18:4All,
Sorry, I couldn't get all of the sys.log on the last post, so here's the part above where the log failed.
Sep 24 17:42:55 jbiedlin configd[36]: AppleTalk startup complete
Sep 24 18:46:44 localhost kernel[0]: standard timeslicing quantum is 10000 us
Sep 24 18:46:44 localhost lookupd[44]: lookupd (version 365) starting - Sat Sep 24 18:46:44 2005
Sep 24 18:46:44 localhost kernel[0]: vmpagebootstrap: 253637 free pages
Sep 24 18:46:44 localhost kernel[0]: migtable_maxdispl = 70
Sep 24 18:46:44 localhost kernel[0]: 95 prelinked modules
Sep 24 18:46:44 localhost kernel[0]: Copyright (c) 1982, 1986, 1989, 1991, 1993
Sep 24 18:46:44 localhost mDNSResponder-107 (Mar 20 2005 20: 31:47)[46]: starting
Sep 24 18:46:44 localhost kernel[0]: The Regents of the University of California. All rights reserved.
Sep 24 18:46:44 localhost kernel[0]: using 2621 buffer headers and 2621 cluster IO buffer headers
Sep 24 18:46:44 localhost kernel[0]: IOPCCard info: Intel PCIC probe: TI 1510 rev 00
Sep 24 18:46:44 localhost kernel[0]: FireWire (OHCI) Apple ID 31 built-in now active, GUID 000d93ff fe2e08f6; max speed s800.
Sep 24 18:46:44 localhost kernel[0]: CSRHIDTransitionDriver::probe
Sep 24 18:46:44 localhost kernel[0]: CSRHIDTransitionDriver::start before command
Sep 24 18:46:44 localhost kernel[0]: ADB present:8c
Sep 24 18:46:44 localhost kernel[0]: Security auditing service present
Sep 24 18:46:44 localhost kernel[0]: BSM auditing present
Sep 24 18:46:44 localhost kernel[0]: disabled
Sep 24 18:46:44 localhost kernel[0]: rooting via boot-uuid from /chosen: F03FF213-49C4-3229-9807-105BFEB2EF16
Sep 24 18:46:44 localhost kernel[0]: Waiting on <dict
ID="0"><key>IOProviderClass</key><string
ID="1">IOResources</string><key>IOResourceMatch</key><string
ID="2">boot-uuid-media</string></dict>
Sep 24 18:46:44 localhost kernel[0]: Got boot device =
IOService:/MacRISC2PE/pci@f4000000/AppleMacRiscPCI/ata-6@D/AppleKauaiA
TA/ATADeviceNub@0/IOATABlockStorageDriver/IOATABlockStorageDevice/IOBl
ockStorageDriver/FUJITSU MHT2080AT
Media/IOApplePartitionScheme/Untitled@3
Sep 24 18:46:44 localhost kernel[0]: BSD root: disk0s3, major 14, minor 2
Sep 24 18:46:44 localhost kernel[0]: jnl: replay_journal: from: 6615552 to: 3109888 (joffset 0x8601000)
Sep 24 18:46:44 localhost kernel[0]: CSRHIDTransitionDriver::stop
Sep 24 18:46:44 localhost kernel[0]: [HCIController][start]
Sep 24 18:46:44 localhost kernel[0]: [AppleUSBHCIController][StopIsochPipeRead] - mInt1IsochInPipe = 0 - numReadsPending = 0
Sep 24 18:46:44 localhost kernel[0]: [start] 1
Sep 24 18:46:44 localhost kernel[0]: HFS: Removed 2 orphaned unlinked files
Sep 24 18:46:44 localhost kernel[0]: Jettisoning kernel linker.
Sep 24 18:46:44 localhost kernel[0]: Resetting IOCatalogue.
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 0
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 4
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 4
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 4
Sep 24 18:46:44 localhost kernel[0]: Matching service count = 4
Sep 24 18:46:44 localhost kernel[0]: IPv6 packet filtering initialized, default to accept, logging disabled
[ Edited by Apple Discussions Moderator; wrap long lines ] -
Problems with file uploading servlet, the form action doesnt capture url
Hi, i have one problem. I am working on a project , i have created a servlet that takes uploaded files and processses them and links them back to user to download. The servlet works perfectly from my computer, I am using apache-tomcat-6.0.16 and java 1.6 , I have two forms called encrypt.html and decrypt.html, I will post both of them, now the problem is when somebody access it on the internet while i am running apache, they get a connection was reset on a firefox browser and same stuff on Internet Explorer.
i have checked my server logs and saw nothing unusual there, So please if you can help me, it is my project.
I am pasting html file and error message that other users where getting remotely.
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>Stego Form</title>
<link rel='STYLESHEET' type='text/css' href='encrypt.css'>
</head>
<body>
<center>
<form name='encrypt' enctype='multipart/form-data' method='POST' action='http://localhost:8080/examples/temp2
' accept-charset='UTF-8'>
<input type='hidden' name='sfm_form_submitted' value='yes'>
</input>
<input type='hidden' name='eord' value='e'>
<select name='encryption' size='1'>
<option value='Select an encryption' selected>
Select an encryption
</option>
<option value='DES'>
DES
</option>
<option value='Tripple DES'>
Tripple DES
</option>
</select>
<input type='file' name='overt' size='20'>
<input type='file' name='covert' size='20'>
<input type='submit' name='submit' value='Submit'>
</form>
</center>
</body>
</html>so it works for me even if i access the page with my ip , but for others it doesnt work,
now the user got this xhtml page that i will show, i cant find attach button so i am pasting here.
here is the servlet coding
import java.io.*;
import java.util.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.apache.commons.fileupload.*;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
public class temp2 extends HttpServlet
FileInputStream fin;
String filenames[] = new String[2],fieldname,fieldval;
String keyfile,IVfile;
String names[] = new String[2];
public temp2()
super();
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost(request, response);
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
String eord="";
List lst = null;
boolean isMultiPart = ServletFileUpload.isMultipartContent(request);
if (!isMultiPart) // check whether the post request is actually multipart
System.out.println("ERROR NOT MULTIPART");
System.exit(0);
DiskFileItemFactory fif = new DiskFileItemFactory();
ServletFileUpload sfu = new ServletFileUpload(fif);
sfu.setSizeMax(10000000);
try { lst = sfu.parseRequest(request); }
catch (FileUploadException ex)
{ System.out.println("ERROR IN PARSING FILES" + ex); System.exit(0); }
if(lst.isEmpty()) // check whether request is empty
System.out.println("ERROR LIST SIZE NOT GOOD : " + lst.size());
System.exit(0);
Iterator x = lst.iterator();
int i = 0;
FileItem f = (FileItem)x.next();
f = (FileItem)x.next();
System.out.println(f.getFieldName());
if(f.getFieldName().equalsIgnoreCase("eord")) // check hidden field to know the case : encrypt or decrypt
eord = f.getString();
System.out.println(f.getString());
else // if it is not first field exit
System.out.println("Invalid FORM");
System.exit(0);
f = (FileItem)x.next(); // next field
if(f.getFieldName().equalsIgnoreCase("encryption")) // type of encryption des / tdes
fieldname = f.getFieldName();
fieldval = f.getString();
System.out.println(f.getString());
if(eord.equalsIgnoreCase("e")) // if it is encryption form only file required
while(x.hasNext())
f = (FileItem)x.next();
if(!f.isFormField())
int check = f.getName().lastIndexOf(File.separator);
System.out.println(File.separator);
if(check==-1)
System.out.println(f.getName());
System.out.println("Unsupported browser : " + check);
System.exit(0);
File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
names[i] = ff.getName(); // original file names
try
f.write(ff);
filenames[i] = ff.getAbsolutePath();
// renamed
ff.deleteOnExit();
}catch(Exception e) {System.out.println("Error writing file"+ ff.getAbsolutePath()); System.exit(0);}
i++;
try { System.in.read(); } catch(Exception e) {}
}// endwhile
if(fieldval.equalsIgnoreCase("DES"))
System.out.println("DES 1"+filenames[1]);
javades o = new javades(filenames[1]); // the file to be encrypted
filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
System.out.println("should be original" + filenames[1]);
else if(fieldval.equalsIgnoreCase("Tripple DES"))
javatdes o = new javatdes(filenames[1]);
filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
System.out.println(filenames[1]);
System.out.println("Calling stego");
filenames[0] = "e:\\apache\\webapps\\temp\\" + names[0];
System.out.println("file 1 "+ filenames[0]);
System.out.println("file 2"+ filenames[1]);
try { System.in.read(); } catch(Exception e) {}
stego s = new stego(filenames[0],filenames[1]);
System.out.println("mainext " + s.mainext);
// encryption done, and new files are loaded, now lets hide
if(s.mainext.equalsIgnoreCase("wav"))
s.encodewav();
System.out.println("Encoded wave");
else if(s.mainext.equalsIgnoreCase("bmp"))
System.out.println("Encoded bmp");
s.encodebmp();
System.out.println("done !");
PrintWriter pr = response.getWriter();
pr.println("Greetings , Your work is done and saved, now download the following files");
pr.println("The secret key file is needed for getting back your hidden file, so download that too");
pr.write("<a href=\"/temp/files/IV.txt\">click here</a>");
pr.write("<br/><a href=\"/temp/files/key.txt\">click here</a>");
pr.write("<br/><a href=\"/temp/files/"+names[0]+"\">click here</a>");
return;
// if it is decryption case
else if(eord.equalsIgnoreCase("d"))
while(x.hasNext())
f = (FileItem)x.next();
if(!f.isFormField())
int check = f.getName().lastIndexOf(File.separator);
System.out.println(File.separator);
if(check==-1)
System.out.println(f.getName());
System.out.println("Unsupported browser : " + check);
System.exit(0);
File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
// else if ladder to store paths of stegofile keyfile and IVfile
if(f.getFieldName().equalsIgnoreCase("stegofile"))
filenames[0] = ff.getAbsolutePath();
else if(f.getFieldName().equalsIgnoreCase("keyfile"))
keyfile = ff.getAbsolutePath();
else if(f.getFieldName().equalsIgnoreCase("IVfile"))
IVfile = ff.getAbsolutePath();
try
f.write(ff); // writes whole file at once
}catch(Exception e) {System.out.println("Error writing file"); System.exit(0);}
}// endwhile
System.out.println("Calling stego");
System.out.println("file 1 "+ filenames[0]);
stego s = new stego(filenames[0]);
System.out.println("mainext " + s.mainext);
if(s.mainext.equalsIgnoreCase("wav"))
s.decodewav();
System.out.println("Encoded wave");
else if(s.mainext.equalsIgnoreCase("bmp"))
s.decodebmp();
System.out.println("Encoded bmp");
System.out.println("done !");
////// hidden file has been retrieved , now lets decrypt it
System.out.println("ext " + s.ext);
filenames[0] = "e:\\apache\\webapps\\temp\\"+s.filename;
System.out.println(filenames[0]);
System.out.println(keyfile);
System.out.println(IVfile);
if(fieldval.equalsIgnoreCase("DES"))
javades o = new javades(filenames[0],keyfile,IVfile); // the file to be encrypted
filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
System.out.println("should be original" + filenames[0]);
else if(fieldval.equalsIgnoreCase("Tripple DES"))
javatdes o = new javatdes(filenames[0],keyfile,IVfile);
filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
System.out.println(filenames[0]);
PrintWriter pr = response.getWriter();
pr.write("Greetings, you have successfully retrieved your hidden file, now download it from here <br>");
pr.write("<a href=\"http://localhost:8080/temp/files/" + (new File(filenames[0]).getName())+"\">Click here</a>");
}and here is the xhtml file the user receives, whe he clicks the submit button,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html [
<!ENTITY % htmlDTD
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
%htmlDTD;
<!ENTITY % netErrorDTD
SYSTEM "chrome://global/locale/netError.dtd">
%netErrorDTD;
<!ENTITY loadError.label "Problem loading page">
<!ENTITY retry.label "Try Again">
<!-- Specific error messages -->
<!ENTITY connectionFailure.title "Unable to connect">
<!ENTITY connectionFailure.longDesc "&sharedLongDesc;">
<!ENTITY deniedPortAccess.title "This address is restricted">
<!ENTITY deniedPortAccess.longDesc "">
<!ENTITY dnsNotFound.title "Server not found">
<!ENTITY dnsNotFound.longDesc "
<ul>
<li>Check the address for typing errors such as
<strong>ww</strong>.example.com instead of
<strong>www</strong>.example.com</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY fileNotFound.title "File not found">
<!ENTITY fileNotFound.longDesc "
<ul>
<li>Check the file name for capitalization or other typing errors.</li>
<li>Check to see if the file was moved, renamed or deleted.</li>
</ul>
">
<!ENTITY generic.title "Oops.">
<!ENTITY generic.longDesc "
<p>&brandShortName; can't load this page for some reason.</p>
">
<!ENTITY malformedURI.title "The address isn't valid">
<!ENTITY malformedURI.longDesc "
<ul>
<li>Web addresses are usually written like
<strong>http://www.example.com/</strong></li>
<li>Make sure that you're using forward slashes (i.e.
<strong>/</strong>).</li>
</ul>
">
<!ENTITY netInterrupt.title "The connection was interrupted">
<!ENTITY netInterrupt.longDesc "&sharedLongDesc;">
<!ENTITY netOffline.title "Offline mode">
<!ENTITY netOffline.longDesc "
<ul>
<li>Uncheck "Work Offline" in the File menu, then try again.</li>
</ul>
">
<!ENTITY netReset.title "The connection was reset">
<!ENTITY netReset.longDesc "&sharedLongDesc;">
<!ENTITY netTimeout.title "The connection has timed out">
<!ENTITY netTimeout.longDesc "&sharedLongDesc;">
<!ENTITY protocolNotFound.title "The address wasn't understood">
<!ENTITY protocolNotFound.longDesc "
<ul>
<li>You might need to install other software to open this address.</li>
</ul>
">
<!ENTITY proxyConnectFailure.title "The proxy server is refusing connections">
<!ENTITY proxyConnectFailure.longDesc "
<ul>
<li>Check the proxy settings to make sure that they are correct.</li>
<li>Contact your network administrator to make sure the proxy server is
working.</li>
</ul>
">
<!ENTITY proxyResolveFailure.title "Unable to find the proxy server">
<!ENTITY proxyResolveFailure.longDesc "
<ul>
<li>Check the proxy settings to make sure that they are correct.</li>
<li>Check to make sure your computer has a working network connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY redirectLoop.title "The page isn't redirecting properly">
<!ENTITY redirectLoop.longDesc "
<ul>
<li>This problem can sometimes be caused by disabling or refusing to accept
cookies.</li>
</ul>
">
<!ENTITY unknownSocketType.title "Unexpected response from server">
<!ENTITY unknownSocketType.longDesc "
<ul>
<li>Check to make sure your system has the Personal Security Manager
installed.</li>
<li>This might be due to a non-standard configuration on the server.</li>
</ul>
">
<!ENTITY sharedLongDesc "
<ul>
<li>The site could be temporarily unavailable or too busy. Try again in a few
moments.</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY % globalDTD
SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
]>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
- The Original Code is mozilla.org code.
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1998
- the Initial Developer. All Rights Reserved.
- Contributor(s):
- Adam Lock <[email protected]>
- William R. Price <[email protected]>
- Henrik Skupin <[email protected]>
- Jeff Walden <[email protected]>
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the LGPL or the GPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
- ***** END LICENSE BLOCK ***** -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Problem loading page</title>
<link rel="stylesheet" href="temp2_files/netError.css" type="text/css" media="all"/>
<!-- XXX this needs to be themeable -->
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAICSURBVHjaYvz//z8DJQAggJhwiDPvnmlzc2aR0O+JGezt+AwACCCsBhxfYhn59N41FWtXIxZOLu70niRGXVwGAAQQNgNYHj96O8HaWYdJW5ubwd4/mI2Ng7sblwEAAYRhwMm1URk/vn4SUNWVYGD8+YZBXZOZm5OLzRjoCmNsBgAEEKoBN82Y7l851GLrqMjM8Oc7A8O/3wwMP54wuAQFCXNycUzGZgBAAKEYcOaKZO2/f//5FbUVgBrfMoRVcgHpNwyKGjKMXDwCan0prFboBgAEELIBzDcvXyy2cVZhYPj9GWj7H4jo/38MDJ9OMDj7O/KzsjH3oxsAEEBwA/bNNipiZf7FI6cqwcDw8x2qqp8fGORUpVn4BEXlgGHhhCwFEEAwA9gfP3hdZ+Oizcjw+wvCdjgAuuLrFQbXIH9hTm7uqcgyAAEENuD4ctcebm5mbikFYRTbV7V/Q6j88Z5BSuY7q4CQgAjQFR4wYYAAAhtw89L5ZFsnRaDtn4CW/YXrAQcisit+PGVwDgrnZ2NnnwATBQggpsNLvGYLCAmxi8tLARWg+h3FBVBXSEj/ZZWQkRcCuiIQJAQQQCyvnj5KMDTkZ2JgYmRg4FchnHv+vmEwttLmeXT3VjKQtx4ggFgk5TXebV63UfT3ijOMxOZAVlZWdiB1EMQGCCBGSrMzQIABAFR3kRM3KggZAAAAAElFTkSuQmCC"/>
<script type="application/x-javascript"><![CDATA[
// Error url MUST be formatted like this:
// moz-neterror:page?e=error&u=url&d=desc
// Note that this file uses document.documentURI to get
// the URL (with the format from above). This is because
// document.location.href gets the current URI off the docshell,
// which is the URL displayed in the location bar, i.e.
// the URI that the user attempted to load.
function getErrorCode()
var url = document.documentURI;
var error = url.search(/e\=/);
var duffUrl = url.search(/\&u\=/);
return decodeURIComponent(url.slice(error + 2, duffUrl));
function getDescription()
var url = document.documentURI;
var desc = url.search(/d\=/);
// desc == -1 if not found; if so, return an empty string
// instead of what would turn out to be portions of the URI
if (desc == -1) return "";
return decodeURIComponent(url.slice(desc + 2));
function retryThis()
// Session history has the URL of the page that failed
// to load, not the one of the error page. So, just call
// reload(), which will also repost POST data correctly.
try {
location.reload();
} catch (e) {
// We probably tried to reload a URI that caused an exception to
// occur; e.g. a non-existent file.
function initPage()
var err = getErrorCode();
// if it's an unknown error or there's no title or description
// defined, get the generic message
var errTitle = document.getElementById("et_" + err);
var errDesc = document.getElementById("ed_" + err);
if (!errTitle || !errDesc)
errTitle = document.getElementById("et_generic");
errDesc = document.getElementById("ed_generic");
var title = document.getElementById("errorTitleText");
if (title)
title.parentNode.replaceChild(errTitle, title);
// change id to the replaced child's id so styling works
errTitle.id = "errorTitleText";
var sd = document.getElementById("errorShortDescText");
if (sd)
sd.textContent = getDescription();
var ld = document.getElementById("errorLongDesc");
if (ld)
ld.parentNode.replaceChild(errDesc, ld);
// change id to the replaced child's id so styling works
errDesc.id = "errorLongDesc";
// remove undisplayed errors to avoid bug 39098
var errContainer = document.getElementById("errorContainer");
errContainer.parentNode.removeChild(errContainer);
]]></script>
</head>
<body dir="ltr">
<!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) -->
<!-- PAGE CONTAINER (for styling purposes only) -->
<div id="errorPageContainer">
<!-- Error Title -->
<div id="errorTitle">
<h1 id="errorTitleText">The connection was reset</h1>
</div>
<!-- LONG CONTENT (the section most likely to require scrolling) -->
<div id="errorLongContent">
<!-- Short Description -->
<div id="errorShortDesc">
<p id="errorShortDescText">The connection to the server was reset while the page was loading.</p>
</div>
<!-- Long Description (Note: See netError.dtd for used XHTML tags) -->
<div id="errorLongDesc">
<ul>
<li>The site could be temporarily unavailable or too busy. Try again in a few
moments.</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.</li>
</ul>
</div>
</div>
<!-- Retry Button -->
<xul:button xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="errorTryAgain" label="Try Again" oncommand="retryThis();"/>
</div>
<!--
- Note: It is important to run the script this way, instead of using
- an onload handler. This is because error pages are loaded as
- LOAD_BACKGROUND, which means that onload handlers will not be executed.
-->
<script type="application/x-javascript">initPage();</script>
</body>
</html>thank you for your prompt reply in advance,
Regards,
Mihir PandyaHi, thank you for your replies, I found out few things about my servlet, and its portability
and i have few questions, although i marked this topic as answered i guess its ok to post
I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
of the modified files to the user for them to download the modified files.
What i am using to get the tempdir i will paste
File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
System.out.println(baseurl);
baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
links to the user for download ?
and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
And i want to create unique directory for each request made to the servlet , so file names dont clash.
one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
Reply A.S.A.P. please..
Thanks and regards,
Mihir Pandya -
Very strange EL evaluation problem
Hi,
I have a very strange problem atm.
I'm trying the JNDI Resources example on tomcat.
My test.jsp page looks like this:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<html>
<head>
<title>DB Test</title>
</head>
<body>
<h2>Results</h2>
<c:out value="${1+2+3}"/>
<sql:query var="rs" dataSource="jdbc/JavaTest">
select id, foo, bar from testdata
</sql:query>
<c:out value="${rs.rowCount}"/>
<c:forEach var="row" items="${rs.rows}">
Foo ${row.foo}
Bar ${row.bar}
</c:forEach>
<br>
</body>
</html>
The output of this page is this:
Results
${1+2+3} ${rs.rowCount} Foo ${row.foo}
Bar ${row.bar}
As you can see these expressions are just written out to the browser and they are not being evaluated.
The problem is not with tomcat itself because other jsp's without database access work perfectly.
My web.xml file looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>MySQL Test App</description>
<resource-ref>
<description>blah</description>
<res-ref-name>jdbc/JavaTest</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
my context.xml file looks as follows:
<Context path="/DBTest" docbase="DBTest.war" debug="5" reloadable="true" crossContext="true" useNaming="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/JavaTest"
auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/JavaTest">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<parameter>
<name>username</name>
<value>THiNG</value>
</parameter>
<parameter>
<name>password</name>
<value>**********</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
</parameter>
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
<parameter>
<name>logAbandoned</name>
<value>true</value>
</parameter>
<parameter>
<name>removeAbandonedTimeout</name>
<value>300</value>
</parameter>
</ResourceParams>
</Context>
I've included the jstl.jar and standard.jar from the jstl package in the WEB-INF/lib directory, also the mysql-connector-java.jar (JDBCDriver) is included in the web-inf/lib directory.
Here is the logfile, which might contain the answer to my problem: (I removed the ResourceRef specification because it's exactly the same as in the context.xml file)
2004-09-29 13:45:01 NamingContextListener[Catalina/localhost/DBTest]: Resource parameters for jdbc/JavaTest = ResourceParams[]
2004-09-29 13:45:01 NamingContextListener[Catalina/localhost/DBTest]: Adding resource ref jdbc/JavaTest
2004-09-29 13:45:01 NamingContextListener[Catalina/localhost/DBTest]: ResourceRef[............]
2004-09-29 13:45:01 NamingContextListener[Catalina/localhost/DBTest]: Resource parameters for UserTransaction = null
2004-09-29 13:45:10 NamingContextListener[Catalina/localhost/DBTest]: Resource parameters for jdbc/JavaTest = ResourceParams[......................]
2004-09-29 13:45:10 NamingContextListener[Catalina/localhost/DBTest]: Adding resource ref jdbc/JavaTest
2004-09-29 13:45:10 NamingContextListener[Catalina/localhost/DBTest]: ResourceRef[...........]: Resource parameters for UserTransaction = null
Can somebody help me with this. I've been looking for a sollution for hours.
I've been having problems setting up the jdbc-driver also, but I think this is solved now with these deployment descriptors. I don't have a single clue what is going on right now.
${} expression are simple NOT being evaluated.
I don't think it's a database problem because I can see the user connections in the mysql monitor.
Any ideas? All help is welcome and very much appreciated. :-)
THANKS !!!
PS: sorry for the extreme long post, I wanted to post all relevant information to track this strange behaviour down.Seems to be a problem with your web.xml not pointing to version 2.4.
Just check this link too:
http://www.mail-archive.com/[email protected]/msg07006.html
HTH -
WebHelp stripping out form action
I have a form in my documentation where users may fill out questions, click a "Submit" button, and it is emailed to me. I remember testing this a few years ago and it worked great. Recently, someone contacted us to say he never heard back from his form. I then tested it, and it never was emailed to me. When I checked the HTML code, it's being stripped for some reason. I'm on the HTML tab, I type in the <form action="mailto..." > data. Then I click to the designer tab. When I click back to the HTML tab, it's gone! No sign of what I JUST typed! Here's the "naked" code:
</head>
<body>
<robohelp><form>
</robohelp>
<robohelp><div align=left></robohelp>
Where you see the <form>, I had just typed in the actual action part. It just disappears though. Further, the bottom part of the code, where the closing </form> tag is, that </form> disappears as well. I type it in, click off the tab, and get this:
<p><input type=submit name=submit value="Send to Us"><input type=reset name=reset value="Start Over"></p>
</body>
</html>
No </form> tag. Gone. I haven't even clicked Save or ANYTHING at this point. Any ideas why Robohelp would be stripping code like this? Much appreciated.Hi there
By broken, I meant my crystal ball is broken (and sadly still is )
When you visited the forums to post, I'm guessing you missed seeing this link? If so, please click it and give it a once over. See if that illuminates my reaction.
Click image below for possibly larger view
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
hello again. i did a search and found a thread where someone
else asked if it was possible to have two form actions, but the
person who responded didn't say it was impossible, just that they
didn't need to.
i think i need to have two actions, unless someone can tell
me how to tell my formmail to also send the results to an ASP form
processor on a different website.
basically, my company started using a web-based lead
management program, and they want the results to go there as well
as the emails we get now. the website uses ASP to process the form,
and they provide the url you need to post to, plus hidden fields
you have to put in the form that tell it which account to post to.
it seems like the easiest solution would be to have two
actions on the form, but so far that doesn't appear to be possible,
and i'm just wondering if anyone has done it before and can tell me
how it's done.
thanks!Would it be out of consideration to hire someone to do this
for you?
If not, then you would have to modify the formmail script to
POST the form's
data, including the additional values required, to the data
processing
script. On reflection, I'm not quite sure what would be the
best way to do
that - perhaps use the incoming POSTed data to populate form
fields and then
submit the populated form onload.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"n h c" <[email protected]> wrote in message
news:f4kc9k$dpv$[email protected]..
> i'm sorry, i should have elaborated a little more.
>
> we currently use a formmail.php (the one from
www.boaddrink.com), and i
> can
> definitely edit that (except i don't know enough php to
figure this out on
> my
> own, obviously). but we recently started using a
web-based lead management
> program called Top Producer, and that's where the asp
comes in. we want to
> keep
> receiving the email results as we do now, but we also
want the results to
> go to
> Top Producer. so yes, the ideal solution would be to
tell the formmail.php
> to
> also send the results to the Top Producer form
processor.
>
> the url they give for the action is:
> https://www.topproduceronline.com/LeadToolkit.asp, and
we also have to add
> some
> hidden fields to the form that tell the asp which
account to post the
> results
> to.
>
> i hope that helps you understand what i'm trying to do.
if i need to post
> anymore info, just let me know. i really appreciate the
help!
> -
Captivate button with HTML form action
Hello,
How would I create a button in Captivate 6.0 that would perform the following action below?
<form method="post" action="https://suppliers.company.com/tracker/reg/CourseReg.cfm">
<input name="submit" type="submit" value="Receive Credit">
<input name="CourseId" type="hidden" value="TR001234">
</form>
I though it would be simple, but not sure what to use. If it should be vaiables, advance actions or javascript?
thanks!You havent closed these two tags
Sex :
<html:radio property="sex" value="M">Male
<html:radio property="sex" value="F">Female<br>ram.
Maybe you are looking for
-
User cannot drag email out of outlook and save to desktop
User gets the following error; Error Copying File or Folder "The process cannot access the file because another process has locked a portion of the file." To note; outlook 2013 64, windows 7 pro 64 sp1, running a windows server 2012 with redirected f
-
How do I set up The Lorax Daily Print Activities?
The steps are pretty simple: Open The Lorax Daily Print Activities. The application should open as soon as installation is complete. You can also open the program by clicking your desktop icon, or by clicking Start, then All Programs, then the name o
-
My iPhone is not showing that it is connected to wi-fi. My laptop is showing the wi-fi signal with a completely strong signal. I have turned the phone off & on multiple times, and have turned the wi-fi (on the phone) off & on multiple times as well,
-
Question: Using Adobe Premiere CS3 and a Sony GV-HD700
Hi, My name is Gerry and I am new to the forum. My problem is as follows: I have my Sony player connected via USB2 to my workstation. I am using widows xp sp3 and the device is properly recognized. When I choose capture in Premiere I recieve a me
-
Margins off when printing 11x38 on 13x40 pano paper
i'm trying to print crane museo pano paper in LR3 from mac 10.5.8 on epson 2400 also tried on PS3 with no luck. issue: print produces a top and bottom 1" border which is correct. the printer starts printing about 3" in from the edge. it should be 1