Nitti Lin

Ranch Hand
+ Follow
since May 15, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Nitti Lin

Guys,

Sorry if I post in the wrong place...

If ActionForm class validate method found errors, I can use <html:errors/> to display error message in JSP.

Does anyone know how do I show error message using Velocity template?

Thanks,

Nitti
19 years ago
OK,

I work it out!

Nitti
Hi guys,

I'm using XSLT to transform XML and use Jaxb to parse the transformed XML, but received error saying

"The markup declarations contained or pointed to by the document type declaration must be well-formed."

After I traced into it, in Something.xsd file and the line that caused problem is
"<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="1.0">"

That's the xsd file I defined to generate Jaxb classes. I do have a </xs:schema> end tag at the end of Something.xsd.

What I'm doing are....
1) I can use Something.xsd to generate Jaxb classes and this has been working for a while.
2) I used XSLT and Transformer to transform received XML into the same XML format as Something.xsd, and it generated an XML with the same format as Something.xsd. The generated XML has <!DOCTYPE>, which reference Something.xsd.
3) When I pass that transformed XML to my Jaxb classes, the unmarshaller complains about the line below
"<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="1.0">"
saying it's not well-formed.

Does anyone have any ideas what's going on or is there any way that I can make transformed XML without showing "<!DOCTYPE>"?

Thanks,

Nitti
I would like to doulble check if XSLT would resolve my problem before I started...

I have two XML A and B. Both of them are almost the same, the only differences is XML A has element <gender> before <age> while XML B has <age> before <gender>.

Ie:
XML A

<gender>M</gender>
<age>20</age>

XML B
<age>20></age>
<gender>M</gender>

I'm using Jaxb to parse XML A without any problems at all, but if I use the same classes to parse XML B, it failed because parser is expecting <gender> not <age>.

1) Does anyone know if I can use XSLT to transform XML B to be like XML A? This way, I don't need to re-engineer the whole system.

2) Is it possible that I can configur Jaxb to accept the different order of elements?

I need you guys' advises on this. Do I need (or can I use) XSLT to resolve my problem?

Thanks,

Nitti
We have Tomcat running on Linux, that machine has no monitor. I need to see the Tomcat console window on that box from my machine to the error message printed on that machine. I'm using Windows 2000.

Does anyone know how to see Tomcat console window on Linux box from my Windows 2000 machine?

Please advise, thanks.

Nitti
19 years ago
Guys,

Sorry, I didn't find anyone asked this kind of question...

I run Apache2 and Tomcat4 on Windows Server 2003 for my website. I managed to work Apache with Tomcat, and can access the website by typing either "http://localhost/MyWeb/" or "http://localhost:8080/MyWeb/".

My question is ...
1) How do I change it to "http://MyWeb/" instead of "http://localhost/MyWeb"?
2) How do I set it up for people from outside to access the web by typing "http://www.myweb.com/"?

I've been working on this myself for a month, but still can't work it out. Please help me.

Thanks,

Nitti
19 years ago

Originally posted by Lasse Koskela:
What is "EbXMLMessage.java:765" trying to do?


Sorry, I figurred it out. It's my fault and a very stupid one. One of the required field I sent was null.

Nitti
20 years ago
Guys,
I have some Java classes generated by Apache Axis WSDL2Java. I'm writing wrapper classes using "Apache Axis WSDL2Java" generated classes to communicate to a remote server, then using JAXB generated classes to build XML messages.
My question is...
1) If I execute my wrapper Java classes to talk to remote server, program works fine.
2) If I run a Tomcat server on my local machine using JSP to call my wrapper class to talk to remote server, one of my wrapper classes got an exception...
System was unable to process request due to internal error
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
...
3) If I execute my wrapper Java classes to talk to remote server and using JAXB generated classes to generate XML message, program raised an exception...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.SystemFailure
faultSubcode:
faultString: System was unable to process request due to internal error
faultActor:
faultNode:
faultDetail:
{}StackTrace: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.dom4j.TextImpl
at com.xxxxx.universalservices.base.io.ebxml.EbXMLMessage.getErrorResponseMessage(EbXMLMessage.java:765)
I think 2) and 3) are related problems, but not sure what's going on. Could anyone please show me some directions to solve this problem?
Thanks,
Nitti
[ April 14, 2004: Message edited by: Nitti Lin ]
20 years ago
Guys,
I'm not sure if this is the right place to ask this question. If not, I'm sorry.
We are currently having problems with JRun and would love to find another server that we can afford. We don't need EJB just something more stable than JRun.
Is there any servers out there that we can take a look at except Tomcat?
Thanks a lot,
Nitti
20 years ago
Thank you very much. I will do a search before I post any questions next time.
Thanks a lot.
Nitti
Guys,
HTTP is connectionless or connection based? I remember it's connectionless, but some mock exams said it's connection based. Which one is correct?
Thanks,
Guys,
I think the answer is C, but correct answer says D. ??? Which one is correct?
You are looking at a class diagram that another developer has drawn. You notice a solid black diamond and a line linking two classes together. What does the black diamond imply in UML?
AAggregation
BAssociation
CComposite Aggregation / Composition
DDependency
EInheritance/Generalization

Nitti
True or false?
Point To Point Messaging is a message queue system.
I think it's true, but the answer is false. What do you guys think?
Nitti
[ September 02, 2003: Message edited by: Nitti Lin ]
I got my SCJD result, but my score is only 135/155 (87%).... sigh... At lease, I have one more Java certification to put on my resume.
Here it is the detail...
General Considerations: Maximum=58 Deductions=10 Actual=48
Documentation: Maximum=20 Deductions=7 Actual=13
GUI: Maximum=24 Deductions=0 Actual=24
Server: Maximum=53 Deductions=3 Actual=50
Total: Maximum=155 Deductions=20 Certification Score=135

Time to focus on SCEA part I.
Nitti
[ June 30, 2003: Message edited by: Nitti Lin ]
21 years ago
Thanks for reply.
Yeah, I just got the respond from them....have a feeling that I maybe miss something and be failed.
Nitti