[JBoss and NetBeans] - EJB Deploynment with JBoss and use of annotations fails
by aneta
I followed the instuctions on the EJB3-Tutotial on the site http://www.laliluna.de/download/firs...utorial-en.pdf
but I can't deploy the application right, as the error down shows.
I use mysql-ds.xml in the deploy-directory in JBOSS and mysql Server 4.1 and in jboss and I placed the mysql Connector mysql-connector-java-5.0.6-bin.jar in the directory
$JBOSS_HOME/server/default/deploy/lib as said in this tutorial. I don't understand what the error-reason is. Has anybody an idea?Thanks.
My mysql-ds.xml -file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>ejb3ExampleDS</jndi-name>
<connection-url>jdbc:mysql://mysql-hostname:3306/examples</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>x</user-name>
y <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
The JBoss Error Stack:
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:jar=FirstEJB3Tutorial.jar,unitName=FirstEjb3Tutori
al
State: FAILED
Reason: javax.persistence.PersistenceException: org.hibernate.HibernateExcepti
on: Hibernate Dialect must be explicitly set
I Depend On:
jboss.jca:service=DataSourceBinding,name=ejb3ExampleDS
Depends On Me:
jboss.j2ee:jar=FirstEJB3Tutorial.jar,name=BookTestBean,service=EJB3
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056877#4056877
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056877
18Â years, 10Â months
[JBoss Seam] - ui:include and seam extended EL
by greko
Hi all !
I have an issue, using Seam 1.2.1.GA (i dont know with other versions).
Here is a working code, using EL with params :
| <h:commandLink value="#{p10}" actionListener="#{bean.setPageSize(p10)}" />
|
But, when i use this code inside a ui:include
| <ui:include src="layout/w_resultsPerPage.xhtml">
| <ui:param name="x" value="#{bean}" />
| </ui:include>
|
| ..
|
| <h:commandLink value="#{p10}" actionListener="#{x.setPageSize(p10)}" />
|
|
... then i got an exception
| ...
| 15:25:00,093 ERROR [org.jboss.seam.web.ExceptionFilter] exception root cause
| java.lang.NullPointerException
| at org.jboss.seam.ui.facelet.MethodExpressionHelper.findParamTypes(MethodExpressionHelper.java:146)
| at org.jboss.seam.ui.facelet.MethodExpressionHelper.invokeTheExpression(MethodExpressionHelper.java:98)
| at org.jboss.seam.ui.facelet.ParamMethodExpression.invoke(ParamMethodExpression.java:62)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| ...
|
Anyone has already had such an error ?
Am I doing something wrong ? (maybe)
Thanks !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056876#4056876
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056876
18Â years, 10Â months
[JBoss jBPM] - oracle : varchar length limited to 255
by gogoasa
Use case : I have a string variable, containing an exception stacktrace formatted as a string. I want to put this variable into the execution context so that users can see it listed in the web console and understand why the process has failed.
The stacktrace being big, I get a Hibernate exception. Verifying the length of my table varchar fields, I see the JBPM_VARIABLEINSTANCE.STRINGVALUE_ (where StringInstance variables store their values) is very limited (from the generated DDL):
STRINGVALUE_ varchar2(255 char)
Still, the StringInstance.hbm.xml correctly specifies :
<property name="value" type="string" column="STRINGVALUE_" length="4000"/>
4000 being the biggest varchar2 size on Oracle.
So I don't understand why Hibernate does not respect the specified length of 4000 when generating DDL. All my varchar2 fields are limited to 255.
Anybody has an idea?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056870#4056870
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056870
18Â years, 10Â months
[JBoss Portal] - Re: What is the standard way to include Javascript resources
by snicoll
"julien(a)jboss.com" wrote : So I think JBoss Portal at aggregation time should smartly aggregate the different headers in order to avoid to load the same resource several times.
|
|
Jboss 2.6-CR2 does not. I have this (excerpt):
| <portlet-app>
| <portlet>
| <portlet-name>DefaultMap</portlet-name>
| <remotable>false</remotable>
| <header-content>
| <script type="text/javascript"
| src="/tilapa-portlets-base/resource?name=root"></script>
| <script type="text/javascript"
| src="/tilapa-portlets-base/resource?name=tilapia&roottreatment=asroot"></script>
| <script type="text/javascript"
| src="/tilapa-portlets-base/resource?name=portlets-full&roottreatment=asroot"></script>
| </header-content>
| </portlet>
| <portlet>
| <portlet-name>DefaultNavBar</portlet-name>
| <remotable>false</remotable>
| <header-content>
| <script type="text/javascript"
| src="/tilapa-portlets-base/resource?name=root"></script>
| <script type="text/javascript"
| src="/tilapa-portlets-base/resource?name=tilapia&roottreatment=asroot"></script>
| <script type="text/javascript"
| src="/tilapa-portlets-base/resource?name=portlets-full&roottreatment=asroot"></script>
| </header-content>
| </portlet>
| [...]
| </portlet-app>
|
And I have X times the script definitions (where X is the number of portlets on the screen).
Too bad!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056867#4056867
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056867
18Â years, 10Â months