-
as seen on Server Fault
- Search for 'Server Fault'
I'm trying to setup a tomcat6 server, and I'm trying to match another setup someone else established. However, my deployment (default Ubuntu install) uses a policy.d/ directory structure, and the established server just uses a catalina.policy file. I've tried setting every entry in policy.d to match…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am not able to create a Queue connection in JBOSS4.2.3GA Version & Java1.5, as I am using MDB as per the below details.
I am putting this MDB in a jar file(named utsJar.jar) and copied it in deploy folder of JBOSS, In the test env. this MDB works well
but in another env. [ env settings and…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am using Postgres and gwt 2.0 for one of my applications. I am facing problem connecting to the database. When I try to connect it gives "ClassNotFoundException". Here is what I get when I try to connect to database:
java.lang.ClassNotFoundException: org.postgresql.Driver
at java.net…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
For i am using postgre and gwt 2.0 for one of my applications. I am facing problem connecting to the database. When i try to connect it gives "ClassNotFoundException". Here is what i get when i try to connect to database:
java.lang.ClassNotFoundException: org.postgresql.Driver
at java.net…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I'm trying to migrate an application running on JBoss 4.2.2.GA to JBoss 6.0.0.M2
I give you some log to explain my problem :
boot.log :
2010-03-16 09:59:29,406 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (Thread-2) Failed to load profile: Summary of incomplete deployments…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is a switch statement the fastest way to implement operator interpretation in Java
public boolean accept(final int op, int x, int val) {
switch (op) {
case OP_EQUAL:
return x == val;
case OP_BIGGER:
return x > val;
case OP_SMALLER:
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm programming a simple text-based RPG using a switch statement for a game loop. The program works fine until I attempt to add another case statement, at which point it gives me the following three errors: "jump to case label" (error occurs at the line of the newly added case), and two "crosses initialization…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
I currently have a switch statement that runs around 300 odd lines. I know this is not as giant as it can get, but I'm sure there's a better way to handle this.
The switch statement takes an Enum that is used to determine certain properties that pertain to logging. Right now the problem…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
For ScoreOption, I expect to get the following input "A", "B", and T_(state) for example T_NY
so..
how can I write case switch statement for third option T_(state)
switch(ScoreOption.ToUpper().Trim())
{
case "A":
....
break;
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I would like to change this:
// use appropiate lang.xx.php file according to the value of the $lang
switch ($_SESSION['lang']) {
case 'en':
$lang_file = 'lang.en.php';
break;
case 'es':
$lang_file = 'lang.es.php';
break;
case 'zh-tw':
$lang_file = 'lang.zh-tw.php';
break;
case…
>>> More