Cleaning VM Manager MySQL Database
Hi,
I am looking to clean a server pool completely and recreate it after some issues with heartbeating caused by a network fault caused all sorts of heartbeat / config problems. Have been working through a fix with Oracle support and have cleaned all VM servers in the pool.
The next step as advised by support is to clean the vm database using the the ovm_upgrade.sh script:
sh ./ovm_upgrade.sh dbuser=<user> dbpass=<passwd> dbhost=<hostname> dbport=1521 dbsid=<sid> deletedb
This fails when i run it with message:
"2013-03-20 09:24:34,847 ERROR Failed to connect to Database! Error: **
java.lang.StringIndexOutOfBoundsException: String index out of range: 14137"
The dbport number provided hints that this script is for an Oracle database which may be what is causing the error. Does anyone have any advice on cleaning the Oracle VM Manager db when using a mysql database?
We are running Oracle VM manager 3.2.1 on Scientific Linux release 6.3 (Carbon) x86_64.
Thanks,
Fixed. I think it was a problem related to the hostname.
Similar Messages
-
How to install PhpAdmin to manage MySql databases
I've install MySql 5.5.2 in my machine and download PhpMyadmin 3.3.3.
How can I use PhpMyAdmin to manage MySql databases. i.e how to run PhpMyAdmin? where to put the folder, how to call it from the browser, etc.Many thanks, but where do keep /mysql?
That can go anywhere, you just have to find it so you can run the mysql client. -
How Manage MySQL Databases on Leopard Server?
How can i work with MySQL
I like to setup a Wordpresspage.
What do i need to manage the Database for that case?
I am a beginer!
Thx in advanceStart by reading through the [Installing Wordpress|http://codex.wordpress.org/Installing_WordPress] (specifically the section Using the MySQL Client) and also read through the [backup up MySQL|http://codex.wordpress.org/BackingUp_YourDatabase] codex. (MySQL is reasonably similar across the platforms and installations.)
The other piece of this whole process is to make sure your Wordpress installation stays current, and that you keep current archives on your site should you need to recover from a successful breach. Web sites based on Wordpress (and most any content management system in general) are popular targets for security attacks.
And welcome to the forums. -
I've tried creating MySQL databases to no avail. I've done it within the Web App/MySQL template which always shows the db as unavailable and done it stand-alone. Both of which appear to create the db (ClearDB verified it was there and functional), but I
can't do anything with them. Going into the stand-alone instance blade, the tiles just continually spin the loading dots. I have no idea what else to try. I have a couple dozen clients I'm trying to move up to Azure and this is a deal-breaker right now.
Thanx for any help.
-George HandlinHi,
I suggest you to follow the below Stackoverflow Thread
http://stackoverflow.com/questions/12190067/how-to-manage-mysql-databases-created-in-azure
Hope this helps !
Regards,
Sowmya -
I can't get my website to connect to mysql database hosted on my yahoo site
I used David Powers tutorials to build a CMS website in Dreamweaver using a testing site set up on my computer. I installed XAMPP and got it working on my computer. (I have a Windows 7 PC with Dreamweaver CS6)
Now I have installed the mysql database on my remote site following the instructions in the help section of Yahoo Small Business, where my website is hosted. I recreated the same database on the myPHPAdmin on my remote site. (If I understood what I found out when searching for a solution, Yahoo doesn't allow me to see the database from Dreamweaver. It seems that I have to make sure the connections are correct and then upload my site to the remote server. Then it should work once up)
Following the instructions I could find on Yahoo it seems that all I needed to do was make sure that the user name and password were the same as on my local computer and change the my Sql Server in the Server Connection in Dreamweaver CS6 to mysql instead of localhost, upload my website and it should connect. When I go to my webpage online I get "No database selected".
I know html, css, some php, and mysql.
I have been using Dreamweaver for approximatley 2 years and have created 2 successful websites for my husband, who is a photographer. He now wants to have a blog type news website and since I couldn't get Wordpress to do what he wanted to do I decided to create a CMS website. It works great on my computer, but now I need it to work on my remote site.
I know it's probably something really stupid that I have overlooked and I would really appreciate any help I could get.
I'm more than happy to learn whatever I need to learn to get this done. I have been searching all kinds of forums and I can find a lot of posts about this or a similar problem, but no solutions.
Please let me know if I need to provide more information.I'm sorry, the way I wrote that was confusing. In mysql it suggested you create a new user that had limited access to access each database you created, rather than use the root user which had all permissions. So in both the mysql on my computer and the mysql on my website I created a user with the same username and password, so that when my website was on my remote server the username and password were the same as when I was testing it on my local computer.
SnakEyez02 wrote:
Following the instructions I could find on Yahoo it seems that all I needed to do was make sure that the user name and password were the same as on my local computer and change the my Sql Server in the Server Connection in Dreamweaver CS6 to mysql instead of localhost, upload my website and it should connect. When I go to my webpage online I get "No database selected".
Just looking at that part of your response, I don't get what they are asking you. Typically the remote host will require that you update the username/password and possibly SQL server. When you are in most shared environments, which is what I presume you are in, you typically have a username that is prefix_username. So you should be updating your script to match that information, not the other way around. Also with the "mysql instead of localhost" comment, you would only change the script from localhost to another server (ip address) if the mySQL server is not on your web server. If you host tells you this is true thent he value should be an IP address instead of localhost. Is that the case?
For the second part of your question in the "Why can't I access my database" help on Yahoo it says "If your PHP or Perl configuration files require a host name, you may have a problem with your host name. Make sure that you are using the host name mysql, not the default host name localhost." I assumed that meant that in the setup menu when establishing a server connection I needed to replace "localhost" as the mysql Server with "mysql" and then upload my website. This didn't work. Since the mysql server I am trying to access can be accessed using phpmyadmin at www.mywebsite.com/phpmyadmin this seemed to make sense to me. I think I might have managed to access the mysql server, but I'm not choosing the database I want correctly. -
How to get data into the mySQL database?
First some background.
I have a website that has outgrown its designed dimensions and is a huge burden to maintain. See PPBM5 Benchmark
There is a lot of maintenance work involved, so I'm investigating a PHP/MySQL approach to easen the burden and to add functionality to the site. With the current Excel based structure and over 420 entries, it is cumbersome for me to maintain, but also for users to find what they need.
A MySQL based dynamic structure is a lot easier and offers vastly more selection capabilities, like selecting only records that meet specific criteria.
Data submission is done with a form, that contains most of the relevant data, but the drawack is that people submitting their data are often not technically inclined, give wrong answers due to a lack of understanding or making typo's. The test results are attached in one or two separate .txt files, but often they have not read the instructions correctly or did something wrong, so these attached .txt files can not be trusted automatically, they have to be checked before inclusion.
These were my initial thoughts:
1. Data collection:
To avoid spending all our energy and time on correcting typo's, getting missing data, correcting errors, I am investigating the use of CPU-Z in Ghost mode to create a .txt or .html file that contains all relevant hardware info we need and even more. It gives all the info we currently have, but adds data like number of memory sticks, DDR timings, stock clock speed and BCLK setting, video card info and VRAM size, etc.
To see what I mean, run CPU-Z, go to the About tab and press the Save Report button and look at the results.
This can all be done without user intervention in an automatic way, but maybe I need to add an Auto-It file to the test to make it all run as desired.
If this works and I'm able to extract the relevant data from the created file and can insert it into the database, we may be in business for the next version of PPBM5.5 or PPBM6. It does require a modification to the instructions, making them a lot easier, because there is less data to fill out.
2. Data submission:
The submission form can be simplified if the CPU-Z data can be used. We have to create an automatic way to attach the created .html file from CPU-Z to the submission form and we have to streamline the Output.txt and Output-MPE.txt files to be more easily included in the 'form.lib.php' file. It currently is manual labor and very time consuming.
3. Adding to Database:
I have to find a way to create database records from the Gmail forms I receive. All incoming mail messages need to be checked on relevancy and if relevant, need to be added automatically to the database and then offered for approval before final inclusion in the database. Data included in the database will then include submission date and time, Email address, IP address used, plus links to the files submitted and available on the website.
4. Publication of the database:
After approval of new records from step 3, all updates will be automatically applied to the database and accessible for users. I do not yet intend to introduce a user account , requesting login before all functionality is accessible. Too much trouble and administration.
Queries should be possible on things like CPU (check box), so include 17-920, i7-930, i7-950 but exclude i7-980X and i7-990X, Size of memory (check box), Overclocked (boolean, yes, no), SSD as OS disk, and similar options.
The biggest problem is to keep the color grading and statistical indicators (Top, D9, Q3, Med, Q1 and D1) intact on dynamically generated queries. Say you make a query which results in 20 observations, this should show the related colors and legends. Next query results in 48 observations and of course the color grading and legends do need to reflect that. Question in my mind, does the RPI remain constant, independent of the query or does that need to be recalculated on the basis of the query?
Next thing is to allow a user to select a specific observation and by simply clicking on it be shown, in a separate window (detail page) or accordion, all the CPU-Z related information about the hardware.
The graphs, Top-20 and MPE Gains, need to be dynamically adjusted, based on the query used.
5. Ideally, external links:
In an ideal situation, one could link the CPU-Z data to external price databases, looking up current prices for CPU, memory, video card, disks, raid controller, etc. to get instant BFTB charts, based on the query made. But that is the next step.
Situation now:
I have a MySQL database that is easily updated with the new submissions. Simply create a .CSV flie from the submitted forms and import that into the database. The bulk of the initial work is done.Lots remain to be done as you can see above, but that is for a later time.
Question:
I have this table, that needs to be filled with data in the submitted and attached files. Mr. X submitted his data and can be uniquely identified by his "Ref_ID". He attached one or two files in .TXT format with the relevant test data. These files are stored on the server with a concatenated name:
"Ref_ID","-","filename"
Say his Ref-ID is: 20110204-6cf5 and his submitted file is called: Output(99).txt then the file can be found on the server as
20110204-6cf5-Output(99).txt
I need to be able to open that comma delimited file, the contents may look like this: "439","1036","819","531" and insert these contents into the relevant record and fields.
Graphically,
is what I want to achieve.
This being my first exposure to PHP/MySQL, you can imagine I'm not clear on how to go from here.
Added complication is that I actually have 5 numbers to insert per record and two calculated fields, Total Score and RPI should be calculated fields. Haven't yet figured out how to handle calculated fields, maybe only in the PHP/HTML code and not in the database.
I hope someone can help me.You do have a very complex looking site and may need several tables in mysql to handle all that data. If you knew to phpmysql I would suggest taking a look at this tutorial it will help get you started in understanding how to $_GET info from a database and also how to $_POST data to a database. I am no expert just learning myself and I found this very helpful. This is the link http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
There are also many tutorials on Youtube to help build a CMS Content Management Site I would suggest the following: -
http://www.youtube.com/user/phpacademy
http://www.youtube.com/user/betterphp
http://www.youtube.com/user/flashbuilding
And many more on my channel here
http://www.youtube.com/user/Whisperingonthewind
CMS's are easier to maintain, add edit and delete content.
I have also recently bought a Book by David Powers Training from the Source very helpful.
Anyway hope you get it sorted. -
What should i do with an Oracle 11g Database, MySQL database and a dump file.
I just joining to a new work field, almost about a database and i know "NOTHING" about this field.
My company has a system that running by Oracle Database, the problem is that Oracle Database will cost a lot of money when my company expands.
So the quest is converting Oracle Database to MySQL database.
Of course i cant try to convert it in the main Database, so i create one Oracle 11g Database on my LocalHost, and it already actived in " Localhost:1158 " etc.
I have another Sever test that already set up MySQL database, and a dump file from the system.
So I want to ask these 2 questions :
1. How to create an new Oracle Database from that dump file ?
2. Is it alright if i use tool to convert Oracle Database into MySql, or i should do it manually ?
Thanks alot.I just joining to a new work field, almost about a database and i know "NOTHING" about this field.
My company has a system that running by Oracle Database, the problem is that Oracle Database will cost a lot of money when my company expands.
So the quest is converting Oracle Database to MySQL database.
I predict that converting to MySQL will cost your company more as it expands. As you expand managing contention becomes more important - Oracle does this for you. I do not think MySQL does, so you'll have to write more code to deal with this, costing the company money. A big part of making application scalable and reliable is to use stored procedures, how good are MySQL's compared to PL/SQL's. What other features are there that MySQL has that will benefit your company that Oracle doesn't. What do you need to think about as your company expands that need to be taken care of in the database. I would have thought a migration from MySQL to Oracle would be more common to deal with expansion.
As you know "NOTHING" you need to think about what each database can give you for the next 10 years to cope with you businesses potential requirements, and extimate how much it will cost to implement these requirements, then make the decision -
Database Link to Mysql Database.
Hi Guys.
I need to Create a Database Link a Mysql database that is running over a Red Hat server to my Oracle 10g Database that is running over SUSE. I Have an Application server where the user runs forms and Report. The user access the Application Server that allow them to connect to Oracle Database because is a web Environtment. I would like to access MYSQL database to pull our some data to create a couple of Views for my Users.
Thanks in Advance.
Emmanuel
PD: do I need to configure some ODBC or just modify my tnsname.ora file???add a space to each line in the SID section of your listener - only GTW_LISTENER and SID_LIST_GTW_LISTENER are valid commands to start at the first position in the file.
In addition please remove that line from your gateway init file: HS_FDS_SHAREABLE_NAME=C:\Program Files\MySQL\Connector ODBC 5.2\myodbc5w.dll
HS_FDS_SHAREABLE_NAME is used on Unix to specify the ODBC Driver Manager - as you're on Windows where Windoes ships a valid ODBC Driver Manager you don't need to specify that parameter.manager. In addition please remove the set ODBCINI parameter as the Windows ODBC Driver Manager uses the registry. So make sure you have created a 64bit ODBC system DSN using the 64bit MySQL ODBC driver (it has to be the 64bit ODBC driver as you're on a 64bit Windows using a 64bit DG4ODBC)
- Klaus -
Unable to connect to MySQL database
Hello,
I have written a DatabaseManager class that controls access to a locally stored database, implemented in mysql. In theory, client request should be passed to the DatabaseManager through RMI, but I cannot even create a connection to the database yet!
Here's my connect statement:
con = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/media", "mysql", "mysql");When this statement is executed, the following exception is produced:
java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)Can somebody explain to me how I successfully create a connection to the database? I would be extremely grateful. Also, could somebody explain how I could connect to the database from a remote machine using the following connect statement:
con = DriverManager.getConnection("jdbc:mysql://server:3306/media", "mysql", "mysql");I have a feeling I need to grant a certain PropertyPermission in my policy file, but I'm unsure of what values I should be using.
Thank you in advance.
PeteThank you for the prompt reply.
In answer to you question: No, it is not an applet. The DatabaseManager is a class that implements a Remote interface, I have it running on the same machine as the mysql database (the server). I then have a small GUI that runs on a client machine which is used to make RMI calls to the DatabaseManager across the network in order to query the database.
When the DatabaseManager object is spawned on the server, it tries to connect to the database to be ready for client queries. This is when it produces the exception mentioned in the original post.
What confuses me is that in my original implementation, the DatabaseManager object was run on the client and the mysql JDBC had no difficulty in connecting to the database across the network. Could the security manager have something to do with it? I am using the RMISecurityManager in conjunction with the java.policy file from the Java RMI tutorial on the Sun website.
Pete -
Php/mysql: can't write to mysql database [SOLVED]
I'm writing a login script using php and mysql. I got it to work on my server about a week ago, and then I set up apache, php and mysql on my netbook so that I could take my code with me and test it. Now it doesn't work. My registration script doesn't write to the mysql database but has no errors. Here is register.php:
<?php
define("DB_SERVER", "localhost");
define("DB_USER", "root");
define("DB_PASS", "swordfish");
define("DB_NAME", "users");
define("TBL_USERS", "users");
$connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());
mysql_select_db(DB_NAME, $connection) or die(mysql_error());
function addUser($username, $password)
global $connection;
$password = md5($password);
echo("adding $username,$password<br />");
$q = "INSERT INTO " . TBL_USERS . " VALUES ('$username', '$password')";
echo("query: $q<br />");
$result = mysql_query($q, $connection);
echo("$result<br />");
if (isset($_POST["reg"]))
addUser($_POST["username"], $_POST["password"]);
echo("<a href='index.php'>click here to login</a>");
?>
<html>
<head>
<title>Register</title>
</head>
<body>
<form method="Post" name="login">
<input type="text", name="username" /> Username<br />
<input type="text", name="password" /> Password<br />
<input type="submit" name="reg", value="Register" />
</form>
</body>
</html>
and here is the output (without the form):
adding lexion,6f1ed002ab5595859014ebf0951522d9
query: INSERT INTO users VALUES ('lexion', '6f1ed002ab5595859014ebf0951522d9')
Also, I tried manually adding the content to the database:
$ mysql -p -u root
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version 5.1.42 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> users
-> INSERT INTO users VALUES('lexion', 'foo')
-> ^D
-> Bye
I would assume that I got something wrong with the last bit, but the php script seems like it should work. Does anybody know why it doesn't?
Last edited by Lexion (2010-01-10 19:04:15)What is wrong with your PHP? Why do you think it is failing? An INSERT query doesn't return anything. Also, it's a good idea to specify which fields you are inserting into, unless you want to have to provide something for every field (tedious for tables with many fields with default values). eg:
$q = "INSERT INTO `" . TBL_USERS . "`(`username`, `password`) VALUES ('$username', '$password')";
As for your experiment with the mysql prompt; queries have to end with a semicolon. PHP is nice and hides that little detail from you.
edit: Also, you're echoing text out before the HTML starts. That won't produce valid HTML. I also noticed a few other things which I corrected; look at my comments:
<?php
define("DB_SERVER", "localhost");
define("DB_USER", "root");
define("DB_PASS", "swordfish");
define("DB_NAME", "users");
define("TBL_USERS", "users");
$connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());
mysql_select_db(DB_NAME, $connection) or die(mysql_error());
function addUser($username, $password)
global $connection;
$password = md5($password);
// echo("adding $username,$password<br />"); - Don't echo stuff before HTML starts.
// Also, clean up user-supplied data before plugging it into a query unless you want to be vulnerable to SQL injection.
$cleanusername = mysql_real_escape_string($username, $connection);
$cleanpassword = mysql_real_escape_string($password, $connection); // Obviously you'd generally use some hashing algorithm like md5 or sha1 for passwords
$q = "INSERT INTO `" . TBL_USERS . "`(`username`, `password`) VALUES ('{$cleanusername}', '{$cleanpassword}')"; // The backticks tell MySQL not to interpret any text within as a keyword (good for field names, eg a field called `date`. The curly brackets tell PHP that the stuff within refers to a variable; it's nice as PHP knows exactly what the variable name is with no possible ambiguity.
// echo("query: $q<br />");
$result = mysql_query($q, $connection);
// echo("$result<br />"); - This won't do anything; in addition to INSERT queries not returning anything, the $result variable doesn't contain the results of the query, it's a pointer to them for use with mysql_result().
?>
<html>
<head>
<title>Register</title>
</head>
<body>
<?php
if (isset($_POST["reg"]))
addUser($_POST["username"], $_POST["password"]);
echo("<a href='index.php'>click here to login</a>");
?>
<form method="Post" name="login">
<input type="text" name="username" /> Username<br />
<input type="text" name="password" /> Password<br />
<input type="submit" name="reg" value="Register" />
</form>
</body>
</html>
<?php
mysql_close($connection); // Not strictly needed, as PHP will tidy up for you if you forget.
?>
Last edited by Barrucadu (2010-01-10 17:34:20) -
How to clean tables in Ides database of Mobile Sales
Hello experts,
I'm working with Mobile Sales v 4 SP08, and SQL Server 2000 Standard Edition.
I have created a new extract for a site.
In order to go faster loading the new extract synchronizing MSA client, how could I clean the Ides database into MSA client ?
Best regards
JuanHi Pratik,
Thank you, but I'm not interesting in complete archiving process.
I only want clean tables into Ides database into SQL Server of MSA client, with SQL tools. From SQL Interprise manager.
When I create a new extract for existing user and synchronize it, the import operation is very slow because SQL server needs delete the old records in all tables and import new records.
As far as I know, detaching Ides database, saving it, ... some operations...., and restoring it, we can clean all records in tables. After that we will synchronize and will load new extract.
Kind regards
Juan -
MySql database and php code on different servers
I created a table on a MySql database on server A. Now I'm
trying to create
a page to display the contents of the table. I know that the
html code ( and
php) is on a different server (server B). I managed to create
a database
connection however when I try this connection I cannot see
the table I
created. When I click on the Connection name I get the Stored
Procedures,
Tables and View list. I click on the Tables and although I
get a connection
to the server A, no table is displayed.
Am I trying to do something silly here?
any help will be appreciated.
Twanny> Am I trying to do something silly here?
I do it this way all the time. My testing server is local to
my development
LAN, but the MySQL server and database is remote (on the
remote site). To
make this work, you would have to make sure that the remote
server permits
an external connection. If it does, you should be golden.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Twanny" <[email protected]> wrote in message
news:gabbu1$ngv$[email protected]..
>I created a table on a MySql database on server A. Now
I'm trying to create
>a page to display the contents of the table. I know that
the html code (
>and php) is on a different server (server B). I managed
to create a
>database connection however when I try this connection I
cannot see the
>table I created. When I click on the Connection name I
get the Stored
>Procedures, Tables and View list. I click on the Tables
and although I get
>a connection to the server A, no table is displayed.
>
> Am I trying to do something silly here?
>
> any help will be appreciated.
>
>
>
>
> --
> Twanny
> -
Producing forms from mysql database
I have a website that collects various information from a
user. I then want it to produce a .pdf file that the user can
download. The .pdf file would be a form with field values taken
from an Access or MySQL database. It would be similar to producing
a tax form with data from a database (the user does not fill in a
.pdf form). What product lets me design the form for my website,
and then lets the website produce the filled-in form?
Thanks, Art LiebermanPlease be advised that this forum is for discussions about
the Acrobat.com online services only.
Your best source of questions and answers for the Acrobat
desktop product would be in the
Acrobat
Forums.
That being said, I believe that one of the Livecycle server
products may be able to do what you are asking. Try calling your
Adobe Account Manager (or the generic sales number from our
website) and they should be able to give you better information.
Thanks! -
Linking Postfix to the PostfixAdmin MySQL database
I am building a hosting platform on OS X Server. Thus, I want to manage mail users and virtual domains in a database.
First, I followed Pterobyte's advises in order to manage virtual domains with Postfix, using Apple's administration tools (http://downloads.topicdesk.com/virtual-users.pdf).
Then, I recompiled Postfix with MySQL support, following advises found on this forum.
Finally, I installed Postfix Admin and its MySQL database.
And everything works! So, I should be happy, but the glue between Postfix and the PostfixAdmin database is missing. The reason is very simple: Postfix is still configured to use the "/var/imap" database. So, my questions are very simple:
1. How can I say to Postfix to use the Postfix Admin MySQL database instead of LDAP?
2. Will I still be able to use Apple's Server Admin to manage my mail service? Of course, not for users and virtual domains management, but at least to start/stop mail, read logs...
DavidAlex,
You will find my current master.cf at the end of this post.
-Use 127.0.0.1 instead of localhost.
I tried that, but it seems to imply that I modify my MySQL configuration, which is not so easy because I have 10 sites running on MySQL for clients. But I will try again later.
-Check permissions on the socket are correct.
777 should be good.
-Check if you have any issues with the socket locking up
Hard to tell, but my other sites connect to MySQL with no error.
So, here is my master.cf :
==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpdtlswrappermode=yes -o smtpdsasl_authenable=yes
#submission inet n - n - - smtpd
# -o smtpdenforcetls=yes -o smtpdsasl_authenable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtphelotimeout=5 -o smtpconnecttimeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# maildrop. See the Postfix MAILDROP_README file for details.
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
# The Cyrus deliver program has changed incompatibly, multiple times.
old-cyrus unix - n n - - pipe
flags=R user=cyrusimap argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
cyrus unix - n n - 10 pipe
user=cyrusimap argv=/usr/bin/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
smtp-amavis unix - - y - 2 smtp
-o smtpdata_donetimeout=1200
-o smtpsend_xforwardcommand=yes
-o disablednslookups=yes
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o localrecipientmaps=
-o relayrecipientmaps=
-o smtpdrestrictionclasses=
-o smtpdclientrestrictions=
-o smtpdhelorestrictions=
-o smtpdsenderrestrictions=
-o smtpdrecipient_restrictions=permitmynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpdenforcetls=no
-o strictrfc821envelopes=yes
-o smtpderror_sleeptime=0
-o smtpdsoft_errorlimit=1001
-o smtpdhard_errorlimit=1000
-o receiveoverride_options=no_header_bodychecks
As you can see, the 2 chrooted processes are :
smtp-amavis unix - - y - 2 smtp
127.0.0.1:10025 inet n - y - - smtpd
I tried to unchroot smtp-amavis, but it did not solve anything (except that I do not have any more information in mail.log, but I do not know if it is related). Anyway, in amavis.log, I have:
Apr 25 09:22:35 beta.local /usr/bin/amavisd[808]: (00808-01) mailviasmtp: 451 4.1.0 <[email protected]>: Temporary lookup failure
Apr 25 09:26:13 beta.local /usr/bin/amavisd[807]: (00807-02) mailviasmtp: 451 4.1.0 <[email protected]>: Temporary lookup failure
So my problem is not solved.
Thanks for you help
David -
MySql database Connection failure
Hi,
I have following code. I am using MySql database. and Tomcat server and MySql jdbc driver. I am able to get the Datasource but when I call getConnection on ds, I get Connection object as null. Any help here?
ctx = new InitialContext();
if( ctx == null ) throw new Exception("ERROR - No Context");
// ESTABLISH THE DataSource //
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/xmediaDB");
if( ds == null ) throw new Exception("ERROR - DataSource is null");
// ESTABLISH THE Connection //
con = ds.getConnection();
if( con == null ) throw new Exception("ERROR - Failed to get connection");Yes database is running...
Here are my server.xml and web.xml anything wrong here?
Hi sherbir,
Pl let me know if anything wrong.
Here is my server.xml :
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Uncomment these entries to enable JMX MBeans support -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR files
into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080"
minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS" />
</Connector>
-->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8082" minProcessors="5" maxProcessors="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" useURIValidationHack="false" />
-->
<!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8083" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
<!--
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8084" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across *all* web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
<!-- If you wanted the examples app to be able to edit the
user database, you would uncomment the following entry.
Of course, you would want to enable security on the
application as well, so this is not done by default!
The database object could be accessed like this:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
UserDatabase database =
(UserDatabase) envCtx.lookup("userDatabase");
-->
<!--
<ResourceLink name="userDatabase" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
-->
<!-- PersistentManager: Uncomment the section below to test Persistent
Sessions.
saveOnRestart: If true, all active sessions will be saved
to the Store when Catalina is shutdown, regardless of
other settings. All Sessions found in the Store will be
loaded on startup. Sessions past their expiration are
ignored in both cases.
maxActiveSessions: If 0 or greater, having too many active
sessions will result in some being swapped out. minIdleSwap
limits this. -1 means unlimited sessions are allowed.
0 means sessions will almost always be swapped out after
use - this will be noticeably slow for your users.
minIdleSwap: Sessions must be idle for at least this long
(in seconds) before they will be swapped out due to
maxActiveSessions. This avoids thrashing when the site is
highly active. -1 or 0 means there is no minimum - sessions
can be swapped out at any time.
maxIdleSwap: Sessions will be swapped out if idle for this
long (in seconds). If minIdleSwap is higher, then it will
override this. This isn't exact: it is checked periodically.
-1 means sessions won't be swapped out for this reason,
although they may be swapped out for maxActiveSessions.
If set to >= 0, guarantees that all sessions found in the
Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up (saved to the Store,
but left in active memory) if idle for this long (in seconds),
and all sessions found in the Store will be loaded on startup.
If set to -1 sessions will not be backed up, 0 means they
should be backed up shortly after being used.
To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart to false, then restart
Catalina.
-->
<!--
<Manager className="org.apache.catalina.session.PersistentManager"
debug="0"
saveOnRestart="true"
maxActiveSessions="-1"
minIdleSwap="-1"
maxIdleSwap="-1"
maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
-->
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>user</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name>
<value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>driverName</name>
<value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceLink name="linkToGlobalResource"
global="simpleValue"
type="java.lang.Integer"/>
</Context>
<!--
Review Production Web Application Context
NOTE: this set of connection params points to the development database because we're on the developement server.
-->
<Context
path="/review"
debug="0"
reloadable="true"
docBase="C:\download\eclipse\eclipse\workspace\review"
workDir="C:\download\eclipse\eclipse\workspace\review\work\org\apache\jsp" >
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_review_log." suffix=".txt" timestamp="true"/>
<!-- JNDI entries for xmedia db -->
<Resource name="jdbc/xmediaDB"
auth="Container"
type="javax.sql.DataSource">
</Resource>
<ResourceParams name ="jdbc/xmediaDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>50</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>80</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>admin</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://153.32.143.96:3306/xmedia_dev?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
<!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
To configure the Apache side, you must ensure that you have the
"ServerName" and "Port" directives defined in "httpd.conf". Then,
lines like these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppDeploy" directives can be accessed through Apache.
-->
<!-- Define an Apache-Connector Service -->
<!--
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="webapps"
acceptCount="10" debug="0"/>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
-->
</Server>and Here is my web.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>
<!-- BEGIN: icon section -->
<!-- END: icon section -->
<!-- BEGIN: display-name section -->
<display-name>Cross-Media Review Server</display-name>
<!-- END: display-name section -->
<!-- BEGIN: description section -->
<description>
Cross-Media Review Server
</description>
<!-- END: description section -->
<!-- BEGIN: distributable section -->
<!-- END: distributable section -->
<!-- BEGIN: context-param section -->
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.locale</param-name>
<param-value>en-US</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>messages</param-value>
</context-param>
<!-- END: context-param section -->
<!-- BEGIN: listener section -->
<!-- END: listener section -->
<!-- BEGIN: error-page section -->
<!-- END: error-page section -->
<!-- BEGIN: filter section -->
<filter>
<filter-name>ReviewAuthenFilter</filter-name>
<filter-class>com.adobe.xmtech.review.BeamAuthenticationFilter</filter-class>
</filter>
<!-- END: filter section -->
<!-- BEGIN: filter-mapping section -->
<filter-mapping>
<filter-name>ReviewAuthenFilter</filter-name>
<servlet-name>ReviewHandler</servlet-name>
</filter-mapping>
<!-- END: filter-mapping section -->
<!-- BEGIN: servlet section -->
<servlet>
<servlet-name>ReviewHandler</servlet-name>
<servlet-class>com.adobe.review.ReviewHandler</servlet-class>
<init-param>
<param-name>AcrobatFeedback</param-name>
<param-value>none</param-value> <!-- console, alert, none -->
</init-param>
<init-param>
<param-name>FDFLogging</param-name>
<param-value>file</param-value> <!-- file, none -->
</init-param>
</servlet>
<servlet>
<servlet-name>Image</servlet-name>
<servlet-class>com.adobe.review.util.ImageServer</servlet-class>
</servlet>
<servlet>
<servlet-name>Precompile</servlet-name>
<servlet-class>com.adobe.review.util.Precompile</servlet-class>
</servlet>
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>com.adobe.xmtech.review.Login</servlet-class>
</servlet>
<servlet>
<servlet-name>Logout</servlet-name>
<servlet-class>com.adobe.xmtech.review.Logout</servlet-class>
</servlet>
<servlet>
<servlet-name>FetchPDF</servlet-name>
<servlet-class>com.adobe.review.beam.misc.FetchPDF</servlet-class>
</servlet>
<!-- END: servlet section -->
<!-- BEGIN: servlet-mapping section -->
<servlet-mapping>
<servlet-name>Image</servlet-name>
<url-pattern>/acrobat/img/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Precompile</servlet-name>
<url-pattern>/acrobat/jsp/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/acrobat/misc/Login</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Logout</servlet-name>
<url-pattern>/acrobat/misc/Logout</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FetchPDF</servlet-name>
<url-pattern>/acrobat/misc/FetchPDF/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReviewHandler</servlet-name>
<url-pattern>/acrobat/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReviewHandler</servlet-name>
<url-pattern>*.fdf</url-pattern>
</servlet-mapping>
<!-- END: servlet-mapping section -->
<!-- BEGIN: session-config section -->
<session-config>
<session-timeout>86400</session-timeout>
</session-config>
<!-- END: session-config section -->
<!-- BEGIN: mime-mapping section -->
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>fdf</extension>
<mime-type>application/fdf</mime-type>
</mime-mapping>
<!-- END: mime-mapping section -->
<!-- BEGIN: welcome-file-list section -->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
<!-- END: welcome-file-list section -->
<!-- BEGIN: error-page section -->
<!-- END: error-page section -->
<!-- BEGIN: taglib section -->
<!-- END: taglib section -->
<!-- BEGIN: resource-ref section -->
<!-- krs added for JNDI db connection -->
<resource-ref>
<description>DB Connection</description>
<!-- For JBoss, use java:/jdbc/xmediaDB as the res-ref-name -->
<!-- For Tomcat, use jdbc/xmediaDB as the res-ref-name -->
<res-ref-name>java:comp/env/jdbc/xmediaDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- END: resource-ref section -->
<!-- BEGIN: security-constriaint section -->
<!-- END: security-constriaint section -->
<!-- BEGIN: login-config section -->
<!-- END: login-config section -->
<!-- BEGIN: security-role section -->
<!-- END: security-role section -->
<!-- BEGIN: env-entry section -->
<!-- END: env-entry section -->
<!-- BEGIN: ejb-ref section -->
<!-- END: ejb-ref section -->
</web-app>
Maybe you are looking for
-
In the account payment how many vendor output come in one time
Hi experts, In Automatic payemnet suppose there is vendor from 1001 to 1010 and we run the program in f110 so what is the output that is come in one output or 10 output for the different evndors. bye Arti singh
-
How to debug JSP in JDeveloper
I want to debug a JSP page in JDeveloper. I have put break point in jsp page, but when called from browser, control does not stop at break point in JSP. Please suggest, how to debug a JSP page in JDeveloper
-
how to downgrade app world from version 4.0.0.65 to 3.1.4.25 because my bb after upgrade to version 4.0.0.65 is gone... or how to show my app world ? thanks for help..
-
Firefox no longer plays vines or twitter gifs
After I updated to version 35.0.1 I noticed that vines, both on twitter and on the vine site, and animated gifs in twitter no longer play. The gifs never even show up, and the vines load but can't play. Checked both in Chrome and they worked fine the
-
Question about java.util.date
hello all. could anyone please help me or give me some input about a small problem i have run in to. okay, im writing a program that will read in 3 different text files and have them sorted into array lists. well i am working on the 3 main class defi