Ng Jeffrey

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

Recent posts by Ng Jeffrey

i also notice that there is a warning prior this error
[org.jboss.system.ServiceController]
jboss.jca:service=LocalTxDS,name=MySqlDS
does not implement any Service methods
22 years ago
problem: MBeans waiting for other MBeans
description: i am testing the jboss jdbc connection.
No ejb deployments simply registration of jdbc with jboss.
Under default server everything is running ok. This problem
arises only i tried to create a server with the necessary
services and libraries
question: 1. May i know mbeans is waiting for which service?LocalTxCM?
but why is this service not registered.
2. Do i have to define ConnectionManager and TransactionManager
service under jboss-service.xml and how? Thought it has been
specfied under mysql-service.xml?
3. Do i need jboss-local-jdbc.rar?and how it is being registered
as a service?
4. LocalTxCM, ManagedConnectionFactoryName, ManagedConnectionFactoryProperties,
JBoss LocalTransaction JDBC Wrapper are these names registered names?
eg. jboss.jca:service=LocalTxDS -> where is the reference for LocalTxDS
5. How to resolve this issue for this scenario?
Thanks in advance
Jboss version - 3.0.4
Configuration
--------------
1.Server Name (rainmaker)
- Conf - jboss-service
- jndi.properties
- log4j.xml
- standardjboss.xml
- standardjbosscmp-jdbc.xml

- deploy - jboss-local-jdbc.rar
- jca-service.xml
- mysql-service.xml
- user-service.xml
- lib - jaas.jar
- jboss.jar
- jboss-j2ee.jar
- jboss-jca.jar
- jboss-management.jar
- jboss-minimal.jar
- jnet.jar
- jnpserver.jar
- jpl-pattern.jar
- jpl-util.jar
- log4j.jar
- mysql-connector-java-2.0.14-bin.jar

-----------------------------------------------------------------------------------
server log
-----------------------------------------------------------------------------------
2003-03-27 11:39:36,288 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner]
MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
<none>
Incompletely deployed packages:
<none>
MBeans waiting for classes:
<none>
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=LocalTxCM, name=MySqlDS
state: CONFIGURED
I Depend On: jboss.jca:service=LocalTxDS,name=MySqlDS
jboss.jca:service=LocalTxPool,name=MySqlDS
jboss.jca:service=CachedConnectionManager
jboss.security:service=JaasSecurityManager
jboss.jca:service=RARDeployer
Depends On Me: ]
-----------------------------------------------------------------------------------
mysql-service.xml
- This file is from mysql-service.xml from examples/jca/
- Changes made only on (ConnectionURL, DriverClass, UserName, Password), the rest is untouched.
- jndi-name=MySqlDS
-----------------------------------------------------------------------------------
standardjbosscmp-jdbc.xml
- same file from default directory
- modified the datasource
<datasource>java:/MySqlDS</datasource>
<datasource-mapping>mySQL</datasource-mapping>
-----------------------------------------------------------------------------------
jboss-service
- same file from the minimal directory jboss-service.xml
- added this lines
<!-- ==================================================================== -->
<!-- Transactions -->
<!-- ==================================================================== -->
<mbean code="org.jboss.tm.XidFactory"
name="jboss:service=XidFactory">
</mbean>
<mbean code="org.jboss.tm.TransactionManagerService"
name="jboss:service=TransactionManager">
<attribute name="TransactionTimeout">300</attribute>
<depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
</mbean>
<mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService"
name="jboss:service=ClientUserTransaction">
</mbean>


<!-- The CachedConnectionManager is used partly to relay started UserTransactions to
open connections so they may be enrolled in the new tx-->
<mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager"
name="jboss.jca:service=CachedConnectionManager">
</mbean>

-----------------------------------------------------------------------------------
22 years ago
Hi, i have problem building ejb with ant 1.5.1
<target name="build-appserver-borland">
<echo message="Building EJB Jar file ......"/>
<ejbjar srcdir="${project_home}/classes"
basejarname="projectEJB"
descriptordir="${project_home}/src/xml/"
classpath="${project_home}/src/lib;${project_home}/src/libx">
<borland destdir="${project_home}" verify="on" version="4" />
<include name="${project_home}/src/xml/ejb-jar.xml"/>
<exclude name="${project_home}/src/xml/ejb-inprise.xml"/>
</ejbjar>
<echo message="Building EJB Jar file ...... SUCCESS"/>
</target>
Problem:
[ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer
Question:
"org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer" is in my %ANT_HOME%\lib\optional.jar
I do not understand why it is not loading? can anyone explain to me?
projectEJB.jar is the output jar
${project_home}/src/xml/ is where my descriptors are.
${project_home}/src/lib/ stores required libraries for ejbs
${project_home}/src/libx/ stores borland specific libraries such as asrt.jar....
System variables
Set ANT_HOME=D:\libraries\jakarta-ant-1.5.1
Set Path=%Path%;%ANT_HOME%\bin;%ANT_HOME%\lib;
22 years ago
Thanks for the useful link ... it gives me an idea how i should counter my problem ...
You may like to check out jaxb ... xml binding
This is what i tried to do using xpath2.0 engine saxon7
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl utput method="text" indent="yes" />
<xsl:variable name="newline">
<xsl:text>
</xsl:text>
</xsl:variable>
<xsl:template match="/">
<xsl:for-each-group select="/"
group-by="Year">
<xsl:text>Total count (by year) = </xsl:text>
<xsl:value-of select="count(//Year)"/>
<xsl:value-of select="$newline"/>
<!-- ########LOGIC IS WRONG HERE ##### -->
<xsl:for-each-group select="/"
group-by="Month">
<xsl:text>Total count (by Month) = </xsl:text>
<xsl:value-of select="count(//Month)"/>
<xsl:value-of select="$newline"/>
<xsl:for-each-group select="/"
group-by="Day">
<xsl:text>Total count (by Day) = </xsl:text>
<xsl:value-of select="count(//Day)"/>
<xsl:value-of select="$newline"/>
</xsl:for-each-group>
</xsl:for-each-group>
<!-- TILL HERE -->
</xsl:for-each-group>
</xsl:template>
</xsl:stylesheet>
calculating customers GROUP BY YEAR,MONTH,DAY - that's my objective. The above result returns 3 for all groups ...
or are there alternatives to handle such situations
pls advise
what you have done is set a particular day, month, year which i do not want to do...
<xsl aram name="Day">1</xsl aram>
<xsl aram name="Month" select="12"/>
<xsl aram name="Year" select="1977"/>
the xsl should not contain any hardcoded information instead it should calculate the number of customers with their DOB grouped by year,month,day respectively...
count customers group by birth date using xsl
-> without hardcoding of birth date in xsl
actually, i found a <xsl:for-each-group> but it is available in xpath 2.0. it is able to handle my request... using saxon7 but the problem is i can't do multiple nest <for-each-group> working ... so i thought there might alternatives in xpath1.0
pls advise.
i have an xml file =>
----------------------------------
<?xml version="1.0"?>
<data>
<customer id=1>
<Name>Tom</Name>
<DOB>
<Day>1</Day>
<Month>12</Month
<Year>1977</Year>
</DOB>
</customer>
<customer id=2>
<Name>Dick</Name>
<DOB>
<Day>1</Day>
<Month>12</Month
<Year>1977</Year>
</DOB>
</customer>
<customer id=3>
<Name>Harry</Name>
<DOB>
<Day>2</Day>
<Month>12</Month
<Year>1977</Year>
</DOB>
</customer>
</data>
-----------------------------
How do i count the total number of customer who has the same DOB - birthday? using xsl
i have gathered that an fo can be rendered to html using renderX with a fo2html.xsl.
fo file alone cannot be rendered to html.
conclusion df and html will have a stylesheet themselves and not a single fo for both rendering to html and pdf
Currently, i have a fo file that can be rendered to pdf using FOP. Can the same fo file be rendered to html?if so, pls recommend the xsl fo engine which is able to handle my request.