Andrew Dambrosio

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

Recent posts by Andrew Dambrosio

I'm in the process of setting up a web service client using Axis2 with XML beans. My code is exiting my calculateTest function without throwing an exception. If you look at my code below, the code exits at the line "AuthHeader authHeader = authHeaderDocument.addNewAuthHeader();"



The output I'm seeing is:



No exceptions are thrown. Why would the code be silently failing on this line?
9 years ago
So I should be using this marshaller then? I've never used that before. Is that what creates the SOAP request?
9 years ago
To give a bit more information, I generated the java classes using wsdl2java using java 1.6 (this is what our website is using).
Below is a cut down version of the client that i've created:

9 years ago
Unfortunately, the WSDL is a 3rd party and I have no control over it. My version (bottom) must match the top, otherwise the request is rejected.
And yes, my <Data> should have <Data xsi:type="PVData">

9 years ago
I have created a JAX-WS client based on a 3rd party WSDL.
The request should look like the following:



However, my actual request is looking like this:

As you can see, the AuthHeader is missing some namespaces and the "h:" prefix, and the s:body element is missing all namespaces.
What do I need to do to get my request XML to match what I should be sending?
9 years ago
My JSF pages need to appear as HTML pages. I've figured out that using PrettyFaces is my best option.
10 years ago
JSF
I have a JSF 2.0 web app that stores every page in a database table. The table includes the "pretty" URL for the page.
What I would like to do is, if you enter the URL "www.test.com/com/aboutus.html" This should access the actual page of "www.test.com/faces/pages.xhtml?url=%2Fcom%2Faboutus.html"

Basically, any of my pages need to access the pages.xhtml file, passing in the pretty URL and displaying the pretty URL in the browser navigation bar.
I think I should use Pretty Faces to do this, but I'm not sure how to set it up.
Does anyone know?
10 years ago
JSF
See my code below. I've set up a test. All I'm trying to do at the moment is make sure I can retrieve data from the database (I haven't included the interfaces). Can you provide any tips?
I'm using spring 3.1.
There is something wrong with the configuration. I'm getting the following error:
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/C:/Workspace/test.jar!/com/mb/AAATestBean.class]; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

My test bean to output the brands in the database:


Brand.java



BrandDAO


BrandBL


persistence.xml


applicationContext.xml
10 years ago
JSF
I've had a look at this spring JPA tutorial
http://spring.io/guides/gs/accessing-data-jpa/

Why does this tutorial not require an applicationContext.xml file?
The last time I did a spring project (2010), you had to specify all the beans in the applicationContext.xml file. This does not seem to be required anymore by using the @AutoWired annotation?
10 years ago
JSF
Tim,
I've started creating the business logic and DAO classes in my application.
I'm trying to set up me applicationContext.xml.
I need to set it up so it uses Glassfish connection pooling and connects to a MSSQL 2008 database using Eclipselink JPA.
I can't find an example anywhere of such a configuration. Do you have any examples?
thanks
10 years ago
JSF
Thanks for you help.
I came across the following tutorial which I found gave me a good visual of how everything works.

http://www.javacodegeeks.com/2012/04/jsf-2-primefaces-3-spring-3-hibernate-4.html
11 years ago
JSF
Thanks,
I think I'm starting to understand.
I came across this example which uses hibernate.
http://technology-for-human.blogspot.com.au/2011/04/jsf-2-spring-3-jpa-hibernate-3.html

I can't figure out how the EntityManager is set though.

Any links to a tutorial that uses JSF, JPA and Spring would be much approciated. I can't find anything.
11 years ago
JSF
I've be asked to create a new website and I have to use JSF (Primefaces) and Eclipselink JPA. I haven't created an application from scratch for a couple of years and I've forgotten the best way to structure the application.
Is the following tutorial a go example of setting everything up?
http://wiki.eclipse.org/EclipseLink/Examples/JPA/JSF_Tutorial

I can't figure out if I need to use Spring. Personally I can't get my head around Spring and don't see how it can benefit my app. If I am wrong, let me know.

I'm also trying to get my head around bean injection. I don't see the point of it. The current website that I've been maintaining doesn't use it. I've personally used it in the past but can't remember it's purpose.

I've searched for these answers but can't find anything.

Can someone help
11 years ago
JSF
I just tried what you said and it made no difference. The datatable is not rerendered properly. At the end of the moveUp method, the order is correct. But it seems like between the end of that method and the re-render, the changes are lost. I added a <h:messages> tag and there is no error.
13 years ago
JSF
I am using JSF1.2 and Richfaces 3.3 and have a datatable with a column that contains an up arrow and another column that has a down arrow. These allow you to move the row up and down. However, when I click on them, the moveUp method in the bean is triggered and the order is updated, but I don't see this in my browser. When I trigger it again, I can tell (with printlns) that the order is reset to what was originally retrieved from the database.
Below is an extract of my JSP and bean. Please help
13 years ago
JSF