Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

peter aerts

Ranch Hand
+ Follow
since Jan 22, 2009
peter likes ...
MyEclipse IDE
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
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.
6 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.
6 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
/home/farshid/bea/jdk160_05/jre/bin/java
-Xms384m
-Xmx768m
-XX:MaxPermSize=256m
-XX:PermSize=192m
-XX:NewRatio=3
-Xss256k
-DprodMode=production
-Dweblogic.home=/home/farshid/bea/wlserver_10.3
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dnitrox.boot.jar=file:/home/farshid/bea/workshop_10.3/nitrox-boot.jar
-Dosgi.install.area=/home/farshid/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse
-Dosgi.instance.area.default=/home/farshid/bea/user_projects/workspaces/default
-Dosgi.configuration.area=/home/farshid/bea/workshop_10.3/workshop4WP/eclipse/configuration
-Declipse.product=com.bea.workshop.product.workshop
-Dosgi.splashPath=file:/home/farshid/bea/workshop_10.3/workshop4WP/eclipse/plugins/com.bea.workshop.product
-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
-showsplash
-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/eclipse_1023.so
-startup /home/farshid/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/siz
6 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.

gf-client.jar
glassfish-api.jar

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) {

System.out.println(employee);
}

} catch (NamingException e) {
e.printStackTrace();
}


}

}


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(ClassLoader.java:927)
at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at com.sun.hk2.component.LazyInhabitant.loadClass(LazyInhabitant.java:124)
at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:111)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:135)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
at org.jvnet.hk2.component.Habitat$5.get(Habitat.java:701)
at java.util.AbstractList$Itr.next(AbstractList.java:345)
at com.sun.enterprise.naming.impl.NamedNamingObjectManager.checkAndLoadProxies(NamedNamingObjectManager.java:73)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:462)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.virtualpairprogrammers.client.ClientApplicationTest.main(ClientApplicationTest.java:19)
[size=18]

[/size]
[/size]
Dear Rob,

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


for(int j=1;rs.next();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:

USER_NAME,LOCK_USER,BLOCK_USER,CREATION_DATE,EMAIL,DESCRIPTION,FIRST_NAME_V,LAST_NAME_V

Please refer to the while (rs.next()) { } 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.


8 years ago
JSF
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 : 127.0.0.1
Telnet port :6666
Telnet Maximum connection :1
Felix file install pool :5000
8 years ago
JSF
yes its strange for me too but that is the error...
version of myeclipse is 9 and i did not change anything
8 years ago
JSF
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 : 127.0.0.1
Telnet port :6666
Telnet Maximum connection :1
Felix file install pool :5000

please advise me on this error.

8 years ago
JSF
Hello.
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}">
</h:selectOneMenu>


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";
}
[size=12]
[/size][color=black]
[/color]
10 years ago
JSF
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.
11 years ago
Hello.
I have database with following column:
blob pic
startDate date
endDate date
description String
now i want to show these data with displaytag.how can i use column decorator to retrive images from database and show with displaytag.
please help me.
thank you.
11 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:

portlet-liferay.xml



portlet.xml


struts-config.xml


tiles-def.xml


Please heeeeeeeeeeeeeeeeeeeeelp me.please.
11 years ago