[JBoss Tools (users)] - Re: No Jboss servers
by sacauskis
I'm seeing this repeatedly
!ENTRY org.eclipse.wst.server.core 4 0 2009-02-26 14:35:04.834
!MESSAGE Could not create delegate Runtime[JBoss v4.2 2, JBoss v4.2 2, F:/jbossesb-server-4.4.GA/bin, null]
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.server.core.internal.Runtime.getDelegate(Runtime.java:79)
at org.eclipse.wst.server.core.internal.Runtime.loadAdapter(Runtime.java:196)
at org.eclipse.jst.server.generic.core.internal.ServerTypeDefinitionUtil.getServerTypeDefinition(ServerTypeDefinitionUtil.java:49)
at org.eclipse.jst.server.generic.core.internal.ServerTypeDefinitionUtil.getServerClassPathEntry(ServerTypeDefinitionUtil.java:66)
at org.eclipse.jst.server.generic.core.internal.GenericServerRuntimeTargetHandler.resolveClasspathContainer(GenericServerRuntimeTargetHandler.java:38)
at org.eclipse.jst.server.core.RuntimeClasspathProviderDelegate.resolveClasspathContainerImpl(RuntimeClasspathProviderDelegate.java:140)
at org.eclipse.jst.server.core.internal.RuntimeClasspathProviderWrapper.resolveClasspathContainerImpl(RuntimeClasspathProviderWrapper.java:145)
at org.eclipse.jst.server.core.internal.RuntimeClasspathContainer.getClasspathEntries(RuntimeClasspathContainer.java:73)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2472)
at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspath(ClasspathEntry.java:1290)
at org.eclipse.jdt.internal.core.ClasspathValidation.validate(ClasspathValidation.java:76)
at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:1969)
at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:410)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:136)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213545#4213545
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213545
17 years, 1 month
[Security & JAAS/JBoss] - JBoss SSO and Oracle
by edgoquist
I'm trying to get SSO working with my Oracle database. According to the documentation I've seen so far, I'll need to implement a LoginProvider. Before I get too far, I'd like to make sure I'm on the right track.
I'm assuming that all of the elements that are defined in the sso.cfg.xml will be available to my LoginProvider thanks to the SSO mechanism that will call the setProperties() method of my provider.
(I know that the following are incomplete)
sso.cfg.xml :
| <jboss-sso>
| <identity-management>
| <login>
| <provider id="si:my:oracle:login" class="my.security.OracleLoginProvider">
| <property name="connectionURL">jdbc:oracle:thin:@localhost:1521:orcl</property>
| <property name="username">user</property>
| <property name="password">pass</property>
| <property name="existsSQL">select 'ok' from user_table where login_id=?</property>
| <property name="loginSQL">select 'ok' from user_table where login_id=? and password=?</property>
| </provider>
| </login>
| </identity-management>
| </jboss-sso>
|
Here's what I have so far for the LoginProvider:
|
| package my.security;
|
| import org.jboss.security.idm.*;
| import java.security.Principal;
| import java.util.Collection;
| import java.sql.*;
|
| public class OracleLoginProvider implements LoginProvider {
|
| static { // is there a better way to do this?
| java.sql.DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
| }
|
| private Properties props;
| private String id;
|
| public OracleLoginProvider() {
| }
|
| public String setId(String id) throws IdentityException {
| this.id = id;
| }
|
| public String getId() throws IdentityException {
| return id;
| }
|
| public boolean exists(Principal principal) throws IdentityException, SQLException {
| return exists(principal.getName());
| }
|
| public boolean exists(String username) throws IdentityException, SQLException {
| Connection conn = connect();
|
| // username and existsQuery are set in sso.cfg.xml
| String username = props.getProperty("username");
| String sql = props.getProperty("existsQuery");
|
| try {
| PreparedStatement ps = conn.prepareStatement(sql);
| ps.setString(1, username);
| ResultSet rs = ps.executeQuery();
| return rs.next();
| }
| finally { conn.close(); }
| }
|
| public Identity read(Principal principal) throws IdentityException {
| return read(principal.getName());
| }
|
| public Identity read(String username) throws IdentityException {
| Identity ident = new Identity();
| ident.setUserName(username);
| // need to set roles too.
| return ident;
| }
|
|
| public boolean login(Principal principal,byte[] password) throws IdentityException;
|
| public boolean login(String username,byte[] password) throws IdentityException;
|
| public Collection readAllRoles() throws IdentityException;
|
| public void setProperties(Properties props) {
| this.props = props;
| }
|
| private java.sql.Connection connect () {
| // connectionURL, username and password are set in sso.cfg.xml
| String url = props.getProperty("connectionURL");
| String username = props.getProperty("username");
| String password = props.getProperty("password");
|
| return DriverManager.getConnection(url, username, password);
| }
|
| }
|
Does that look right?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213543#4213543
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213543
17 years, 1 month
[JBoss jBPM] - Performance slowdown with large JBPM_LOG table
by michaelholtzman
Greetings. We are seeing a huge slowdown in jBPM throughput when the JBPM_LOG file gets very large.
For example, during our benchmark testing we start with a "virgin" database. After three weeks of testing, we see a ~40% increase in workflow execution time. At this point, the JBPM_LOG table has about 6M (yes, million) records.
If we clean the database tables, performance returns to its original level. I don't really understand why the size of JBPM_LOG has such a profound effect on performance.
In production we need the log records to construct an audit trail, so disabling logging is not an option.
Any suggestions on improving performance with large JBPM tables?
Anyone running a high volume jBPM application care to comment on performance over time?
BTW, this is jBPM 3.1.2 with selected fixes from later versions applied.
Thanx.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213536#4213536
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213536
17 years, 1 month