[JBoss AOP] - Re: What jboss aop version for jboss 3.2.8sp1?
by abdujaparov
Hi Kabir, I've installed jbossaop 1.3.6, now jboss starts, I've deployed the injboss example but when I run it there are not the message of the interceptor, I read only:
| 13:15:33,356 INFO [STDOUT] **** ExampleValue empty Constructor
| 13:15:33,356 INFO [STDOUT] **** ExampleValue.getMessage()
| 13:15:54,607 INFO [STDOUT] **** BasicExampleServlet.service()
| 13:15:54,607 INFO [STDOUT] **** ExampleValue String Constructor
| 13:15:54,727 INFO [STDOUT] **** ExampleValue.getMessage()
|
I've read that jboss 1.3.6 doesn't support loadwaiting, is the reason this?
Thanks, bye bye.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104513#4104513
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104513
18 years, 8 months
[JBoss Seam] - Re: problem with unicodes in itext
by srmo642002
you must manipulate UIFont class locatet in org.jboss.seam.pdf.ui;
| private BaseFont getFont(String familyName) {
| try {
| return BaseFont.createFont("c:/windows/fonts/" + familyName + ".ttf",
| BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
| } catch (Exception e) {
| e.printStackTrace();
| try {
| return BaseFont.createFont("d:/windows/fonts/" + familyName + ".ttf",
| BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
| } catch (Exception e1) {
| e1.printStackTrace();
| }
| }
| return null;
| }
|
| @Override
| public void createITextObject(FacesContext context) {
| familyName = (String) getAttributes().get("familyName");
| if (familyName == null || familyName.equals(""))
| familyName = "nazanin";
| //int family = (familyName==null) ? Font.UNDEFINED : Font.getFamilyIndex(familyName);
| size = (Integer) valueBinding(context, "size", size);
|
| font = new Font(getFont(familyName), size);
| font.getBaseFont().correctArabicAdvance();
|
| style = (String) valueBinding(context, "style", style);
| if (style != null) {
| font.setStyle(style);
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104512#4104512
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104512
18 years, 8 months
[JBoss Seam] - Re: ResourceBundle in Database
by pbrewer_uk
I'm a bit puzzled as to why my custom resource loader isn't being called for anything other than page resource bundles. I'm using Seam 2.0.0.GA with Java 6:
components.xml
| ...
| <component name="org.jboss.seam.core.resourceLoader">
| <property name="bundleNames">
| <value>messages</value>
| <value>labels</value>
| <value>buttons</value>
| <value>content</value>
| <value>validation</value>
| </property>
| </component>
| ...
|
DBResourceLoader.java
| @Scope(ScopeType.STATELESS)
| @BypassInterceptors
| @Install(true)
| @Name("org.jboss.seam.core.resourceLoader")
| public class DBResourceLoader extends org.jboss.seam.core.ResourceLoader {
|
| private Log log = Logging.getLog(DBResourceLoader.class) ;
|
| /** The serialVersionUID field */
| private static final long serialVersionUID = -7063164147487452966L;
|
| // Redefine how we load a resource bundle
| @Override
| public ResourceBundle loadBundle(String bundleName) {
| log.debug("Searching database resource loader for bundle #0", bundleName) ;
| return ResourceBundle.getBundle(bundleName, Locale.instance(), Thread.currentThread().getContextClassLoader(), DBControl.INSTANCE);
| }
|
| }
|
And in the logs I can see from my debug message that it searches the bundle for the current page, but I can never see it trying to load the bundle names specified in components.xml.
If anyone can help or suggest any ides that would be greatly appreciated,
Thanks in advance, Pete
BTW: I found an oddity debugging the code. By putting a breakpoint at line 97 and 98, I hit the breakpoint at 97, step over that line and then never hit line 98. And I can't see any exceptions happening. Any ideas why?
org.jboss.seam.core.SeamResourceBundle.java
| 95 protected Object handleGetObject(String key)
| 96 {
| 97 List<java.util.ResourceBundle> pageBundles = getPageResourceBundles();
| 98 for (java.util.ResourceBundle pageBundle : pageBundles)
| 99 {
| 100 try
| 101 {
| 102 return interpolate(pageBundle.getObject(key));
| 103 }
| 104 catch (MissingResourceException mre) {}
| 105 }
| 106
| 107 for (java.util.ResourceBundle littleBundle : getBundlesForCurrentLocale())
| 108 {
| 109 try
| 110 {
| 111 return interpolate( littleBundle.getObject(key) );
| 112 }
| 113 catch (MissingResourceException mre) {}
| 114 }
| 115
| 116 return null; // superclass is responsible for throwing MRE
| 117 }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104511#4104511
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104511
18 years, 8 months