[Installation, Configuration & DEPLOYMENT] - Re: No matching credentials in Subject Exception!
by kks_krishna
The following are the changes I have made. Please help me at the earliest.
Chamges on Hibernate Configuration file
<hibernate-configuration>
| <session-factory>
| <property name="dialect">
| org.hibernate.dialect.MySQLDialect
| </property>
| <property name="connection.datasource">java:MySqlDS1</property>
| <mapping
| resource="Offlinetelephone.hbm.xml" />
|
|
| </hibernate-configuration>
Changes in mysql-ds.xml
<datasources>
| <local-tx-datasource>
| <jndi-name>MySqlDS</jndi-name>
| <connection-url>jdbc:mysql://192.168.48.227:3306/systemdatabase</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <min-pool-size>1</min-pool-size>
| <max-pool-size>20</max-pool-size>
| <security-domain>EncryptDBPassword</security-domain>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| <local-tx-datasource>
| <jndi-name>MySqlDS1</jndi-name>
| <connection-url>jdbc:mysql://192.168.48.227:3306/telephone_element1</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <min-pool-size>1</min-pool-size>
| <max-pool-size>20</max-pool-size>
| <security-domain>EncryptDBPassword</security-domain>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
|
| </datasources>
Changes in login-config.xml
<application-policy name="EncryptDBPassword">
| <authentication>
| <login-module code="org.jboss.resource.security.SecureIdentityLoginModule" flag="required">
|
| <module-option name="username">root</module-option>
| <module-option name="password">6f8e652f571678f2</module-option>
| <module-option name="managedConnectionFactoryName">jboss.jca:name=MySqlDS,service=LocalTxCM</module-option>
| </login-module>
| </authentication>
| </application-policy>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151231#4151231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151231
18 years, 4 months
Generation of jasper reports in seam
by Ivan Bueno
This problem was posted some time ago by d.solasa, cant find a
solution. I hope someone can help
it goes something like this: - Could not instantiate report compiler :
net.sf.jasperreports.engine.design.JRJavacCompiler' -
... Caused by: java.lang.ClassCastException:
net.sf.jasperreports.engine.design.JRJavacCompiler cannot be cast to
net.sf.jasperreports.engine.design.JRCompiler.
Did u solved it? how did u worked around it? plz help.
18 years, 4 months
Re: Seam-pdf examples
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=13905 Posted on behalf of a User
Hi Deepak,
I'm trying to contact you. saw a post somewhere else, some time ago on an error u got regarding Generation of jasper reports in seam. I'm stuck on the same thing, something like this: - Could not instantiate report compiler : net.sf.jasperreports.engine.design.JRJavacCompiler' -
... Caused by: java.lang.ClassCastException: net.sf.jasperreports.engine.design.JRJavacCompiler cannot be cast to net.sf.jasperreports.engine.design.JRCompiler.
Did u solved it? how did u worked around it? plz help. discobog2004(a)yahoo.com
In Response To:
Hi ,
I am new to seam-pdf.i am able to generate the table in pdf report using <p:table> but not with proper cell format.
So i will be grateful if i get a proper explanation of the attributes of the seam-pdf tag library and it will be most helpful to me if i can have the proper examples.....
Thanx in advance,
Deepak Solasa
18 years, 4 months
[JBoss jBPM] - Re: jbpmContext.close() save process instance automaticly
by joy_wind
coolex,
I run my test code as a standalone application(e.g, in a main method), not in a web container.
My test app is like the following:
import org.apache.log4j.Logger;
| import org.jbpm.JbpmConfiguration;
| import org.jbpm.JbpmContext;
| import org.jbpm.db.GraphSession;
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.graph.exe.ProcessInstance;
|
| public class Test {
| private static Logger logger = Logger.getLogger(Test.class);
|
| public static void main(String[] args) throws Exception {
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| try {
|
| GraphSession graphSession = jbpmContext.getGraphSession();
| logger.info("loading definition ...");
| ProcessDefinition processDefinition = graphSession
| .findLatestProcessDefinition("test-process");
| logger.info("create new process instance ...");
| ProcessInstance processInstance = new ProcessInstance(
| processDefinition);
| } finally {
| logger.info("closing context !");
| jbpmContext.close();
| }
| }
| }
As the code shows,I just create a new processInstance and do nothing else.But after jbpmContext.close(),jbpm create a new instance in my database even if i dont invoke the save method.
By check log output i found jbpm run serveral INSERT sql statements on my database when jbpmContext.close().
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151229#4151229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151229
18 years, 4 months
[Microcontainer] - Re: Get at Kernel from Unmanaged Object
by ALRubinger
"alesj" wrote : "ALRubinger" wrote :
| | KernelLocator.getKernel() won't do the trick, as I've got no KernelControllerContext to set.
| |
| Where to you need KCC here?
| KernelLocator.getKernel gives you Kernel instance, from where you get Controller,
| ...
| But this is very ugly, and I've never liked this KL static hack.
| We should be able to provide integration point in almost all cases, deployers being the right integration point.
And if the POJO has no access to the deployer we've got the same problem?
How about a solution a la JNDI does? ie:
// Configuration from a "jboss-mc.properties" on the CP
| org.jboss.mc.McContext context = new McContext();
| context.getKernel();
"alesj" wrote : "ALRubinger" wrote :
| | Note that the unmanaged object is not instanciated under my control, so it's just a POJO from which I need to access MC.
| |
| I would still try to push some handle all the way up to this pojo.
Yeah, for now I have a class called "Hack" which puts my MC Bean in a public static variable. :). The POJO in question is a JNDI ObjectFactory, created on each lookup by JNP Server.
"alesj" wrote : Still need to see what is to do there ...
Cool, lemme know. This is a requirement of the EJB3 Proxy Component, which is designed to heavily leverage MC as an underlying registry and configuration mechanism.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151224#4151224
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151224
18 years, 4 months
[Microcontainer] - Re: Get at Kernel from Unmanaged Object
by alesj
"ALRubinger" wrote :
| KernelLocator.getKernel() won't do the trick, as I've got no KernelControllerContext to set.
|
Where to you need KCC here?
KernelLocator.getKernel gives you Kernel instance, from where you get Controller, ...
But this is very ugly, and I've never liked this KL static hack.
We should be able to provide integration point in almost all cases, deployers being the right integration point.
"ALRubinger" wrote :
| In AS is there any special magic to get at this (ie. Some aspect placing the Kernel/Context/Bus in a ThreadLocal or similar)?
|
Hmmm, interesting AOP hack idea. :-)
"ALRubinger" wrote :
| Note that the unmanaged object is not instanciated under my control, so it's just a POJO from which I need to access MC.
|
I would still try to push some handle all the way up to this pojo.
I've got simialr problems when dealing with Seam and MC.
Since how Seam apps are started is through some ServletListener, which is of course a few layers from MC.
Still need to see what is to do there ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151222#4151222
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151222
18 years, 4 months