wade wang

Greenhorn
+ Follow
since Feb 12, 2004
Merit badge: grant badges
For More
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 wade wang

I am working on webapp using Hibernate 2.1.8 within Jboss 4.0.2. I call
Hibernate via a session bean. I pack hibernate.cfg.xml plus mapping files
in EJB-JAR mywebapp.jar. Somehow it's working fine on my windows-2000 desktop, however throwing me the following exception on my XP laptop:

Any helps would be greatly appreciated.

et.sf.hibernate.HibernateException: /hibernate.cfg.xml not found
at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:886)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:910)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:897)
at com.wwsoft.j2eecomplete.ejb.HibernateUserSessionBean.createUserWithHibernate(HibernateUserSessionBean.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
I am using jboss4.0.2 and JSTL 1.1.2. For somereason,
JSTL expressions not evaluated. For example,

the following
<c:forEach var="i" begin="1" end="5">
<c ut value="${i}"/>
</c:forEach>

gives 5 ${i} instead the value of i.

Any help would be greatly appreciated.
18 years ago
I am trying to build merlin example Hello with maven. I kept
getting something similar to the following for all the dependant
jars:

Error retrieving artifact from [http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-1.0.b2.jar]: java.net.UnknownHostException: www.ibiblio.orgWARNING: Failed to download xml-apis-1.0.b2.jar.

What shall i do? I tried http://www.ibiblio.org from my browser,
it's working.

Thanks,
wade
19 years ago
I am trying to build merlin example Hello with maven. I kept
getting something similar to the following for all the dependant
jars:

Error retrieving artifact from [http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-1.0.b2.jar]: java.net.UnknownHostException: www.ibiblio.orgWARNING: Failed to download xml-apis-1.0.b2.jar.

What shall i do? I tried http://www.ibiblio.org from my browser,
it's working.

Thanks,
wade
19 years ago
I add <jvmarg value="-Xverify:none" /> to my junit target in my ant
build file. But somehow it causes the following error:
test:
[junit] Running com.travelocity.communications.travel.hotel.datatype.jibx
lTests
[junit] #
[junit] # HotSpot Virtual Machine Error, Internal Error
[junit] # Please report this error at
[junit] # http://java.sun.com/cgi-bin/bugreport.cgi
[junit] #
[junit] # Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
[junit] #
[junit] # Error happened during: generation collection for allocation
[junit] #
[junit] # Error ID: 47454E45524154452F4F502D41500E4350500828
[junit] #
[junit] # Problematic Thread: prio=5 tid=0x00238310 nid=0x8a0 waiting on
dition
Any clue?
Thanks,
Wade
20 years ago
Hi JiBX expert,
I have a binding as below, somehow the line
<value style="attribute" name="rateCode" field="rateCode"/>
causes a runtime error as follows:
runJiBXUnmarshallingTest:
[java] java.lang.VerifyError: (class:AvailHOTResponsePropertyItemType, method: JiBX_binding_unmarshal_1_2 signature Lorg/jibx/runtime/impl/UnmarshallingContext V) Inconsistent stack height 2 != 1
Any helps would be greatly appreciated.
BR,
Wade
==================================================================
<binding>
<mapping name="availHOTResponse" class="AvailHOTResponse">
<structure name="header">
<value name="version" field="version"/>
</structure>
<structure name="body">
<structure name="property"
field="property"
type="AvailHOTResponsePropertyItemType" ordered="false">
<structure name="roomDetails">
<value style="attribute" name="rateCode" field="rateCode"/>
<structure name="rateDetails">
<value name="netRate" field="netRate" usage="optional"/>
</structure>
</structure>
</structure>
</structure>
</mapping>
</binding>