[EJB 3.0] - Re: [JDBCExceptionReporter]'last_insert_id' is not a recogni
by pakhi
Hi, I ve been reading your issues, and I am also finiding a similar issue in my application. I am jus trying to insert in one table in whihc one field in Identity"Id".
My Entity Bean is like follows:
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column (name="id")
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
and my table contains this field id as set to IDENTITY....
then also i m getting this error...
sed by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]'last_insert_id' is not a recognized function name.
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
14:18:36,232 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.executeQuery
Has anyone tried to look into such Entitiy insertion...
Please reply... I ve been looking into it for so long...
THanks alot...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054662#4054662
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054662
18Â years, 10Â months
[JBoss Seam] - Re: SeamPDF and generating tables fails after some iteration
by baz
Thanks for the information, Peter
Can i safely compile facelets from their for my own?
We have realized that there are some changes in the facelets version provided with seam. If we run our app with facelets 1.1.12 it will not work (especially the parts using s:decorate) With the provided Jars from Seam all is ok.
So my question is: Are the modifications of the facelest jar also in the facelets CVS or not?
What do you mean with:anonymous wrote : and then compile Seam against that facelets library?
I thought that i can replace the facelets library in my app with the one i compiled. Have i really compile seam again for my own? And if this is true, why is it necessary?
Thanks again for your answer.
New qustion: Due to the bug mentioned above it is not possible to create tables with variable amounts of columns. Is there an other solution for this really needed requirment?
Please do not mention the tomahawk table. We are migrating to jboss AS 4.2.0GA which uses the sun RI instead of myfaces.
Thanks for your time to read.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054659#4054659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054659
18Â years, 10Â months
[JBoss Seam] - Re: To Gavin king__suggestion about restriction
by ybxiang.wolf
"gavin.king(a)jboss.com" wrote : I think you've got kind of the wrong idea about what the security rulebase should look like.
|
| It should not have 1000s of rules, 1 for each user, instead it should have one rule which says: "if the needed Permission belongs to User.getPermissions(), grant the permission".
**************************************************
It should not have 1000s of rules, 1 for each user, instead it should have one rule which says: "if the needed Permission belongs to User.getPermissions(), grant the permission".
~~~~~~~~~~~This is just what i want!
~~~~~~~~~~~This is just what i want!
~~~~~~~~~~~This is just what i want!
~~~~~~~~~~~This is just what i want!
~~~~~~~~~~~This is just what i want!
I think i haven't grasp drools and cann't use it correctly. I will spend more time on drools and seam.
Thank you so much!!!
You are the best(NOT so called "one of the best") in jboss.com.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054657#4054657
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054657
18Â years, 10Â months
[JBoss Portal] - Re: probleme with
by eagleIT
Sorry for the bad title.
So i use the function page.createWindow , the window is well stored in the database, but unfortunately the window is not visible in my portal , even after logout/login. the window just doesn't appear. I think my portalObjectContainer is not reinjected. The portlet Perzonalize bundled with Jboss Portlet works just fine.
* Action pour ajouter une window dans une page donnée, avec une région donnée
| */
| public void actionAddWindow() {
| Page page = (Page) this.selectedPage;
| try {
|
| String instanceName = this.selectedPortletName;
| String nameWindow = this.selectedPortletName.replaceAll("Instance", "Window");
| nameWindow = nameWindow + (int) (100 * Math.random());
| Window window = page.createWindow(nameWindow, ContentType.PORTLET, instanceName);
| Content content = window.getContent();
|
| window.setDeclaredProperty(ThemeConstants.PORTAL_PROP_REGION, this.selectedRegionName);
| window.setDeclaredProperty(ThemeConstants.PORTAL_PROP_ORDER, "" + Integer.MAX_VALUE);
|
|
| reinitOrderWindows(window);
|
| //this.portletInfo.getPortletContext().setAttribute("PortalObjectContainer", portalObjectContainer);
| //this.portletInfo.getPortletContext().setAttribute("InstanceContainer", instanceContainer);
|
| } catch (DuplicatePortalObjectException unexpected) {
| unexpected.printStackTrace();
| }
|
| }
Sorry for the poor english ;)
Best Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054648#4054648
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054648
18Â years, 10Â months