Skip to content

XAware Community

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
XAware 5.6
Need Help
Webinars and Events
Advanced Tutorials
Webinars and Events

You are here: Home arrow Forums
XAware Community Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Simple XAware App on OC4J (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Simple XAware App on OC4J
#4172
zeminluo (User)
XAware user
Posts: 13
User Offline Click here to see the profile of this user
Simple XAware App on OC4J 11 Years, 7 Months ago Karma: 0  
1. I deployed xaware.war on a oc4j container without error;
2. I created a simple xaware sql query app in Eclipse and tested sucessfully locally;
3. I modified deploySOAP.bat to point to deployment target url and run it without error;
4. I deployed created xar file and deployed it to oc4j without error;
5. When I test it by pointing to(http://localhost:8888/xaware/bizview/BizDoc2.xbd? )
I got the following error:
<?XML version="1.0" encoding="ISO-8859-1"?>
<XAwareError>
<error>XAware exception executing Biz Document: Failure executing BizView: BizDoc2.xbd
org.xaware.shared.util.XAwareException: Failure executing BizView: BizDoc2.xbd caused by Failed to register BizViewSessionEntry MBean caused by MBean registration for XAware.statistics.BizViewSessions:name="BizDoc2.xbd" failed, Unauthorized access from application: xaware to MBean: XAware.statistics.BizViewSessions:name="BizDoc2.xbd"</error>
</XAwareError>

Please help.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4173
dblack (Admin)
Admin
Posts: 508
User Offline Click here to see the profile of this user
Re:Simple XAware App on OC4J 11 Years, 7 Months ago Karma: 21  
What version of OC4J? The error is a an attempt to update JMX statistics recorded by the XAware Engine which may need some additional configuration to work on your OC4J instance, given that it supports it. Perhaps this article from Oracle's Technology Network will get you going in the right direction. Another article which may also demonstrate some required settings...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4179
zeminluo (User)
XAware user
Posts: 13
User Offline Click here to see the profile of this user
Re:Simple XAware App on OC4J 11 Years, 7 Months ago Karma: 0  
Dave,

We are running oc4j 10.1.3.0.1. I tested my app on jboss and it's working fine. I then compared JMX settings between oc4j and jboss. They're similar. This JMX pre-configure is a little out of my reach. Or do you have more detailed oc4j pre-configure example? What's exacly I need to accomplesh?

What version of oc4j was the xaware tested and supported by out-of-box?

Thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4180
dblack (Admin)
Admin
Posts: 508
User Offline Click here to see the profile of this user
Re:Simple XAware App on OC4J 11 Years, 7 Months ago Karma: 21  
We do not test on oc4j and I do not have detailed instructions on what you would need to configure oc4j for JMX. The links I provided above were the results of searching on oc4j and JMX in an attempt to give you something to try. The other option you have is to comment out all of the MBeanExporter's in our config files. This will disable JMX reporting to the JMX console but that should be as much of a concern in your case since it doesn't seem to be enabled on oc4j.

This is not recommended for other servers as you will loose the JMX capabilities for management your deployed services.

Navigate to your XAware installation's conf directory on your oc4j box. Search for "MBeanExporter".
You should find a list of files in the common and servlet subdirectories similar to:
Connectors.XML (in common\Spring)
EngineCore.xml
LogHandlersSpringConfig.xml
SecurityConfig.xml
StatisticsConfig.xml
Connectors.xml (in servlet\spring)
Updates.xml

Edit each of these files and comment out the entire section
from <bean id="statisticsExporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false"> ..... to the closing </bean> tag for that section. It will contain several <property> sections.

Ensure that you comment out the complete section but not the remainder of the file such as the closing </beans> tag or you will cause other issues with parsing the XML based config files.

Please let me know if these instructions are not clear enough and I'll attempt to write up a more detailed process if necessary.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4272
zeminluo (User)
XAware user
Posts: 13
User Offline Click here to see the profile of this user
Re:Simple XAware App on OC4J 11 Years, 7 Months ago Karma: 0  
Dave,
Thanks for your JMX tips. I did some study on OC4J Admin and the folowing are what I found:
1. When deploying xaware.war, we should de-select "Inherit parent application's shared library imports" on the container server properties. This will fix "Internal 500" error, though OC4J deployment interface always give you "successfully deployed" message.
2. Check "Enable J2SE 5.0 Platform MBeans" in server properties before deploy and run xaware application .xar file. This will fix JMX related "authentication" errors.

Thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5961
snieman (User)
XAware member
Posts: 2
User Offline Click here to see the profile of this user
Re:Simple XAware App on OC4J 10 Years, 7 Months ago Karma: 0  
I am curious to know if the OC4J deployment was successful, and whether XAware xars are running. I am currently building Fusion middleware integration processes with Oracle's SOA Suite 10g (oc4j 10.1.3.4.0), and TopLink and PureSQL are extremely buggy and feature-limited as a persistence layer. BPEL Process Manager works fine -- but words for TopLink are not kind.

Has anyone used XAware to replace TopLink in 10g? Or EclipseLink in 11g? I tend to resort back to XAware as a benchmark to see if 'its me' or if its TopLink.

I feel there is a good opportunity for XAware if it could find a way to replace TopLink and be incorporated in Oracle's SOA development suite.

What do you think Darin?

Scott
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Community Login

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
Commercial
Free Training
QuickStart Packages
Image 4 Title
Image 5 Title

Visit XAware.com