peter aerts

Ranch Hand
+ Follow
since Jan 22, 2009
peter likes ...
MyEclipse IDE
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by peter aerts

Hi Tim,

Thanks for your advice.

Best Regards.
7 years ago
Hello Dears,

I have installed GNUPG and created certificate but at the time of creation it didn't ask me to enter password and now when i am trying to change password with "KELOPATRA" getting error which has attached.

Best Regards.
7 years ago
Hi Dears,

I have installed weblogic workshop 10.3 but when i am going to start it ,i am getting bellow error.

My OS is Debian Wheezy 64 bit but workshop 10.3 which i have installed is 32 bit.

JVM terminated. Exit code=1
-jar /home/farshid/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118awtswtbridge.jar
-os linux
-ws gtk
-arch x86
-launcher /home/farshid/bea/workshop_10.3/workshop
-name Workshop
--launcher.library /home/farshid/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.3.R33x_v20080118/
-startup /home/farshid/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/siz
8 years ago
[size=18]Hi Dears,

I have created a simple EJB project as a sample in MyElipse but i am getting below error when i am runing it , please advice me what to do to fix it.

I should mention that i have added below jar files to the Java Biuld Path but still i am getting below error.


public class ClientApplicationTest {

public static void main(String[] args) {

try {
Context jndi = new InitialContext();

EmployeeManagementService service = (EmployeeManagementService) jndi.lookup("com.virtualpairprogrammers.staffmanagement.EmployeeManagemanetService");
List<Employee> listEmployee = service.getAllEmployee();
for (Employee employee : listEmployee) {


} catch (NamingException e) {



Apr 1, 2013 12:00:02 AM com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
INFO: Cannot find javadb client jar file, derby jdbc driver will not be available by default.
Exception in thread "main" java.lang.NoClassDefFoundError: org/glassfish/api/naming/NamedNamingObjectProxy
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClassOrNull(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at com.sun.hk2.component.LazyInhabitant.loadClass(
at com.sun.hk2.component.LazyInhabitant.fetch(
at com.sun.hk2.component.EventPublishingInhabitant.get(
at com.sun.hk2.component.AbstractInhabitantImpl.get(
at org.jvnet.hk2.component.Habitat$5.get(
at java.util.AbstractList$
at com.sun.enterprise.naming.impl.NamedNamingObjectManager.checkAndLoadProxies(
at com.sun.enterprise.naming.impl.SerialContext.lookup(
at com.sun.enterprise.naming.impl.SerialContext.lookup(
at javax.naming.InitialContext.lookup(
at com.virtualpairprogrammers.client.ClientApplicationTest.main(

Dear Rob,

Thanks a lot for your support.Issue resolved with the help of below for clause.

for(int j=1;;j++) {

workSheet.addCell(new jxl.write.Label(0,j,rs.getString("USER_NAME"),normalFormat));

workSheet.addCell(new jxl.write.Label(1,j,rs.getString("LOCK_USER"),normalFormat));
Hi Dears,

I want to export the result of a query to excel file by Jexcel API but don't know how to add header to excel file and how to iterate on rs and write data to the cells.headers of excel files are as follows:


Please refer to the while ( { } that i have problem to write.

Can anyone please help me on this.
Dears i could start the glassfish through the myeclipse.
there are two option for setting the glassfish first one is GlassFish V3 Final which i was getting that crazy error and the second option is GlassFish V3 Prelude that i could set and start it.
it is starting on the Felix platform does anybody knows what is Felix and is it the correct way to use glassfish? i should mention that i deployed the project and it worked successfully.

9 years ago
yes i left the defaults and about subfolder server-config i should say no also i changed the home directory too but i got the same error...even i downloaded the mentioned jar file and copied into the below path but again got the same error.

path C:\Program Files\glassfish-3.1.1/lib/monitor/btrace-agent.jar

default values are as follows.

Home Directory:
Configuration directory :
Server name : server
Domain name :domain1
Domain Directory :
Telnet ip :
Telnet port :6666
Telnet Maximum connection :1
Felix file install pool :5000
9 years ago
yes its strange for me too but that is the error...
version of myeclipse is 9 and i did not change anything
9 years ago
Hi Dears,

I am trying to start glassfish from myeclipse but i am getting below error

Error : Error opening zip file or JAR manifest missing : C:\Program Files\glassfish-3.1.1/lib/monitor/btrace-agent.jar
Error occurred during initialization of VM
agent library failed to init: instrument

also below are my configuration for glassfish inside the Myeclipse

Home Directory: C:\Program Files\glassfish-3.1.1
Configuration directory : C:\Program Files\glassfish-3.1.1\glassfish\config
Server name : server
Domain name : domain1
Domain Directory : C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1
Telnet ip :
Telnet port :6666
Telnet Maximum connection :1
Felix file install pool :5000

please advise me on this error.

9 years ago
I have a <h:dataTable and i want to edit each row .
when i press on edit button row data appear blow the datagrid or dataTable.
one of the values that users can edit will fill into the <h:selectonemenu.
I want to Know how can i fill the <h:selectonemenu with own selected item at the top of the <h:selectonemenu>
I am sorry for bad english writing.
thank you.

<h:selectOneMenu value="#{course.selectedItem}" >
<f:selectItems value="#{course.comboItems}">

public String allCategory(){
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
CategoryManager categoryManager = (CategoryManager) ctx.getBean("categoryManager");
categoryList = categoryManager.getCategorys();
comboItems = new ArrayList<SelectItem>(categoryList.size());
for (Category categoryValue : categoryList) {
comboItems.add(new SelectItem(categoryValue.getId().toString(),categoryValue.getName()));
return "course_list";
11 years ago
I use Liferay portal(v5.5) and struts and jsp and velocity,I describe a custom taglibrary that makes a <marquee> tag from database,but I cant use this taglib in velocity,because velocity dont parse my taglib and show it as a simple html tag.please do me a favor and tell how I can use my taglib in velocity pages(.vm)?

is there any java programmer?
please help me.
12 years ago
I have database with following column:
blob pic
startDate date
endDate date
description String
now i want to show these data with can i use column decorator to retrive images from database and show with displaytag.
please help me.
thank you.
12 years ago

peter aerts wrote:Hello.
I have a portlet,and I want to go to the action method at the first time that portlet start.but unfortunatly it load jsp instead of action.
how can i do?
my portlet.xml and liferay-portlet.xml is as follows:





Please heeeeeeeeeeeeeeeeeeeeelp me.please.
12 years ago