Posted by Saba Ansari on June 29, 2010
n828cl wrote:
I am on Fedora 12 and using tomcat 6 along with java version 1.6 ****** Here is one more line of the stack trace.
[CODE] java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at snaq.db.ConnectionPoolManager.loadProperties(ConnectionPoolManager.java:278) at snaq.db.ConnectionPoolManager.getInstance(ConnectionPoolManager.java:167) at snaq.db.ConnectionPoolManager.getInstance(ConnectionPoolManager.java:221) at com.******.(*******.java:23) [/CODE]
which correlates to this method [CODE] try { connMgr = ConnectionPoolManager.getInstance(); //THIS IS LINE 23 } catch (Exception e) { e.printStackTrace(); } [/CODE]
The init method is the following
[CODE] InputStream is = getClass().getResourceAsStream(“/db.properties”);
Properties dbProps = null; try { dbProps = new Properties();
dbProps.load(is); } catch (Exception e) { System.err.println(“Can’t read the properties file. ” + “Make sure db.properties is in the CLASSPATH”); return; } loadDrivers(dbProps); createPools(dbProps); [/CODE]
Posted by Saba Ansari on June 29, 2010
Just curious, what are you using this setup for besides authentication?
Thx dB.
dB. @ dblock.org Moscow|Geneva|Seattle|New York
Posted by Saba Ansari on June 27, 2010
There is a top level pom.xml which calls two sub modules as below: module1 module2
Where module2 is dependent on module1 The xjc plugin configuration in module1 pom.xml is as below: com.sun.tools.xjc.maven2 maven-jaxb-plugin generate false true true
The xjc configuration in module2′s pom.xml is as below: com.sun.tools.xjc.maven2 maven-jaxb-plugin com.mycompany.module1 module1 1.0 runtime generate schema.xsd bindings.xjb false true true -Xpdm
Now when I run mvn from top level directory then module2 build fails, I get the below error: [INFO] unrecognized parameter -Xpdm [INFO] ———————————————————————— [INFO] Trace unrecognized parameter -Xpdm at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:446) at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:434)
The reason for this error was because module1 dependency was not used while XJC plugin execution during module2 build. My question: why module2′s xjc plugin configuration did not come into effect? When I run mvn in module2 directory it works fine but from top level directory it fails. Any help, what I am missing at?
Posted by Saba Ansari on June 25, 2010
Our environment:
Unix Solaris 5.9 Tomcat 6.0.26 JVM 1.6.20
Our application runs in two frameworks. One uses https one does not. I am trying to configure the tomcat connectors to work but when I get it working in one framework it does not work in the other.
*I have been told we do not need to ‘handle’ SSL totally as this is handled by our load balancers. Not sure what these means*.
For example: In one framework we’ll get permission denied errors and the other will work. If we change things around the opposite occurs but instead of permission errors we get invalid certificate error.
The tomcat documentation on connectors does not describe the options very well.
The above connectors work with the http framework but gives me the “mixed content warning” in IE because some requests are http and some https.
It’s obvious I have not worked with SSL very much. Any help would be greatly appreciated.
Regards,
John Ranaudo
Posted by Saba Ansari on June 24, 2010
Hello everyone,
I am pretty new to maven and i am trying to configure a spring app with hibernate. Altough i have read a lot, i am not sure if my pom.xml is correct or maybe it could be improved in anyway.
Can someone take a look at it and give me some advices?
Thanks a lot
http://maven.40175.n5.nabble.com/file/n511117/pom.xml pom.xml
Posted by Saba Ansari on June 24, 2010
Hi,
I faced the same problem with package from Lenny repository so I used the dot deb packages and find the same problem.
Here is the description
Currently I use
PHP Version 5.2.13-0.dotdeb.1
on
Linux srv1 2.6.26-2-amd64 #1 SMP Wed May 12 18:03:14 UTC 2010 x86_64 GNU/Linux
The full php package list is
srv1:~# dpkg -l |grep php ii libapache2-mod-php5 5.2.13-0.dotdeb.1 server-side, HTML-embedded scripting language (Apache 2 module ii php5-cli 5.2.13-0.dotdeb.1 command-line interpreter for the php5 scripting language ii php5-common 5.2.13-0.dotdeb.1 Common files for packages built from the php5 source ii php5-curl 5.2.13-0.dotdeb.1 CURL module for php5 ii php5-gd 5.2.13-0.dotdeb.1 GD module for php5 ii php5-mcrypt 5.2.13-0.dotdeb.1 MCrypt module for php5 ii php5-mysql 5.2.13-0.dotdeb.1 MySQL module for php5 ii phpmyadmin 4:2.11.8.1-5+lenny4 MySQL web administration tool
Now phpinfo() shows
variables_order EGPCS EGPCS
But in the PHP scripts the cookie variables are preceeding the GET variables. How do I fix this?
Thanks
Posted by Saba Ansari on June 15, 2010
to deploy 2 virtual hosts in Tomcat 5.5.29 (no Apache) what more than the server.xml file below and a context.xml per each host in Catalina do you need to set up?
Where do I set path, like for “/”? Alright in the context file (see below)?
server.xml:
Fragment context settings in /Catalina/kron/ROOT.xml (similar for the other site:
:
This set up doesn’t serve a pages physically put in any of the ROOT folders of the sites. I get blank pages.
GUIDES? Anyone that can point to a guide that focuses only on the steps necessary to configure Tomcat 5.5.x for 2 or more virtual hosts? Preferably without involvement with Apache.
Posted by Saba Ansari on June 15, 2010
Hi,
I am having trouble in bringing up my Apache httpd server with the mod_nss configuration (with OCSP).
I changed the nss.conf to have the following configuration
NSSCertificateDatabase /usr/local/apache/nss NSSVerifyClient require NSSOCSP on NSSOCSPDefaultResponder on NSSOCSPDefaultURL http://myip:3456 NSSOCSPDefaultName my_ocsp
I have a openssl OCSP server running like this
openssl ocsp -index index.txt -CA cacert.pem -rsigner cacert.pem -rkey private/cakey.pem -port 3456
But when i start the Apache httpd server, I see the following error:
Certificate not verified: ‘Server-Cert’ SSL Library Error: -8063 The response from the OCSP server was corrupted or improperly formed.
I am new to OCSP and would really appreciate any help on this.
Thanks in advance.
Thanks & Regards, Aruna.
Posted by Saba Ansari on May 25, 2010
On Tue, May 25, 2010 at 10:24 AM, Mario Mol wrote:
No idea about that, but 2.2.9 is quite old, 2.2.15 has been released around a month ago.
Posted by Saba Ansari on May 25, 2010
Well,
i`ve done apt-get update , so its all fresh new.
Could this be related to some of security mods? For example, mod-security, qos, psad?
Cheer,s
On 25 May 2010 01:45, Nilesh Govindarajan wrote: