Claudinei Junior

Greenhorn
+ Follow
since Feb 19, 2011
Claudinei likes ...
Netbeans IDE Oracle Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Claudinei Junior

Hello mates,

I'm not sure whether this sort of question is allowed here - if it is not, apologies and please close this topic down.

I'm studying for the OCJWS and I've stumbled into this paragraph whilst reading the excellent Service Design Pattern book:

Another problem with Extension Points pertains to the problem of nondeterminism. This occurs when an XML processor (i.e., client, service, or validating XML parser) can’t figure out when a document or document fragment terminates. A complex type may, for example, define a sequence of elements that contains an optional telephone number element followed by an Extension Point. If the client sends the telephone number, the processor can’t know if that should be the last element or if the wildcard content in the extension might follow.



I'm having a bad time to understand the statements above. May you please help me through?

If I have a XML with the following structure:



The XSD could say: "xs:complex type contact details has a sequece of xs:string element called telephone followed by xs:any" (I'm not going to dare to scribble a XSD from the top of my head - for the sake of the example, I think the plan English description will do)

I honestly cannot see why the XML processor won't be able to identify when the contactDetails is over. The telephone element is followed by a contactDetails closing tag.

Can someone please help me to understand that problem?

If someone is interested in the text, the full paragraph says:

Another problem with Extension Points pertains to the problem of nondeterminism. This occurs when an XML processor (i.e., client, service, or validating XML parser) can’t figure out when a document or document fragment terminates. A complex type may, for example, define a sequence of elements that contains an optional telephone number element followed by an Extension Point. If the client sends the telephone number, the processor can’t know if that should be the last element or if the wildcard content in the extension might follow. One solution is to make everything that precedes the extension a required element, but this fundamentally alters the rules for how data is exchanged. The parties could instead identify the extension as being a required element and mark it off with Sentry Elements [Obasanjo] that surround the extension and act as delimiters.
This means that the sender must always provide an extension, but the contents of it may be left blank. While this solves the problem of nondeterminism, the party receiving this structure still has no way to predict what it might find



Cheers.
Hello,

has anyone ever purchased this training http://www.epractizelabs.com/certification/sun/oce-webservices-exam-6.html ?
If yes, does it worth?

I'm considering to buy it in order to help me out on my preparation to the exam... but I'm not so sure how good the material is.

Thanks in advance,
Cheers.
Hello,

I just found out that there is a certification regarding JPA:

Did someone take the exam?
What do you think about it?
What books about JPA do you recommend?

Cheers.



It worked!

Thanks a lot.

I'm just wondering why it worked - I mean: the vertical orientation is the "default" - why did I have to declare it explicity to work?

Thanks in advance,
Best Regards.
11 years ago
Hello,

I'm trying to show a TextView in the top of a screen and, below the TextView, I want to show a ListView.

My layout is:


The only view that is being shown is the TextView. The ListView does not appear.

If I remove the TextView entry from the XML, the ListView appears.

Does anyone have an ideia of what I can do to show the TextView and the ListView?

Thanks in advance,
Best Regards
11 years ago
Hello,

I'm studying JAX-WS API and I'm trying to learn how to use WebParam.Mode (IN, OUT and INOUT).

I made this interface:


This is the implementation of the WS:


Player class:



Person class:


When I try to publish the service, I get this exception:


As I'm just studying WS and I'll not publish my services in production environment, I'm using the Endpoint class to publish them:


Does anyone know what's going on?

Thanks in advance,
cheers.
11 years ago
To solve, I did:

I added this dependecy to the pom.xml


Also, I created this profile:


IDK for what is these configurations, but it worked.
(Obs.: a similar configuration is auto-generetad by Netbeans when you create a new Maven project, so I made these configurations based upon Netbeans auto-generated configuration).

Hope this topic and solution be useful for someone else

Thanks and Regards!
11 years ago
Hi!

I already solved the issue

Thanks everyone for help me out!

Best Regards!
11 years ago
Hi,

I created the sun-jaxws.xml file as I said.
When I tried to deploy I got an error message from Glassfish saying that the server dind't support JSR 109, thus the sun-jaxws.xml file would be ignored by the server

The only suggestion I can think of at the moment is to start from scratch and, step by step, work towards the current project (that you have problems with) to see where it goes wrong.



Thanks for the suggestion, Ivan!
I did what you suggested and I got the same problem when I tried to deploy

Does anyone have any idea of what is going on?

I'm considering to start to use Tomcat. I always used Glassfish and up to now I never had problems...

Thanks in advance,
Best Regards
11 years ago
Oh I forgot to mention:
The libs, sun.xml, web.xml, WEB-INF and META-INF dirs are into the war as well.
Sorry for that

Thanks in advance,
Best regards
11 years ago
Hi Ivan,

I already looked at the file system and (I think) it's ok.

The files into the war are:


The wsdl wasn't included in the war file
Is that normal?

I googled about this problem and I found some people talking about the sun-jaxws.xml.
I'll create this file and test again....

Any more suggestion?

Thanks in advance,
Best Regard
11 years ago
Hello,

Do you know if the OCPJWSD exam is at a more conceptual level?
I mean if know the concepts about EJB/SOAP/REST/WSDL/XML and how they work is enough - or is necessary to know those technologies at a detailed code level?

I don't know if I made myself clear
If you don't understand what I mean, please let me know.

Thanks in advance,
Best Regards
Hello Ivan,

First of all, thanks for answering me.

First of all, concerning the endpoint address in the WSDL: GlassFish will insert an appropriate endpoint address dynamically, so you need not concern yourself with this.



Great! I didn't know that

Second, is the Maven pom-file created entirely by NetBeans?



Nope. I created the project using maven and edited the pom.xml by myself.

Below, the entirely POM:


The unique tag added automatically by Netbeans is:


Thanks in advance,
Best Regards
11 years ago
Hello,

I'm trying to deploy a JAX-WS webservice using Maven (through Netbeans) on Glassfish, but it's not working.
Apparently, no error occurs when I deploy, but I'm not able to access the services (not even their WSDL) - I always face a 404 error (when trying to access the WSDL) - but I can access any application web page.

My test class is:


A piece of my pom.xml


This piece of the generated WSDL confused me:


Anyone knows what is going on or knows how to solve?

Thanks in advance,
Best Regards
11 years ago