[JBoss AOP] - How to exclude parts of my app from AOP?
by pickuptruck
JDK5.0, JBoss-4.0.5.GA, EJB3, JSF, Seam. We've been suffering from performance degradation as our app grew larger (I mean startup time, it's important for rapid development), so we decided to take the time and do some profiling. It turned out that about 80% of the app's deployment time is spent in a single method call somewhere in Javassist. I recompiled Javasssist to print the name of every classfile it tries to parse. Every lib from our .ear went through it, some classes even multiple times (improper classloader configuration, I guess), even though all we need aspectized is a handful of EJBs.
I was wondering, is there some easy switch, some XML file which I can edit, to prevent each and every jar file bundled in the .ear from being parsed? I am an AOP freshman of course, and I'd be grateful if I don't have to read a ton of docs before achieving this simple goal.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092640#4092640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092640
18Â years, 7Â months
[JBossWS] - wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java
by nirre
Hi all.
I have upgraded my application server to jboss 4.2 and with that the jbossws was uppgraded aswell. Now my ant scripts/config files wont work...
The folllowing works in jboss 4.0.5GA:
<configuration xmlns="http://www.jboss.org/jbossws-tools" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
| <wsdl-java file="myWsdl.wsdl">
| <mapping file="jaxrpc-mapping.xml" />
| </wsdl-java>
| </configuration>
And when I run this i get this error when using wstools.bat:
Exception in thread "main" java.io.IOException: Cannot parse config: Failed to parse source: cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element 'wsdl-java'. @ *unknown*[3,69]
| at org.jboss.ws.tools.config.ToolsSchemaConfigReader.readConfig(ToolsSchemaConfigReader.java:141)
| at org.jboss.ws.tools.WSTools.generate(WSTools.java:67)
| at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
| at org.jboss.ws.tools.WSTools.main(WSTools.java:58)
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element
| 'wsdl-java'. @ *unknown*[3,69]
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:178)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:169)
| at org.jboss.ws.tools.config.ToolsSchemaConfigReader.readConfig(ToolsSchemaConfigReader.java:137)
| ... 3 more
| Caused by: org.xml.sax.SAXException: cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element 'wsdl-java'. @ *unknown*[3,69]
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:348)
| at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
| at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
| at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
| at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:174)
| ... 5 more
when searching the internet I´ve come across lots of people using the file attribute (+it tworks with jboss 4.0.5).
Would be great if someone could shed some light on the matter for me. Any help is appreciated, links, other resources etc (Ihave looked at JbossWs page in manuals but no luck...).
thanks in advance
nirre
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092639#4092639
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092639
18Â years, 7Â months