[JBoss JIRA] (JBASMP-41) Create goals to add modules do Jboss AS
by Gustavo Orair (JIRA)
Gustavo Orair created JBASMP-41:
-----------------------------------
Summary: Create goals to add modules do Jboss AS
Key: JBASMP-41
URL: https://issues.jboss.org/browse/JBASMP-41
Project: JBoss AS Maven Plugins
Issue Type: Feature Request
Reporter: Gustavo Orair
Assignee: James Perkins
A command to create modules using Jboss CLI was created
(refer to https://issues.jboss.org/browse/AS7-4265).
It should be nice if one may create these modules on Jboss server referencing a maven dependency similarly to deploy-artifact configuration section.
Maybe a possible workaround for now should be use execute-commands but it would need to locate where the maven depencies are located:
<execution>
<id>create-modules</id>
<phase>install</phase>
<goals>
<goal>execute-commands</goal>
</goals>
<configuration>
<execute-commands>
<commands>
<command>module add --name=oracle.jdbc --resources=ojdbc6.jar --dependencies=javax.api,javax.transaction.api</command>
</commands>
</execute-commands>
</configuration>
</execution>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months
[JBoss JIRA] (JASSIST-173) No Exception is thrown by CtNewMethod.make() when return type is wrong
by Pawel Veselov (JIRA)
[ https://issues.jboss.org/browse/JASSIST-173?page=com.atlassian.jira.plugi... ]
Pawel Veselov commented on JASSIST-173:
---------------------------------------
javassist certainly throws exceptions due to syntax errors, and reference errors (i.e. a method can not be found, etc). Producing invalid bytecode is quite a serious problem as JVM doesn't even say which PC contains invalid instruction, debugging these things can take a very long time and be quite a tedious process.
> No Exception is thrown by CtNewMethod.make() when return type is wrong
> ----------------------------------------------------------------------
>
> Key: JASSIST-173
> URL: https://issues.jboss.org/browse/JASSIST-173
> Project: Javassist
> Issue Type: Bug
> Affects Versions: 3.16.1-GA
> Environment: Windows Vista, JDK 1.6
> Reporter: Maxime Dubois
> Assignee: Shigeru Chiba
>
> When using the CtNewMethod.make() method to create a method that returns data with a wrong type, no Exception is thrown.
> Steps to reproduce:
> -----------------
> - use the method "public static CtMethod make(java.lang.String src, CtClass declaring)" to create a method that looks like this:
> public static boolean myMethod() { return ("toto"); }
> - add it to a CtClass object using the addMethod() method
> Result :
> -----------------
> No CannotCompileException is thrown, the method is created and added to the class without any problem even though it is not correct.
> When trying to use the resulting class, the following error is thrown: "java.lang.VerifyError: Wrong return type in function"
> Expected result :
> ------------------
> The CtNewMethod.make() method should throw a CannotCompileException indicating that the return type is wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months