[JBoss Seam] - Re: Invitation to try new Seam authentication features
by baz
Hello,
when deploying the sample application i got an exception:
13:25:09,078 ERROR [[/seam-security]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.RuntimeException: error while reading components.xml
| at org.jboss.seam.init.Initialization.initPropertiesFromXml(Initialization.java:332)
| at org.jboss.seam.init.Initialization.<init>(Initialization.java:228)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
| at
| [...]
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.seam.security.ThreadLocalAuthenticationContext
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:164)
| at org.jboss.seam.util.Reflections.classForName(Reflections.java:123)
| at org.jboss.seam.init.Initialization.installComponent(Initialization.java:376)
| at org.jboss.seam.init.Initialization.initPropertiesFromXml(Initialization.java:292)
| ... 140 more
|
As of now i have the latest cvs code base, but i can not find org.jboss.seam.security.ThreadLocalAuthenticationContext
Ciao,
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966932#3966932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966932
19 years, 8 months
[Management, JMX/JBoss] - Perform method using Scheduler MBean
by shakylegz
hi :)
I'm working on using a MBean service to perform a trivial task on a Schedulable basis.
The task includes moving txt files from a remote computer to the server where jboss is running, after the transfer, data from the txt file should be validated, this validation could lead to a databaseupdate.
So the task includes using a FTP API(enterprisedt) and a driver for MSSQL. when making a normal java main program this task works without problems.
Scheduler MBean offers two types of SchedulableMBean, SchedulableClass and SchedulableMBean. I decided to use SchedulableClass, and see if this could work. using SchedulableClass the perform() method will be called when the Schedulabled task is trigged. So I figured that this may work fine for my purpose. Then I ran into problems, since when I try to build the sar file I get the errormessage that there is unhandled exceptions and I could add throw declaration, or surround with try/catch.
if I then add throw declaration...like this:
public void perform(Date inDate, long repetitionCountdown ) throws FtpLoginException, IOException
I get the error that these exceptions clause not are compatible with throws clause in Schedulable.perform
If I on the other hand surround with try/catch, like this :
try {
this.SetList();
} catch (FtpLoginException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
my method:
public void SetList() throws IOException, FTPException
{
FTPClient FClient = null;
FClient = new FTPClient();
FClient.setRemoteHost(""xxx.xxx.xxx.xx"");
FClient.connect();
FClient.login("xxxx","xxxx");
FClient.chdir("xxxxxxx");
FileList = FClient.dir();
}
Then I can create the sar file but when I try to deploy the sar file I get this errormessage:
11:41:11,626 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/default/deploy/Integrator2.sar
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
any suggestions how to get this working is more than welcome :o)
regards
Mads Nielsen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966928#3966928
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966928
19 years, 8 months
[Clustering/JBoss] - problem with session, logging log4j
by skajotde
Hi
I have app which were running in cluster and was configured in that way. Now i need run this app on one host. I have problem when my app calls function request.getSession(). It returns null and i got NullPointerException in code like below.
| request.getSession().getAttribute(...);
| request.getSession().setAttribute(..., ....);
|
Something is strange, because i see this behavoiur only if I set up log4j with ERROR for com.myapp (turn off debugging in production env). When I turn debug on, everything is OK.
Version: 4.0.3SP1(build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
JVM Version: 1.5.0-b64 (Sun Microsystems Inc.)
OS: Linux 2.6.11.4-20a-smp (i386)
Any suggestions? It's problem with session replication?
Structure catalogs (show somoething about running services)
| conf:
| jacorb.properties jboss-service.xml log4j-20060823.xml login-config.xml standardjaws.xml standardjboss.xml
| jboss-minimal.xml jndi.properties log4j.xml props standardjbosscmp-jdbc.xml xmdesc
|
| data:
| hypersonic xmbean-attrs
|
| deploy:
| bsh-deployer.xml httpha-invoker.sar jms scheduler-service.xml
| cache-invalidation-service.xml iiop-service.xml jmx-console.war snmp-adaptor.sar
| client-deployer-service.xml jboss-aop-jdk50.deployer jmx-invoker-service.xml sqlexception-service.xml
| cluster-service.xml jboss-bean.deployer jsr88-service.xml myapp-ds.xml
| deploy-hasingleton-service.xml jboss-ha-local-jdbc.rar juddi-service.sar myapp-ear-1.1.0.ear
| deploy.last jboss-ha-xa-jdbc.rar mail-ra.rar myapp-modul-autentykacja-1.0.0.sar
| ear-deployer.xml jbossjca-service.xml mail-service.xml myapp-service.xml
| ejb3.deployer jboss-local-jdbc.rar management myapp-xa-ds.bak
| ejb3-interceptors-aop.xml jbossweb-tomcat55.sar monitoring-service.xml tc5-cluster-service.xml
| ejb-deployer.xml jboss-ws4ee.sar properties-service.xml uuid-key-generator.sar
| hsqldb-ds.xml jboss-xa-jdbc.rar schedule-manager-service.xml
|
| deploy-hasingleton:
| jms
|
| farm:
| cluster-examples-service.xml
|
| lib:
| activation.jar cglib-2.1_2jboss.jar jbossha.jar jbossmq.jar log4j.jar
| antlr-2.7.5H3.jar commons-collections.jar jboss-hibernate.jar jboss-remoting.jar mail.jar
| asm-attrs.jar commons-httpclient.jar jboss-iiop.jar jboss-saaj.jar mail-plugin.jar
| asm.jar commons-logging.jar jboss-j2ee.jar jbosssx.jar pgsql-20051125.jar
| autonumber-plugin.jar hsqldb.jar jboss.jar jboss-transaction.jar properties-plugin.jar
| avalon-framework.jar hsqldb-plugin.jar jboss-jaxrpc.jar jboss-xb.jar scheduler-plugin-example.jar
| bcel.jar jacorb.jar jboss-jca.jar jgroups.jar scheduler-plugin.jar
| bindingservice-plugin.jar javax.servlet.jar jboss-jsr77.jar jmx-adaptor-plugin.jar snmp-support.jar
| bsf.jar javax.servlet.jsp.jar jboss-jsr88.jar jnpserver.jar xmlentitymgr.jar
| bsh-1.3.0.jar jboss-cache.jar jboss-management.jar jpl-pattern.jar
| bsh-deployer.jar jboss-common-jdbc-wrapper.jar jboss-monitoring.jar jpl-util.jar
|
| log:
| boot.log server.log
|
| tmp:
| aopdynclasses deploy server58045.xml
|
| work:
| jboss.web
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966927#3966927
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966927
19 years, 8 months
[JBoss Messaging] - Mbean Scheduler using perform method
by shakylegz
hi :)
I'm working on using a MBean service to perform a trivial task on a Schedulable basis.
The task includes moving txt files from a remote computer to the server where jboss is running, after the transfer, data from the txt file should be validated, this validation could lead to a databaseupdate.
So the task includes using a FTP API(enterprisedt) and a driver for MSSQL. when making a normal java main program this task works without problems.
Scheduler MBean offers two types of SchedulableMBean, SchedulableClass and SchedulableMBean. I decided to use SchedulableClass, and see if this could work. using SchedulableClass the perform() method will be called when the Schedulabled task is trigged. So I figured that this may work fine for my purpose. Then I ran into problems, since when I try to build the sar file I get the errormessage that there is unhandled exceptions and I could add throw declaration, or surround with try/catch.
if I then add throw declaration...like this:
public void perform(Date inDate, long repetitionCountdown ) throws FtpLoginException, IOException
I get the error that these exceptions clause not are compatible with throws clause in Schedulable.perform
If I on the other hand surround with try/catch, like this :
try {
this.SetList();
} catch (FtpLoginException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
my method:
public void SetList() throws IOException, FTPException
{
FTPClient FClient = null;
FClient = new FTPClient();
FClient.setRemoteHost(""xxx.xxx.xxx.xx"");
FClient.connect();
FClient.login("xxxx","xxxx");
FClient.chdir("xxxxxxx");
FileList = FClient.dir();
}
Then I can create the sar file but when I try to deploy the sar file I get this errormessage:
11:41:11,626 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/default/deploy/Integrator2.sar
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
any suggestions how to get this working is more than welcome :o)
regards
Mads Nielsen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966925#3966925
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966925
19 years, 8 months