Enabling JDK 1.5 support in JSPs on Jboss

Author - Webner
|
0 Comments
|

Applicable to JBoss 4.0.4 GA:

Suppose you are using jdk 1.5 features in JSPs but they fail with following exception

jboss jsp Syntax error, parameterized types are only available if source level is 5.0

that means you need to enable jdk 1.5 vm support for Read more…

Evince – PDF file print problems on SuSE

Author - Webner
|
0 Comments
|

Evince is default document viewer for PDF files on SuSE 10.2. I tried to print pdf files opened in Evince but could not get them to print. Sometimes no error is reported (not even in CUPS error log) but document does not print at all. At other times “Broken Read more…

Eclipse 3.3.1 – Server did not start after 50s

Author - Webner
|
0 Comments
|

If you face this error – fix is to change “server timeout delay” under Window > Preferences > Server to higher value.
From ‘normal’ I changed that to ‘long’. Server started up in 55s, but still I received similar error , only time was changed to 100s now.
I set it to Read more…

install CUPS-PDF on SuSE 64-bit

Author - Webner
|
0 Comments
|

What is CUPS-PDF

CUPS-PDF acts as a virtual printer but instead of printing hard copies of your files, it prints PDF files as output. It appears as a printer under printer list on your machine, and if you select that you would get a pdf file Read more…

JBoss 5 Profile Creation Problem – Eclipse

Author - Webner
|
0 Comments
|

If you face problem “mail.jar not found” on configuring JBoss 5 profile in Eclipse then the reason is JBoss 5 moved server/default/lib*.jar to server/common/lib folder. Fix for this problem is to change jboss5.serverdef under eclipse (${ECLIPSE_HOME}/plugins/org.eclipse.jst.server.generic.jboss_1 Read more…

SVN Switch

Author - Webner
|
0 Comments
|

I am assuming you are working on code from branch A (it may be trunk as well) and have already made some changes locally. Now you find you can’t commit your changes to SVN because they are not stable yet.
First of all, you should have started working on Read more…

Linux – Get full path of a running process

Author - Webner
|
0 Comments
|

2 ways that I know to get the full path of a process in linux:

1. /proc/ /exe is a symlink to the actual exe. Here’s what I get for a program eclipse running on my machine under pid 4825 with this command:

localhost:/home/Office # ls Read more…

DAO with JPA (and service layer/EJB3-Session Beans) or not

Author - Webner

There is a lot of discussion on internet about whether to have DAOs or not with JPA and service layer or with session beans (which is the service layer).

My personal opinion is more favored towards DAO layer and some reasons for this are following:

1. In most of the Read more…

Approach Java (1)

Author - Webner

Free Online Courses With Personalized Certificate

I started writing this tutorial targeting MCA students in Himachal Pradesh University, Shimla, India (from where I did MCA back in 99). This is an attempt to help students learn Java by practice. I am posting this tutorial(work in progress) on my blog Read more…

SCEA 5 – My 2 cents

Author - Webner
|
0 Comments
|

recently became SUN certified Enterprise Architect after clearing all 3 parts of SCEA. It is hard to get answers to all questions one may have regarding SCEA but SCEA forum on javaranch.com is great!! I have shared my experience here for each part to help SCEA seekers.

Part 1 Read more…

Host Credentials ERROR Invalid username and or password Oracle 11g

Author - Webner
|
0 Comments
|

On Windows XP do following :

Go to Control Panel > Administrative Tools > Local Security Policy > Local Policies > User Rights Assignment

Search “Log on as batch job”, double click it, click Add User or Group and add the userid you are trying to use under Oracle Read more…

Software Release Life Cycle

Author - Webner
|
0 Comments
|

Number of stages for a software, before it is released, may vary project to project and company to company. But in general pre-alpha (nightly builds, which may not have all features implemented), alpha (with all requirements implemented, unit-tested but before testing by QA), beta (after Alpha-testing by Read more…

Linux “grep and copy”

Author - Webner
|
0 Comments
|

Suppose I have a folder hierarchy as below:

f1 > f2

f2 > f3

f2 > f4

f4 > f5

I want to find all files in f1 or any of its descendant folder that contain text “I am a match” and copy them into f1’s parent folder (whatever Read more…

Linux Truncate (Log)File

Author - Webner
|
0 Comments
|

Commands to empty logfile :

1. :>logfile – If logfile does not exist, this will create an empty log file, otherwise it will empty the existing file.

2. cat /dev/null > logfile – This is equivalent to above command.

Command to truncate logfile to specific size :

Sometimes we want Read more…

find: paths must precede expression

Author - Webner
|
0 Comments
|

In Linux bash you may face an error while using wildcard * to search files. For e.g. trying to search all jar files with the following command:

find. -name *.jar

will give following error:

find: paths must precede expression

Usage: find [-H] [-L] [-P] [path…] [expression]

Reason is that * is Read more…

AJAX Response Race Condition

Author - Webner
|
0 Comments
|

I am working on a j2ee project in which a lot of UI screens are AJAX based. Recently we started facing problems on some screens, which were not updating correctly. On one of the screens we have a lot of options with checkboxes to select them. Each checkbox click submits Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 
Send your message