leonardo battagli

Ranch Hand
+ Follow
since Aug 28, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by leonardo battagli

Hi all,

first time here I am trying AOP on Jboss5.

I'm upgraded jboss5 with the jboss-aop-2.1.GA, this means I've used the readMeAs5.txt file and copied the following

To upgrade your jboss instance:
1) Copy the contents of the lib folder into the JBoss-5.x/lib/ folder
2) Copy the jboss-aop-jdk50.deployer over the JBoss-5.x/server/xxx/deployers/jboss-aop-jboss5.deployer/ folder
3) Copy the jboss-aop-client.jar (located at ../lib) into the JBoss-5.x/client/ folder.
Note that this will not replace the jboss-aspect-library.jar, which is tied to application server version

Then in the jboss batch file I've added the two properties, javaagent and aop.xml

rem path per AOP, libreria
set JAVA_OPTS=%JAVA_OPTS% -javaagent:\SVILUPPO\JBOSS5\server\default\deployers\jboss-aop-jboss5.deployer\pluggable-instrumentor.jar

rem path per AOP, file xml
set JAVA_OPTS=%JAVA_OPTS% -Djboss.aop.path=D:/SVILUPPO/JBOSS5/bin/Sviluppo/jboss-aop.xml

When I try to start Jboss I get the following


JBoss Bootstrap Environment


JAVA: c:\Programmi\Java\jdk1.6.0_11\bin\java

JAVA_OPTS: -Dprogram.name=runSysOut.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=tr
ue -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dit.tasgroup.dse.env=Sviluppo/ -Djbo
ss.bind.address=localhost -Dorg.jboss.logging.Log4jService.catchSystemOut=false -javaagent:\SVILUPPO\JBOSS5\server\def
ault\deployers\jboss-aop-jboss5.deployer\pluggable-instrumentor.jar -Djboss.aop.path=D:/SVILUPPO/JBOSS5/bin/Sviluppo/jbo


12:37:39,081 INFO [ServerImpl] Starting JBoss (Microcontainer)...
12:37:39,081 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)
12:37:39,081 INFO [ServerImpl] Bootstrap URL: null
12:37:39,081 INFO [ServerImpl] Home Dir: D:\SVILUPPO\JBOSS5
12:37:39,081 INFO [ServerImpl] Home URL: file:/D:/SVILUPPO/JBOSS5/
12:37:39,081 INFO [ServerImpl] Library URL: file:/D:/SVILUPPO/JBOSS5/lib/
12:37:39,081 INFO [ServerImpl] Patch URL: null
12:37:39,081 INFO [ServerImpl] Common Base URL: file:/D:/SVILUPPO/JBOSS5/common/
12:37:39,081 INFO [ServerImpl] Common Library URL: file:/D:/SVILUPPO/JBOSS5/common/lib/
12:37:39,097 INFO [ServerImpl] Server Name: default
12:37:39,097 INFO [ServerImpl] Server Base Dir: D:\SVILUPPO\JBOSS5\server
12:37:39,097 INFO [ServerImpl] Server Base URL: file:/D:/SVILUPPO/JBOSS5/server/
12:37:39,097 INFO [ServerImpl] Server Config URL: file:/D:/SVILUPPO/JBOSS5/server/default/conf/
12:37:39,097 INFO [ServerImpl] Server Home Dir: D:\SVILUPPO\JBOSS5\server\default
12:37:39,097 INFO [ServerImpl] Server Home URL: file:/D:/SVILUPPO/JBOSS5/server/default/
12:37:39,097 INFO [ServerImpl] Server Data Dir: D:\SVILUPPO\JBOSS5\server\default\data
12:37:39,097 INFO [ServerImpl] Server Library URL: file:/D:/SVILUPPO/JBOSS5/server/default/lib/
12:37:39,097 INFO [ServerImpl] Server Log Dir: D:\SVILUPPO\JBOSS5\server\default\log
12:37:39,097 INFO [ServerImpl] Server Native Dir: D:\SVILUPPO\JBOSS5\server\default\tmp\native
12:37:39,097 INFO [ServerImpl] Server Temp Dir: D:\SVILUPPO\JBOSS5\server\default\tmp
12:37:39,097 INFO [ServerImpl] Server Temp Deploy Dir: D:\SVILUPPO\JBOSS5\server\default\tmp\deploy
12:37:39,800 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/SVILUPPO/JBOSS5/server/default/conf/boots
12:37:40,222 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
12:37:40,222 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
12:37:40,503 INFO [CopyMechanism] VFS temp dir: D:\SVILUPPO\JBOSS5\server\default\tmp
12:37:40,503 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
12:37:40,690 ERROR [AbstractKernelController] Error installing to Create: name=AspectManager state=Configured
at org.jboss.aop.asintegration.jboss5.JBoss5Integration.getDomainRegistry(JBoss5Integration.java:125)
at org.jboss.aop.asintegration.jboss5.JBoss5Integration.createScopedClassPoolFactory(JBoss5Integration.java:137)

at org.jboss.aop.asintegration.core.AspectManagerServiceDelegate.createFactory(AspectManagerServiceDelegate.java
at org.jboss.aop.asintegration.core.AspectManagerServiceDelegate.create(AspectManagerServiceDelegate.java:238)
at org.jboss.aop.deployers.AbstractAspectManager.create(AbstractAspectManager.java:89)
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:597)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelCont
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerCo
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAc
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:331)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:144)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
12:37:41,394 INFO [ServerInfo] Java version: 1.6.0_11,Sun Microsystems Inc.
12:37:41,394 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.0-b16,Sun Microsystems Inc.
12:37:41,409 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
12:37:41,425 INFO [JMXKernel] Legacy JMX core initialized
12:37:43,566 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository
.SerializableDeploymentRepository@1de152f(root=D:\SVILUPPO\JBOSS5\server, key=org.jboss.profileservice.spi.ProfileKey@14
12:37:43,566 INFO [ProfileImpl] Using repositoryrg.jboss.system.server.profileservice.repository.SerializableDeployme
ntRepository@1de152f(root=D:\SVILUPPO\JBOSS5\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default
12:37:43,581 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@106def2{key=org.jboss.profileservice.spi.ProfileKey@
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:

AspectManager -> java.lang.NullPointerException

*** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
JMXRegistrationAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
AOPClassLoaderDeployer -> AspectManager{Installed:**ERROR**}
JMXCreateDestroyAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
JMXStartStopAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
AspectManagerJMXRegistrar -> AspectManager{Installed:**ERROR**}
BeansDeploymentAopMetaDataDeployer -> AspectManager{Installed:**ERROR**}, jboss.kernel:service=Kernel{Installed:**ERROR*
AOPDeploymentAopMetaDataDeployer -> jboss.kernel:service=Kernel{Installed:**ERROR**}, AspectManager{Installed:**ERROR**}

at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:148)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
12:37:44,144 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
12:37:44,144 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
Premere un tasto per continuare . . .
8 years ago
I am facing a problem, I want to create a selectOne with a table inplace of a selectItem.

As to say instead of using this:

I'd like use something like this

is that possible?
10 years ago

I resolved with nested panelgrid (each row then needs a different class style)

10 years ago
Hi all,

We want to personalize a datatable and looking for the better way.

our backing bean property is an ArrayList of n elements, each element has to be rendered with a different view, this is to say the first element has to be rendered with 2 columns, the second with 4, the last with only one.

- datatable offers only f:column (this is to say you have not control over <tr>
- datatable con be used with nested panelgrid (each row then needs a different class style)
- datatable with nested f:verbatim

which could be best solution?

10 years ago

Originally posted by Rahul Bhattacharjee:
You can try this , but would not recomend this.

Write a singleton repository , which can store key , value pairs and then place those classes in shared/classes , so that this is visible to all the web applcations.

what does that 'singleton repository' means?

It means, create an object with the singleton pattern and store it in shared/classes of the ear, so that both application can access it?
11 years ago

Originally posted by Adeel Ansari:

These scopes would not be available out of the context. Or you can use some stateful beans. Indeed, you can send some data using request parameters.

Other options are already mentioned.

Ok, btw HttpSession API confirm this
"Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another."

but what that 'directly' means?
which are the not-so direct way to access to session info from a different web context?
11 years ago
I recently set up Cocoon to use XSLTC (on application server Websphere 5.1.1).

I had two errors in my code, the first one has been resolved since stack trace contains some information about the error as you can see:
Caused by: javax.xml.transform.TransformerException: resource://com/cedac/webcontoc/resources/resources/xsl/list.xsl: line 3: Variabile 'contextPath' definita pi� volte nello stesso ambito.
resource://com/cedac/webcontoc/resources/resources/xsl/dispo.xsl: line 3: Variabile 'contextPath' definita pi� volte nello stesso ambito.
at org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.endDocument(TemplatesHandlerImpl.java:252)

the second one has NOT been resolved since stack trace contains ONLY some generic information about the error (JAXP_COMPILE_ERROR):
at org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.endDocument(TemplatesHandlerImpl.java:252)

Anyone knows how to get more information about the detailed reason of this JAXP_COMPILE_ERROR ?

Hi all,

I am able to change ClassLoader mode from PARENT_FIRST to PARENT_LAST but I also need to change WAR ClassLoader policy from MODULE tO APPLICATION

this is the JACL I am using now:
set deployments [$AdminConfig getid "/Deployment:bnl/"]
set deploymentObject [$AdminConfig showAttribute $deployments deployedObject]
set myModules [lindex [$AdminConfig showAttribute $deploymentObject modules] 0]
set myWarModule [lindex $myModules 0]
$AdminConfig modify $myWarModule {{classloaderMode PARENT_LAST}}
$AdminConfig save

set deploymentId [$AdminConfig getid /Deployment:$bnl/]
set deployedObj [$AdminConfig showAttribute $deploymentId deployedObject]
set classLoaderAttr [$AdminConfig showAttribute $deployedObj classloader]
$AdminConfig modify $classLoaderAttr {{mode PARENT_LAST}}
$AdminConfig save

I think that I need only to know the variabile name , ie.

set classLoaderAttrPolicy [$AdminConfig showAttribute $deployedObj classloaderPolicy]

how can I find all variables names?

12 years ago
Hi all,

while using some dinamyc store procedures I get in the following error:

[BEA][SQLServer JDBC Driver]Value can not be converted to requested type.

I'm using WL8.1 and Sql Server 2000.

Store procedure contains two different queries where table name is a store procedure's parameter.
The first time it works great, after that I always have this error:

Reading bea doc's I found
There may be other issues related to caching prepared statements that are not listed here. If you see errors in your system related to prepared statements, you should set the prepared statement cache size to 0, which turns off prepared statement caching, to test if the problem is caused by caching prepared statements.

If I set prepared statement cache size to 0 everything works great but that does not seem the better way.

Should we expect Bea to solve this problem?
Or whatever else solution?

thks in advance
13 years ago
I have a simple problem...

I need that my ejb jar could see a simple xsl file.

My ejb jar file is packaged in an ear file.

So I tried to put the xsl file inside the ear file and added a reference to it in the ear manifest.mf file.

but that doesn't works

So I put the xsl inside the ejb jar file and added a reference to it in the ejb jar manifest.mf file.

Now it works!

The problem is I want an ANT TASK to put it inside the ejb jar file, but I didn't found anything working for doing this

Ant manual says to use
<include name="resources/xsl/f24.xsl"/>
but that makes my target fail without exceptions!!

Hope it is understandable

Thks in advance
13 years ago
Hi all,
I need to start evaluating products/libraries for building PDF using JAVA and an XSLT processor.
I have experience with FOP, iText and XEP, but I never tested its performance.
Can anyone post a link with some resources to start from??
Thks in advance
13 years ago
Hi all,
I need to start evaluating products/libraries for building PDF using JAVA and an XSLT processor.
I have experience with FOP, iText and XEP, but I never tested its performance.
Can anyone post a link with some resources to start from??
Does anyone of you has to suggest a products/library???
I need to build PDF varying from 1-10 pages to 200-300pages in an application running on WebLogic8 istance.
Thks in advance
Hi all,
Is it possibile to re-deploy an application without forcing user to login again? Now all the sessions gets' invalidated during a re-deploy
I mean, I'd like to update the application during office hours, and not during lunch time !! ;-)
thks in advance
13 years ago
I tryied to add my SystemProperties in 'Remote Start' tab (inside managedServer Configuration) with no result.
So the solution I have found is the following:
1. Stopping Node Manager service
2. Modify startNodeManager.cmd adding the SystemProperties and classpath
3. Start managedServer with WebAdministrationConsole
But now I could have another problem,
what If I want to start a different managed Server (ex. managedServer2) with a different SystemProperties ?

Originally posted by leonardo battagli:
How can I share the SystemProperties if I want to start the Managed Server with the WebAdministrationConsole
thks in advance for any tips

13 years ago
Hi all,
I've not much experience in WebLogic and I have this problem.
I have modified the 'startWebLogic.cmd' adding a System Properties, so now my weblogic server starts with a command line similar to this one:
- %JAVA_HOME%\bin\java %JAVA_VM% -cp "%CLASSPATH%" -DmyParameter=test -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server
and my EAR application is able to read the property : 'myParameter'
Now I want to deploy the same application in a different 'Managed Server'(in the same host), so I modifyed 'startManagedWebLogic.cmd' adding the same System Properties, I don't have the same result.
It is that possible that I can't see a System Properties from a Managed Server?
How can I share the SystemProperties if I want to start the Managed Server with the WebAdministrationConsole
thks in advance for any tips
13 years ago