473,472 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Java transformation jboss 4.2 vs. Tomcat 5.5

1 New Member
I have a java class that takes data from a backend database plus some xls does the transform and returns the generated xhtml.

I have just discovered that when executing the class under Tomcat 5.5 I get what I expected but when executing the class under Jboss4.2 it changes one of the transformed lines.

The xsl for this line is:
Expand|Select|Wrap|Line Numbers
  1. <xsl:template match="GENOGRAM">
  2. <html>
  3. <head>
  4.   <title>Ebase Technology - Genogram</title>
  5.   <link href="avatar/css/genogram/genogram.css" rel="stylesheet" type="text/css"/>
  6. </head>
  7. <body>
The line that is transformed differently in Jbos is the stylesheet link

e.g.

Running in Jboss I get this transformation:

Expand|Select|Wrap|Line Numbers
  1. <link type="text/css"  rel="stylesheet" href="avatar/css/genogram/genogram.css"> 
Running in Tomcat it transforms like this:

Expand|Select|Wrap|Line Numbers
  1. <link href="avatar/css/genogram/genogram.css" rel="stylesheet" type="text/css" />
You will notice that the "text/css" and href have been switched.


Any clues as to why this is happining would be most welcome.
Oct 13 '09 #1
2 2545
r035198x
13,262 MVP
Does it cause any problems? Which one appears first should be of no consequence. Why they are swapped could be related to one each of the servers generate that text. I wouldn't worry about it unless it causes any problems. Which it should not.
Oct 14 '09 #2
Frinavale
9,735 Recognized Expert Moderator Expert
This switch can't possibly cause any problems.
The HTML link tag has a bunch of attributes that you can set. The order of these attributes isn't important.

It could be the browser that you're using to view the HTML. I know that if I use something like FireBug things aren't shown exactly as are in code (FireBug also hides comments etc...there's configuration settings).

Or it could be that Jboss is preforming some sort of private logic that results in switching the attributes.

The important thing is that it the order of tag attributes does not have an effect on the element.

-Frinny
Oct 15 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Cruinne | last post by:
Hello, In a JBoss 3.2.4 server, I have deployed several enterprise javabeans (each as a separate .jar, not in an .ear bundle). These beans are completely self-contained, as they include all...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
18
by: jacksu | last post by:
I have a simple program to run xpath with xerces 1_2_7 XPathFactory factory = XPathFactory.newInstance(); XPath xPath = factory.newXPath(); XPathExpression xp = xPath.compile(strXpr);...
3
by: Jazi | last post by:
Hi, I have built a web servise using JNI under jboss. The JNI loads a native library static { Ststem.loadLibrary("foo"); } If I starts the jboss server then I do not have any issue...
66
by: flarosa | last post by:
Hi, I'm wondering if I can get a reasonably civil (without starting any huge wars) opinion on how server-side PHP compares to server-side Java. I've been strictly a Java developer for almost...
1
rsrinivasan
by: rsrinivasan | last post by:
Hi all, Any one know the difference between JBOSS and Tomcat? When should i use tomcat and JBOSS? Thanks,
2
by: khalidanwar123 | last post by:
i am getting the following error while updating a clob field. ERROR java.sql.SQLException: Data size bigger than max size forthis type: 4003 19:28:27,499 ERROR at...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.