shady ragab

Greenhorn
+ Follow
since Dec 17, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by shady ragab

ramprasad madathil wrote:Consider using a Queue Browser

cheers,
ram.




thank you very much ramprasad...that's it:)

Prabhakar Reddy Bokka wrote:No. You are not able to check the content of the Message.

But, you are able to consume messages based on the "correlation-id" selectively.

Is that what your intension??



thank you Prabhakar..all I really want to do is using the jboss (for example) admin-console to show meta data of the messages in an active MQ and text represents the content if possilble.
Is it clear for you now?
hi,

is there any way to check and may be say the content of messages in Acttive MQ deployed in jboss without consuming it(removing it from the queue)?

thank you in advance:)

shady
this is the complete
http://wiki.netbeans.org/wiki/images/0/03/CustomerApp2.zip

i have deleted the code line which causes the error..but i get the following exception in the run time

javax.ejb.AccessLocalException: Client not authorized for this invocation.

can anyone help me about this tutorial pleas

15 years ago
JSF
hi all

i have downloaded the complete code of this tutorial(http://wiki.netbeans.org/DevelopJavaEE6App#Summary)...but it dosn't work giving me the following error

org.apache.jasper.JasperException: file:C:/Documents and Settings/ay7aga/Desktop/CustomerApp/CustomerApp-war/build/web/CustomerList.jsp(35,20) PWC6296: The function showDetails must be used with a prefix when a default namespace is not specified
org.apache.jasper.JasperException: PWC6296: The function showDetails must be used with a prefix when a default namespace is not specified
C:/Documents and Settings/ay7aga/Desktop/CustomerApp/CustomerApp-war/build/web/CustomerList.jsp(35,20)

and this is the jsf segment has the error
<h:commandLink action="#{customer.showDetails(item)}"value="#{item.customerId}"/>

and this is the method showDetails
public String showDetails(Customer customer)
{
this.customer = customer;
return "DETAILS";
}

thanks in advance,

shady ragab

15 years ago
JSF
hi everybody,

is the data which saved by a midlet using rms persists only on the mobile device not on the emulator??

because when i have written some code which writes some data in a record and then retrieve it and run it on the netbeans emulator

when i shut down the emulator and run the program again..i can't retrieve the data from previous run

thanks in advance:)
15 years ago
hi...i have a database table SUPPLIERS and i have used netbeans wizards to generate an entity class from the table, then to generate a jsf page from from the Supplier entity class.

the net beans created a managed bean called SupplierController for me and an ejb called SupplierFacade...and its ok and runs so good.

now, i want to add some authentication on the creation of suppliers, so i have made the following

1-adjust the supplierFacade

@Stateless
@DeclareRoles({"USERS"})
public class SupplierFacade {
.
.
@RolesAllowed({"USERS"}) //USERS is a security rule
public void create(Supplier supplier) {
em.persist(supplier);
.
.
}
2-from the glassFish admin-console, i hav added a file user to a group list called bank_users
3-add to the sun-web.xml the following lines
<security-role-mapping>
<role-name>USERS</role-name>
<group-name>bank_users</group-name>
</security-role-mapping>


and i expect the application to prompt me for a user name and password when i click save link after filling the fields of the new supplier, but i only hav the following exception and nothing added to the database

WARNING: A system exception occurred during an invocation on EJB SupplierFacade method public void com.shady.compamy.DATA.SupplierFacade.create(com.shady.compamy.DATA.Supplier)
javax.ejb.AccessLocalException: Client not authorized for this invocation.


can anybody help me??
thanks inadvance:)

hi,

i am new to jsf technology so i have tried this tutorial http://netbeans.org/kb/docs/web/hibernate-jpa.html

which creates
1-an entity class for one of jdbc/sample database customer table in a web application with jsf 1.2 framework
2-a persistence unit using hipernate
3-jsf from an entity class

when i run the project i hav this error

In-place deployment at E:\3watly\projects\java EE\WebApplication2\build\web
deploy?path=E:\3watly\projects\java EE\WebApplication2\build\web&name=WebApplication2&force=true failed on GlassFish v3 Domain
E:\3watly\projects\java EE\WebApplication2\nbproject\build-impl.xml:609: The module has not been deployed.
BUILD FAILED (total time: 4 seconds)

i have netbeans 6.8 and jdk 6 update 17 and glassFish V3 integrated in the IDE

any recommendations please
thanks in advance
15 years ago
JSF
it happens everyday in the computing world:)


i am happy it has worked:)
15 years ago
hi Jeffry,

i recommend update to the last jdk available from sun


http://java.sun.com/javase/downloads/widget/jdk6.jsp
i think this will solve the problem


@ sherif using both jdk1.6.0_17 and netbeans 6.8 will solve the problem isA
good luck
15 years ago

hi Jeffry,

i recommend update to the last jdk available from sun


http://java.sun.com/javase/downloads/widget/jdk6.jsp
i think this will solve the problem
good luck
15 years ago
hi sherif

i ve insalled the jdk1.6.0_17 and the problem has solved

i wish you good luck:)
15 years ago
i ve the same problem but i ve this exception in the GF console

SEVERE: Exception while loading the app : java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.sun.webui.jsf.faces.UIComponentELResolver

i ve netbeans 6.8 windows xp and jdk1.6.0_03

anybody can help please?
thanks in advance
15 years ago
hi sherif
i ve the same problem but i ve this exception in the GF console

SEVERE: Exception while loading the app : java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.sun.webui.jsf.faces.UIComponentELResolver

i ve netbeans 6.8 windows xp and jdk1.6.0_03

anybody can help
thanks in advance
15 years ago