You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jürgen Weber (JIRA)" <ji...@apache.org> on 2008/11/02 20:52:44 UTC
[jira] Commented: (GERONIMO-4381) Better error message for trying
to inject String arrays
[ https://issues.apache.org/jira/browse/GERONIMO-4381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644612#action_12644612 ]
Jürgen Weber commented on GERONIMO-4381:
----------------------------------------
I have 2.1.3
I took the sample from http://cwiki.apache.org/GMOxDOC21/calculator-using-ejb-30-functions.html
and added
@Resource
String[] hello;
to Calculator.java
The error comes with or without ejb-jar.xml.
I'll append ear + src
> Better error message for trying to inject String arrays
> -------------------------------------------------------
>
> Key: GERONIMO-4381
> URL: https://issues.apache.org/jira/browse/GERONIMO-4381
> Project: Geronimo
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Components: dependencies
> Reporter: Jürgen Weber
> Priority: Minor
> Attachments: calculator.ear
>
>
> I erroneously tried to inject a String array
> @Resource
> private String[] ...
> There should be a better error message for this than
> could not load class [Ljava.lang.String;
> org.apache.geronimo.common.DeploymentException: could not load class [Ljava.lang.String;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.