hi there
I ran into something strange today.
I am developing some cmp entity beans, and one of them I have named
"ReportWhereValue" , and it has a finder with an xdoclet tag that looks
like this:
* @ejb.finder
* signature="java.util.Collection findAll()"
* result-type-mapping="Local"
* method-intf="LocalHome"
* query="SELECT OBJECT(o) FROM ReportWhereValue o"
Now when I deploy this bean I get this huge nested exception:
17:33:58,190 ERROR [EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error compiling ejbql; -
nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException:
Encountered "Report" at line 1, column 23.
Was expecting one of:
"IN" ...
<ABSTRACT_SCHEMA> ...
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java
:46)
[snip/]
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run
(AbstractDeploymentScanner.java:177)
+ nested throwable:
org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "Report" at
line 1, column 23.
Was expecting one of:
"IN" ...
<ABSTRACT_SCHEMA> ...
at
org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.generateParseException(EJBQL
Parser.java:3745)
[snip/]
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run
(AbstractDeploymentScanner.java:177)
17:33:58,218 WARN [ServiceController] Problem starting service
jboss.j2ee:service=EJB,jndiName=ejb/reporting/ReportWhereValueLocalHome
org.jboss.deployment.DeploymentException: Error compiling ejbql; -
nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException:
Encountered "Report" at line 1, column 23.
Was expecting one of:
"IN" ...
<ABSTRACT_SCHEMA> ...
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java
:46)
[snip/]
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run
(AbstractDeploymentScanner.java:177)
+ nested throwable:
org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "Report" at
line 1, column 23.
Was expecting one of:
"IN" ...
<ABSTRACT_SCHEMA> ...
at
org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.generateParseException(EJBQL
Parser.java:3745)
[snip/]
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run
(AbstractDeploymentScanner.java:177)
Apparently the ejb-ql parser finds the Where part of my ejb's name and
chokes.
Shouldn't the parser be looking for "where" with white space around it
(" where ")?
Changing the name of the ejb to something like "ReportWV" cures the
problem, but I am wondering if anyone else has run into this?
Is there maybe a way to work around this behavior (I am fond of this
ejb's name)?
-jason
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user