You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Moabi Nyokong <Mo...@discovery.co.za> on 2002/11/18 14:16:18 UTC

Cannot rename column names

Hi,
I have a big problem, I had to change the names of the Turbine user tables
and columns to match my company's naming conventions. I changed the names in
security-schema.xml , and rebuilt jetspeed without a problem, but now it
throws the exception att the bottom of the page, because the generated
classes now have differernt feild names, but the services package still
tries to access the default names...I tried changing the xml file to use
javaName="UserId" etc. but that doesn't seem to work on column names at
all...
Any help you can give me is greatly (greatly!!!) appreciated
 
java.lang.NoSuchFieldError: LOGIN_NAME
 at
org.apache.jetspeed.services.security.turbine.TurbineUserManagement.getUser(
TurbineUserManagement.java:164)
 at
org.apache.jetspeed.services.JetspeedUserManagement.getUser(JetspeedUserMana
gement.java:98)
 at
org.apache.jetspeed.services.security.turbine.TurbineAuthentication.getAnony
mousUser(TurbineAuthentication.java:184)
 at
org.apache.jetspeed.services.JetspeedAuthentication.getAnonymousUser(Jetspee
dAuthentication.java:107)
 at
org.apache.jetspeed.services.JetspeedSecurity.getAnonymousUser(JetspeedSecur
ity.java:157)
 at
org.apache.jetspeed.modules.actions.TemplateSessionValidator.doPerform(Templ
ateSessionValidator.java:97)
 at
org.apache.jetspeed.modules.actions.JetspeedSessionValidator.doPerform(Jetsp
eedSessionValidator.java:103)
 at org.apache.turbine.modules.Action.perform(Action.java:87)
 at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
 at org.apache.turbine.Turbine.doGet(Turbine.java:468)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
 at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:341)
 at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
 at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:251)
 at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:115)
 at jsp_servlet.__index._jspService(__index.java:91)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
 at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5363)
 at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
 at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043)
 at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2466)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


R: Cannot rename column names

Posted by Dariush Behboudi <da...@glamm.com>.
Hi Moabi,
modifying sec-schema.xml and rebuilding you only rigenerate (using torque)
the wrapping user classes to your db schema, not also the action classes
used in jetspeed to perform operations on the wrapping classes (I think, but
not sure).
As I understand, you shall modify the action classes to use the new fields.

Note: take a look on the js configuration, U'll find the default user class
used to manage users (JetspeedUser).

regards, Dariush.

-----Messaggio originale-----
Da: Moabi Nyokong [mailto:MoabiN@discovery.co.za]
Inviato: lunedì 18 novembre 2002 14.16
A: 'Jetspeed Users List'
Oggetto: Cannot rename column names


Hi,
I have a big problem, I had to change the names of the Turbine user tables
and columns to match my company's naming conventions. I changed the names in
security-schema.xml , and rebuilt jetspeed without a problem, but now it
throws the exception att the bottom of the page, because the generated
classes now have differernt feild names, but the services package still
tries to access the default names...I tried changing the xml file to use
javaName="UserId" etc. but that doesn't seem to work on column names at
all...
Any help you can give me is greatly (greatly!!!) appreciated

java.lang.NoSuchFieldError: LOGIN_NAME
 at
org.apache.jetspeed.services.security.turbine.TurbineUserManagement.getUser(
TurbineUserManagement.java:164)
 at
org.apache.jetspeed.services.JetspeedUserManagement.getUser(JetspeedUserMana
gement.java:98)
 at
org.apache.jetspeed.services.security.turbine.TurbineAuthentication.getAnony
mousUser(TurbineAuthentication.java:184)
 at
org.apache.jetspeed.services.JetspeedAuthentication.getAnonymousUser(Jetspee
dAuthentication.java:107)
 at
org.apache.jetspeed.services.JetspeedSecurity.getAnonymousUser(JetspeedSecur
ity.java:157)
 at
org.apache.jetspeed.modules.actions.TemplateSessionValidator.doPerform(Templ
ateSessionValidator.java:97)
 at
org.apache.jetspeed.modules.actions.JetspeedSessionValidator.doPerform(Jetsp
eedSessionValidator.java:103)
 at org.apache.turbine.modules.Action.perform(Action.java:87)
 at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
 at org.apache.turbine.Turbine.doGet(Turbine.java:468)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
 at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:341)
 at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
 at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:251)
 at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:115)
 at jsp_servlet.__index._jspService(__index.java:91)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
 at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5363)
 at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
 at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043)
 at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2466)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Cannot rename column names

Posted by David Sean Taylor <da...@bluesunrise.com>.

> -----Original Message-----
> From: Moabi Nyokong [mailto:MoabiN@discovery.co.za]
> Sent: Monday, November 18, 2002 5:16 AM
> To: 'Jetspeed Users List'
> Subject: Cannot rename column names
>
>
> Hi,
> I have a big problem, I had to change the names of the Turbine user tables
> and columns to match my company's naming conventions. I changed
> the names in
> security-schema.xml , and rebuilt jetspeed without a problem, but now it
> throws the exception att the bottom of the page, because the generated
> classes now have differernt feild names, but the services package still
> tries to access the default names...I tried changing the xml file to use
> javaName="UserId" etc. but that doesn't seem to work on column names at
> all...
> Any help you can give me is greatly (greatly!!!) appreciated
>
How did your create your db, with the Torque-generated script?

send us your security-schema.xml and your table creation script if it wasnt
generated by Torque



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>