Help coderanch get a
new server
by contributing to the fundraiser

Peter Thunderstone

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

Recent posts by Peter Thunderstone

Hi, thank you for your reply... but... this method can be used solely for asking for this type of configuration? No parameter pass, not setter method in this class for that?..


Hi all,

please consider this Big Moose FAQ page, how to validate XML:
https://coderanch.com/how-to/java/HowToValidateXmlAgainstAnySchema

Along this, the following code and a simple data sample deliver an error however.

Troubleshooting:
- XML+XSD checked online here, they seem to be okay then http://www.freeformatter.com/xml-validator-xsd.html
- Local web server is working; if XSD url is changed, program reports connection error
- Local XML file is also there, changing its name causes a file not found error

Questions/Discussion:
- Q1 How to validate against schema, defining its location via code e.g. externally to the XML, so without changing the XML data (e.g. online tool might not load test.xsd locally to do the check)?
- Q2 How to validate passing schema as an xml schema string?
- Q3 Is it possible to validate an XML string without reading from disk?

Relevant error output (omitting warning about required custom error handler):



Java Code:


XML



XSD



Any help appreciated - cheers!
Noob

Dear Saloon members,

in the year 2010 I created a small web portal application based on the JBoss Seam framework. It was not very comprehensive but still with a mid-sized feature set coming pretty close to a "Youtube in a nutshell". These were months of work in fulltime, and the architecture was geared towards building other things from a reusable code base (so not everything was hard-coded and some abstraction layers were used).

Now after three years being completely away from the Java/JEE world I am going to try out some other ideas and of course would like to reuse previous work. What are the options given very limited time resources?

1) Migrate to Seam 3.2.0. Final
2) Continue working with Seam 2.x, just make it run on JBoss 7 (or live with JBoss 5.x?!)
3) It is worth of migrating reusable parts to some other web framework
4) Just forget it, take another web framework and start from the scratch, the compatibility breaches with both 1) and 3) are too big


A side note is that I actually do not like building and testing a complex EAR and would like to have a business logic layer encapsulated in a standalone Hibernate/JPA project which can be tested and deployed on its own. But then how to connect it to the web app? Is a build dependency just enough or do I need to dive into some JMS/Webservices constructs?

Further question: Seam was a quite easy start for a JEE beginner compared to Spring, Tapestry and stuff as of 2010 and years before. Now much of my knowledge will be obsolete. May I assume that after three years the JEE world has become nicer and easier to get back? :-)

Thanks in advance!
kind regards
your JEE Noob.