|
List Info
Thread: Blojsom portlet in JBoss portal
|
|
| Blojsom portlet in JBoss portal |
  United States |
2007-02-26 11:15:44 |
Hi,
I have deployed the Blojsom 3.1 war as a portlet in the
JBoss porta server
2.4.1, however I am having problems like response comments
not working.
When I click on the Responses link, I get a response form
and after clicking
on the Comment button, I don't get the response updated, I
don't find any
error log also. I have configured the mail server in my
web.xml as follows.
<servlet>
<servlet-name>blojsom</servlet-name>
<servlet-class>org.blojsom.servlet.BlojsomServlet</
servlet-class>
<init-param>
<param-name>smtp-server</param-name>
<param-value>smtp.google.com</param-value>
</init-param>
<init-param>
<param-name>smtp-server-username</param-name>
<param-value>someusername</param-value>
</init-param>
<init-param>
<param-name>smtp-server-password</param-name>
<param-value>somepassword</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Please help me in resolving this.
--
View this message in context: http://www.nabble.com/Blojsom-portl
et-in-JBoss-portal-tf3294118.html#a9162887
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
| Re: Blojsom portlet in JBoss portal |
  United States |
2007-02-26 19:00:19 |
I have it working, but used a javamail jndi instead.
<init-param>
<param-name>smtp-server</param-name>
<param-value>java:comp/env/mail/gmail</param-value&
gt;
</init-param>
NewToBloj wrote:
>
> I have deployed the Blojsom 3.1 war as a portlet in the
JBoss porta server
> 2.4.1, however I am having problems like response
comments not working.
>
> When I click on the Responses link, I get a response
form and after
> clicking on the Comment button, I don't get the
response updated, I don't
> find any error log also. I have configured the mail
server in my web.xml
> as follows.
>
> <servlet>
>
<servlet-name>blojsom</servlet-name>
>
<servlet-class>org.blojsom.servlet.BlojsomServlet</
servlet-class>
> <init-param>
>
<param-name>smtp-server</param-name>
>
<param-value>smtp.google.com</param-value>
> </init-param>
>
--
View this message in context: http://www.nabble.com/Blojsom-portl
et-in-JBoss-portal-tf3294118.html#a9172991
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
| Re: Blojsom portlet in JBoss portal |
  United States |
2007-02-26 20:22:16 |
I assume the JBoss JNDI configuration is done.
The resource-ref needs to be configured at web.xml
(sorry not post it
before)
<resource-ref>
<res-ref-name>mail/gmail</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Container</res-auth>
</resource-ref>
NewToBloj wrote:
>
> I am getting some Naming Exceptions, could you please
tell me is there any
> other settings that is to be made in the web.xml or
jboss-web.xml file.
>
>
> Claudio Miranda wrote:
>>
>>
>> I have it working, but used a javamail jndi
instead.
>>
>> <init-param>
>>
<param-name>smtp-server</param-name>
>>
<param-value>java:comp/env/mail/gmail</param-value&
gt;
>> </init-param>
>>
>>
>>
>> NewToBloj wrote:
>>>
>>> I have deployed the Blojsom 3.1 war as a
portlet in the JBoss porta
>>> server 2.4.1, however I am having problems like
response comments not
>>> working.
>>>
>>> When I click on the Responses link, I get a
response form and after
>>> clicking on the Comment button, I don't get the
response updated, I
>>> don't find any error log also. I have
configured the mail server in my
>>> web.xml as follows.
>>>
>>> <servlet>
>>>
<servlet-name>blojsom</servlet-name>
>>>
>>>
<servlet-class>org.blojsom.servlet.BlojsomServlet</
servlet-class>
>>> <init-param>
>>>
<param-name>smtp-server</param-name>
>>>
<param-value>smtp.google.com</param-value>
>>> </init-param>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Blojsom-portl
et-in-JBoss-portal-tf3294118.html#a9173923
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
| Re: Blojsom portlet in JBoss portal |
  United States |
2007-02-26 20:04:20 |
Hi,
I am getting some Naming Exceptions, could you please tell
me is there any
other settings that is to be made in the web.xml or
jboss-web.xml file.
Thanks..
Claudio Miranda wrote:
>
>
> I have it working, but used a javamail jndi
instead.
>
> <init-param>
>
<param-name>smtp-server</param-name>
>
<param-value>java:comp/env/mail/gmail</param-value&
gt;
> </init-param>
>
>
>
> NewToBloj wrote:
>>
>> I have deployed the Blojsom 3.1 war as a portlet in
the JBoss porta
>> server 2.4.1, however I am having problems like
response comments not
>> working.
>>
>> When I click on the Responses link, I get a
response form and after
>> clicking on the Comment button, I don't get the
response updated, I don't
>> find any error log also. I have configured the mail
server in my web.xml
>> as follows.
>>
>> <servlet>
>>
<servlet-name>blojsom</servlet-name>
>>
<servlet-class>org.blojsom.servlet.BlojsomServlet</
servlet-class>
>> <init-param>
>>
<param-name>smtp-server</param-name>
>>
<param-value>smtp.google.com</param-value>
>> </init-param>
>>
>
>
--
View this message in context: http://www.nabble.com/Blojsom-portl
et-in-JBoss-portal-tf3294118.html#a9173717
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
| Re: Blojsom portlet in JBoss portal |
  United States |
2007-02-28 15:15:43 |
Hi,
I made the following settings in th web.xml,
<resource-ref>
<res-ref-name>mail/gmail</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<servlet>
<servlet-name>blojsom</servlet-name>
<servlet-class>org.blojsom.servlet.BlojsomServlet</
servlet-class>
<init-param>
<param-name>smtp-server</param-name>
<param-value>java:comp/env/mail/gmail</param-value&
gt;
</init-param>
<init-param>
<param-name>smtp-server-username</param-name>
<param-value>xxxxxxxx</param-value>
</init-param>
<init-param>
<param-name>smtp-server-password</param-name>
<param-value>xxxxxxxxxxxxxx</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
And in the jboss-web.xml,
<resource-ref>
<res-ref-name>mail/gmail</res-ref-name>
<jndi-name>java:mail/gmail</jndi-name>
</resource-ref>
While deployment I am getting the below error,
2007-02-28 16:08:05,928 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localho
st].[/blojsom]]
Servlet /blojsom threw load() exception
org.blojsom.plugin.PluginException:
javax.naming.NamingException: Could not
dereference object [Root exception is
javax.naming.NameNotFoundException:
mail not bound]
Please help me to resolve this..
--
View this message in context: http://www.nabble.com/Blojsom-portl
et-in-JBoss-portal-tf3294118.html#a9236285
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
| Re: Blojsom portlet in JBoss portal |
  United States |
2007-02-28 18:42:14 |
NewToBloj wrote:
>
> I made the following settings in th web.xml,
>
>
<param-name>smtp-server</param-name>
>
<param-value>java:comp/env/mail/gmail</param-value&
gt;
>
Try to use java:mail/gmail
NewToBloj wrote:
>
>
>
<param-name>smtp-server-username</param-name>
>
<param-name>smtp-server-password</param-name>
>
> And in the jboss-web.xml,
>
> <resource-ref>
> <res-ref-name>mail/gmail</res-ref-name>
> <jndi-name>java:mail/gmail</jndi-name>
> </resource-ref>
>
You can remove the smtp-server-username and
smtp-server-password, as
those values are configured on mail-service.xml. See mine
(for jetty)
<Put
name="mail.smtp.host">smtp.gmail.com</Put>
;
<Put
name="mail.smtp.port">587</Put>
<Put
name="mail.from">xaxaxa domain.com</Put>
<Put
name="mail.smtp.starttls.enable">true</Put&g
t;
<Put
name="mail.debug">false</Put>
<Put
name="mail.smtp.auth">true</Put>
<Put
name="mail.smtp.socketFactory.port">465</Put
>
<Put
name="mail.smtp.socketFactory.fallback">false&l
t;/Put>
<Put
name="mail.smtp.socketFactory.class">javax.net.
ssl.SSLSocketFactory</Put>
The extra properties enable to connect using SSL
NewToBloj wrote:
>
> 2007-02-28 16:08:05,928 ERROR
>
[org.apache.catalina.core.ContainerBase.[jboss.web].[localho
st].[/blojsom]]
> Servlet /blojsom threw load() exception
> org.blojsom.plugin.PluginException:
javax.naming.NamingException: Could
> not dereference object [Root exception is
> javax.naming.NameNotFoundException: mail not bound]
>
Try to see at JMX console the published jndi name. It is
under the
JNDIView.
--
View this message in context: http://www.nabble.com/Blojsom-portl
et-in-JBoss-portal-tf3294118.html#a9241556
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
[1-6]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|